Use getBundleFileUrl for JavaScript files

This commit is contained in:
Helen Chong 2024-07-18 22:23:59 +08:00
parent 72b878ef81
commit 21f0f53d9c
1 changed files with 1 additions and 1 deletions

View File

@ -33,10 +33,10 @@
{% block favicon %}{% include "global/favicon.njk" %}{% endblock %}
{# JavaScript #}
<script src="{% getBundleFileUrl 'js' %}" defer></script>
{% if toc %}
<script src="{{'/assets/js/details-utils.js'}}" defer></script>
{% endif %}
<script>{% getBundle "js" %}</script>
<title>
{% block pageTitle %}{{ title + " | " if title }}{{ sitemeta.siteName | safe }}{% endblock %}