3fb63f302d
* Remove Lunr trimmer & bring back colons * Add Greek Stemmer * Translate search_placeholder_text and results_found to Greek * Minimize JSON data * Truncate Words * Move store variable into a new file * Move Lunr files into a new folder * Add defer to lunr scripts * Add search_full_content switch
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
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>
|
|
<script defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script>
|
|
{% endif %}
|
|
|
|
{% if site.search == true or page.layout == "search" %}
|
|
{% assign lang = site.locale | slice: 0,2 | default: "en" %}
|
|
{% case lang %}
|
|
{% when "gr" %}
|
|
{% assign lang = "gr" %}
|
|
{% else %}
|
|
{% assign lang = "en" %}
|
|
{% endcase %}
|
|
<script defer src="{{ '/assets/js/lunr/lunr.min.js' | absolute_url }}"></script>
|
|
<script defer src="{{ '/assets/js/lunr/lunr-store.js' | absolute_url }}"></script>
|
|
<script defer src="{{ '/assets/js/lunr/lunr-' | append: lang | append: '.js' | absolute_url }}"></script>
|
|
{% endif %}
|
|
|
|
{% include analytics.html %}
|
|
{% include /comments-providers/scripts.html %}
|