Skip to content

Commit

Permalink
🐛 fix: only load script when themeswitcher is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Apr 27, 2023
1 parent 1499704 commit 556570d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 556570d

Please sign in to comment.