🐛 fix: only load script when themeswitcher is enabled
This commit is contained in:
parent
14997045d8
commit
556570d799
@ -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…
x
Reference in New Issue
Block a user