Skip to content

Commit

Permalink
fix: search_enabled -> bib_search (alshedivat#2560)
Browse files Browse the repository at this point in the history
In alshedivat#2523, I did a copy&paste error with
alshedivat@07d6e61

I used the global `search_enabled` config key instead of the correct
`bib_search` key.

This PR fixed it.
  • Loading branch information
CheariX authored Jul 12, 2024
1 parent 848c083 commit 0f471a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 4 additions & 0 deletions _includes/bib_search.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% if site.bib_search %}
<script src="{{ '/assets/js/bibsearch.js' | relative_url | bust_file_cache }}" type="module"></script>
<input type="text" id="bibsearch" spellcheck="false" autocomplete="off" class="search bibsearch-form-input" placeholder="Type to filter">
{% endif %}
5 changes: 0 additions & 5 deletions _includes/scripts/misc.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
<script defer src="{{ '/assets/js/common.js' | relative_url | bust_file_cache }}"></script>
<script defer src="{{ '/assets/js/copy_code.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>

<!-- Bibsearch Feature -->
{% if site.search_enabled %}
<script src="{{ '/assets/js/bibsearch.js' | relative_url | bust_file_cache }}" type="module"></script>
{% endif %}

<!-- Jupyter Open External Links New Tab -->
<script defer src="{{ '/assets/js/jupyter_new_tab.js' | relative_url | bust_file_cache }}"></script>

Expand Down
6 changes: 3 additions & 3 deletions _pages/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ nav_order: 2

<!-- _pages/publications.md -->

{% if site.search_enabled %}
<input type="text" id="bibsearch" spellcheck="false" autocomplete="off" class="search bibsearch-form-input" placeholder="Type to filter">
{% endif %}
<!-- Bibsearch Feature -->

{% include bib_search.liquid %}

<div class="publications">

Expand Down

0 comments on commit 0f471a9

Please sign in to comment.