diff --git a/templates/page.html b/templates/page.html
index 969baa0..5eda480 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -219,11 +219,6 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{% endif %}
{% endfor %}
- {# Ensure only one comment system is enabled #}
- {% if enabled_systems > 1 %}
- {{ throw(message="ERROR: Multiple comment systems have been enabled for the same page. Check your config.toml and individual page settings to ensure only one comment system is activated at a time.") }}
- {% endif %}
-
{% if macros_settings::evaluate_setting_priority(setting="show_previous_next_article_links", page=page, default_global_value=true) == "true" %}
{%- if page.lower or page.higher -%}
{% set next_label = macros_translate::translate(key="next", default="Next", language_strings=language_strings) %}
@@ -271,6 +266,11 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{%- endif -%}
{%- endif -%}
+ {# Ensure only one comment system is enabled #}
+ {% if enabled_systems > 1 %}
+ {{ throw(message="ERROR: Multiple comment systems have been enabled for the same page. Check your config.toml and individual page settings to ensure only one comment system is activated at a time.") }}
+ {% endif %}
+
{# Comments #}
{% if comment_system %}
{% include "partials/comments.html" %}