Remove Tipue Search
This commit is contained in:
parent
b7e0b32909
commit
86fa59b064
8 changed files with 6 additions and 222 deletions
|
@ -69,14 +69,6 @@
|
|||
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css">
|
||||
{% endif %}
|
||||
|
||||
{% if PLUGINS and ('tipue_search' in PLUGINS or 'pelican.plugins.tipue_search' in PLUGINS) %}
|
||||
{% if USE_GOOGLE_FONTS != False %}
|
||||
<link href="https://fonts.googleapis.com/css?family=Merriweather:300,400|Open+Sans" rel="stylesheet">
|
||||
{% endif %}
|
||||
<link rel="stylesheet"
|
||||
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.css" />
|
||||
{% endif %}
|
||||
|
||||
{% if 'pelican.plugins.search' in PLUGINS %}
|
||||
<link rel="stylesheet"
|
||||
type="text/css"
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
{% if PLUGINS and ('tipue_search' in PLUGINS or 'pelican.plugins.tipue_search' in PLUGINS) %}
|
||||
{% extends 'base.html' %}
|
||||
{% block title %}{{ _('Search') }} - {{ SITENAME|striptags }}{% endblock title %}
|
||||
{% block content %}
|
||||
|
||||
<article class="single">
|
||||
<header>
|
||||
<h1 id="categories">{{ _('Search Results') }}</h1>
|
||||
</header>
|
||||
<div id="tipue_search_content"></div>
|
||||
</article>
|
||||
{% endblock content %} {% block additional_js %}
|
||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/jquery.min.js"></script>
|
||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.js"></script>
|
||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch_set.min.js"></script>
|
||||
<script src="{{ SITEURL }}/tipuesearch_content.js"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$("#tipue_search_input").tipuesearch({
|
||||
show: 10,
|
||||
mode: "json",
|
||||
contentLocation: "{{ SITEURL }}/tipuesearch_content.js",
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %} {% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue