🐛 fix(iine): only load script on pages, not sections (#596)

This commit is contained in:
Óscar 2025-12-12 22:48:42 +01:00 committed by GitHub
parent 89ebf0193e
commit 2611814d04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,6 +83,6 @@
{%- endif -%}
{# Add iine.js for the like button #}
{%- if macros_settings::evaluate_setting_priority(setting="iine", page=page_s, section=section_s, default_global_value=false) == "true" -%}
{%- if page and macros_settings::evaluate_setting_priority(setting="iine", page=page_s, section=section_s, default_global_value=false) == "true" -%}
<script defer src="https://cdn.jsdelivr.net/gh/welpo/iine@main/iine.mini.js"></script>
{%- endif -%}