Optimize comments.js file loading condition

Co-authored-by: Mimi <stevenjoezhang@gmail.com>
This commit is contained in:
Kem Chen 2025-03-13 10:48:40 +08:00 committed by GitHub
parent 479d2fe9c1
commit db4947c114
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,8 @@
{%- include 'vendors.njk' -%} {%- include 'vendors.njk' -%}
{%- if theme.injects.comment.length > 1 %}
{{- next_js('comments.js') }} {{- next_js('comments.js') }}
{%- endif %}
{{- next_js('utils.js') }} {{- next_js('utils.js') }}
{%- if theme.motion.enable %} {%- if theme.motion.enable %}