Use getBundleFileUrl for JavaScript files
This commit is contained in:
parent
72b878ef81
commit
21f0f53d9c
|
@ -33,10 +33,10 @@
|
||||||
{% block favicon %}{% include "global/favicon.njk" %}{% endblock %}
|
{% block favicon %}{% include "global/favicon.njk" %}{% endblock %}
|
||||||
|
|
||||||
{# JavaScript #}
|
{# JavaScript #}
|
||||||
|
<script src="{% getBundleFileUrl 'js' %}" defer></script>
|
||||||
{% if toc %}
|
{% if toc %}
|
||||||
<script src="{{'/assets/js/details-utils.js'}}" defer></script>
|
<script src="{{'/assets/js/details-utils.js'}}" defer></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script>{% getBundle "js" %}</script>
|
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{% block pageTitle %}{{ title + " | " if title }}{{ sitemeta.siteName | safe }}{% endblock %}
|
{% block pageTitle %}{{ title + " | " if title }}{{ sitemeta.siteName | safe }}{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue