Skip to content

Commit

Permalink
feat: introduce bib_search variable via _config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CheariX committed Jul 8, 2024
1 parent 3e9c2e5 commit 07d6e61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ navbar_fixed: true
footer_fixed: true
search_enabled: true
socials_in_search: true
bib_search: true

# Dimensions
max_width: 930px
Expand Down
4 changes: 3 additions & 1 deletion _includes/scripts/misc.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
<script defer src="{{ '/assets/js/copy_code.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>

<!-- Bibsearch Feature -->
<script src="{{ '/assets/js/bibsearch.js' | relative_url | bust_file_cache }}" type="module"></script>
{% 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
2 changes: 2 additions & 0 deletions _pages/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +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 %}

<div class="publications">

Expand Down

0 comments on commit 07d6e61

Please sign in to comment.