Skip to content

Commit d1b6708

Browse files
committed
refactor: moved bib_search box to _includes
1 parent f58ffca commit d1b6708

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

_includes/bib_search.liquid

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% if site.bib_search %}
2+
<script src="{{ '/assets/js/bibsearch.js' | relative_url | bust_file_cache }}" type="module"></script>
3+
<input type="text" id="bibsearch" spellcheck="false" autocomplete="off" class="search bibsearch-form-input" placeholder="Type to filter">
4+
{% endif %}

_pages/publications.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ nav_order: 2
1111

1212
<!-- Bibsearch Feature -->
1313

14-
{% if site.bib_search %}
15-
16-
<script src="{{ '/assets/js/bibsearch.js' | relative_url | bust_file_cache }}" type="module"></script>
17-
<input type="text" id="bibsearch" spellcheck="false" autocomplete="off" class="search bibsearch-form-input" placeholder="Type to filter">
18-
{% endif %}
14+
{% include bib_search.liquid %}
1915

2016
<div class="publications">
2117

0 commit comments

Comments
 (0)