Merge pull request #219 from sumnerevans/auto-detect-tipue-search
Auto-detect Tipue Search plugin
This commit is contained in:
commit
9d5492d311
2 changed files with 5 additions and 5 deletions
|
@ -69,7 +69,7 @@
|
||||||
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css">
|
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if USE_TIPUE_SEARCH %}
|
{% if 'tipue_search' in PLUGINS %}
|
||||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/jquery.min.js"></script>
|
<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.min.js"></script>
|
||||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.js"></script>
|
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.js"></script>
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
<h1><a href="{{ SITEURL }}">{{ SITETITLE }}</a></h1>
|
<h1><a href="{{ SITEURL }}">{{ SITETITLE }}</a></h1>
|
||||||
|
|
||||||
{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}
|
{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}
|
||||||
{% if USE_TIPUE_SEARCH %}
|
{% if 'tipue_search' in PLUGINS %}
|
||||||
<form class="navbar-search" action="/search.html" role="search">
|
<form class="navbar-search" action="/search.html" role="search">
|
||||||
<input type="text" name="q" id="tipue_search_input" placeholder="Search..">
|
<input type="text" name="q" id="tipue_search_input" placeholder="Search..">
|
||||||
</form>
|
</form>
|
||||||
|
@ -276,7 +276,7 @@
|
||||||
{% include 'partial/github.html' %}
|
{% include 'partial/github.html' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if USE_TIPUE_SEARCH %}
|
{% if 'tipue_search' in PLUGINS %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#tipue_search_input').tipuesearch();
|
$('#tipue_search_input').tipuesearch();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% if USE_TIPUE_SEARCH %} {% extends 'base.html' %} {% block title %} {{ _('Search') }} - {{ SITENAME|striptags }} {% endblock title %} {% block content %}
|
{% if 'tipue_search' in PLUGINS %} {% extends 'base.html' %} {% block title %} {{ _('Search') }} - {{ SITENAME|striptags }} {% endblock title %} {% block content %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#tipue_search_input').tipuesearch({
|
$('#tipue_search_input').tipuesearch({
|
||||||
|
|
Loading…
Reference in a new issue