fix: search_enabled -> bib_search (#2560)

In #2523, I did a copy&paste error with
07d6e619cc

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

This PR fixed it.
This commit is contained in:
CheariX 2024-07-12 22:00:48 +02:00 committed by GitHub
parent c4f20b889e
commit 83e8a64de1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 8 deletions

View File

@ -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 %}

View File

@ -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>

View File

@ -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">