Kem Chen db4947c114
Optimize comments.js file loading condition
Co-authored-by: Mimi <stevenjoezhang@gmail.com>
2025-03-13 10:48:40 +08:00

23 lines
481 B
Plaintext

{%- include 'vendors.njk' -%}
{%- if theme.injects.comment.length > 1 %}
{{- next_js('comments.js') }}
{%- endif %}
{{- next_js('utils.js') }}
{%- if theme.motion.enable %}
{{- next_js('motion.js') }}
{%- endif %}
{%- if theme.sidebar.display !== 'remove' %}
{{- next_js('sidebar.js') }}
{%- endif %}
{{- next_js('next-boot.js') }}
{%- if theme.bookmark.enable %}
{{- next_js('bookmark.js') }}
{%- endif %}
{%- if theme.pjax %}
{{- next_js('pjax.js') }}
{%- endif %}