mirror of
https://github.com/welpo/tabi.git
synced 2025-12-14 11:48:45 +01:00
refactor(page): put comments code together
This commit is contained in:
parent
82f7a984d5
commit
2b013c6581
1 changed files with 5 additions and 5 deletions
|
|
@ -167,11 +167,6 @@
|
|||
{% 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) %}
|
||||
|
|
@ -219,6 +214,11 @@
|
|||
{%- 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" %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue