7eb00bbd61
* Integrate search into masthead * Fix cutoff descenders in archive article titles * Remove search page from `/test` site * Enable masthead search * Remove dedicated search page * Fix masthead search form padding * Improve insertion of search content * Speed up page transition * Add fade transition to search content * Rename visibility class names * Add `site.search` to _config.yml * Document site search feature * Update CHANGELOG and history
20 lines
717 B
HTML
20 lines
717 B
HTML
{% if site.footer_scripts %}
|
|
{% for script in site.footer_scripts %}
|
|
{% if script contains "://" %}
|
|
{% capture script_path %}{{ script }}{% endcapture %}
|
|
{% else %}
|
|
{% capture script_path %}{{ script | absolute_url }}{% endcapture %}
|
|
{% endif %}
|
|
<script src="{{ script_path }}"></script>
|
|
{% endfor %}
|
|
{% else %}
|
|
<script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script>
|
|
{% endif %}
|
|
|
|
{% if site.search == true or page.layout == 'search' %}
|
|
<script src="{{ '/assets/js/lunr.min.js' | absolute_url }}"></script>
|
|
<script src="{{ '/assets/js/lunr-en.js' | absolute_url }}"></script>
|
|
{% endif %}
|
|
|
|
{% include analytics.html %}
|
|
{% include /comments-providers/scripts.html %}
|