1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-29 03:09:53 +02:00

Remove caching:

This is the solution to making sure things that need translating aren't cached from English. A continuation of another commit that needed nocache.

ALSO:Add kartdlphax to progress sidebar
This commit is contained in:
lifehackerhansol
2021-10-22 22:59:12 -07:00
committed by lifehackerhansol
parent c8380f341c
commit 3997a1d8aa
6 changed files with 90 additions and 80 deletions

View File

@@ -6,15 +6,16 @@
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
{% endif %}
<!-- for guide purposes all caching is removed and is separately built. -->
{% if site.search == true or page.layout == "search" %}
{%- assign search_provider = site.search_provider | default: "lunr" -%}
{%- case search_provider -%}
{%- when "lunr" -%}
{% include_cached search/lunr-search-scripts.html %}
{% include search/lunr-search-scripts.html %}
{%- when "google" -%}
{% include_cached search/google-search-scripts.html %}
{% include search/google-search-scripts.html %}
{%- when "algolia" -%}
{% include_cached search/algolia-search-scripts.html %}
{% include search/algolia-search-scripts.html %}
{%- endcase -%}
{% endif %}