🐛 fix: only load script when themeswitcher is enabled

main
welpo 2 years ago
parent 14997045d8
commit 556570d799
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -13,5 +13,7 @@
<small>Powered by <a href="https://www.getzola.org" target="_blank">Zola</a> & <a href="https://github.com/welpo/tabi" target="_blank">tabi</a></small>
</div>
</section>
<script src="{{ get_url(path='js/main.js', trailing_slash=false) | safe }}"/></script>
{%- if config.extra.theme_switcher == true -%}
<script src="{{ get_url(path='js/main.js', trailing_slash=false) | safe }}"/></script>
{%- endif -%}
</footer>

Loading…
Cancel
Save