Skip to content

Commit

Permalink
Make use of next_js
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperStrike committed Mar 11, 2021
1 parent 3de6050 commit 0e18826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layout/_layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
{{ partial('_partials/head/head.njk', {}, {cache: theme.cache.enable}) }}
{%- include '_partials/head/head-unique.njk' -%}
<script{{ pjax }} src="{{ url_for(theme.js) }}/load-config.js"></script>
{{- next_js('load-config.js', true) }}
<title>{% block title %}{% endblock %}</title>
{{ partial('_third-party/analytics/index.njk', {}, {cache: theme.cache.enable}) }}
<noscript>
Expand Down
4 changes: 2 additions & 2 deletions layout/_partials/comments.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{ partial(inject_item.layout, inject_item.locals, inject_item.options) }}
</div>
{%- endfor %}
<script{{ pjax }} src="{{ url_for(theme.js) }}/comments-buttons.js"></script>
{{- next_js('comments-buttons.js', true) }}
{%- elif theme.comments.style == 'tabs' %}
<div class="tabs tabs-comment">
<ul class="nav-tabs">
Expand All @@ -34,4 +34,4 @@
{%- endif %}
{%- endif %}

<script src="{{ url_for(theme.js) }}/comments.js"></script>
{{- next_js('comments.js') }}

0 comments on commit 0e18826

Please sign in to comment.