mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-21 19:32:34 +00:00
Move comments.js and config.js inject point (#277)
This commit is contained in:
parent
4c2828d289
commit
0d84de6513
@ -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>
|
||||||
|
|||||||
@ -33,5 +33,3 @@
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{{- next_js('comments.js') }}
|
|
||||||
|
|||||||
@ -54,3 +54,4 @@
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{{ next_data('main', next_config()) }}
|
{{ next_data('main', next_config()) }}
|
||||||
|
{{- next_js('config.js') }}
|
||||||
|
|||||||
@ -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') }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user