Fix preload condition for theme preconnect option

This commit is contained in:
Mimi 2026-08-14 01:20:31 +08:00
parent 4b249983ed
commit 120d41d0fa

View File

@ -10,7 +10,7 @@
{{- meta_generator() }}
{%- endif %}
{%- if config.preconnect %}
{%- if theme.preconnect %}
<link rel="preload" href="{{ url_for(theme.css) }}/main.css" as="style">
{%- endif %}
{{ next_pre() }}