Move comments.js and config.js inject point (#277)

This commit is contained in:
2021-05-31 20:11:57 +08:00 committed by GitHub
parent 4c2828d289
commit 0d84de6513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -4,9 +4,8 @@
{{ partial('_partials/head/head.njk', {}, {cache: theme.cache.enable}) }} {{ partial('_partials/head/head.njk', {}, {cache: theme.cache.enable}) }}
{%- include '_partials/head/head-unique.njk' -%} {%- include '_partials/head/head-unique.njk' -%}
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
{{- next_js('config.js') }}
{{- next_inject('head') }}
{{ partial('_third-party/analytics/index.njk', {}, {cache: theme.cache.enable}) }} {{ partial('_third-party/analytics/index.njk', {}, {cache: theme.cache.enable}) }}
{{- next_inject('head') }}
<noscript> <noscript>
<link rel="stylesheet" href="{{ url_for(theme.css) }}/noscript.css"> <link rel="stylesheet" href="{{ url_for(theme.css) }}/noscript.css">
</noscript> </noscript>

View File

@ -33,5 +33,3 @@
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{{- next_js('comments.js') }}

View File

@ -54,3 +54,4 @@
{%- endif %} {%- endif %}
{{ next_data('main', next_config()) }} {{ next_data('main', next_config()) }}
{{- next_js('config.js') }}

View File

@ -1,5 +1,7 @@
{%- include 'vendors.njk' -%} {%- include 'vendors.njk' -%}
{{- next_js('comments.js') }}
{{- next_js('utils.js') }} {{- next_js('utils.js') }}
{%- if theme.motion.enable %} {%- if theme.motion.enable %}
{{- next_js('motion.js') }} {{- next_js('motion.js') }}