diff --git a/templates/page.html b/templates/page.html index 736c526..dc79ab0 100644 --- a/templates/page.html +++ b/templates/page.html @@ -322,11 +322,6 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {% set enabled_systems = 0 %} {% set comment_system = "" %} - {# Webmentions #} - {%- if config.extra.webmentions.enable -%} - {%- include "partials/webmentions.html" -%} - {%- endif -%} - {% for system in systems %} {% set global_enabled = config.extra[system].enabled_for_all_posts | default(value=false) %} {% set page_enabled = page.extra[system] | default(value=global_enabled) %} @@ -345,6 +340,11 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {% include "partials/comments.html" %} {% endif %} + {# Webmentions #} + {%- if config.extra.webmentions.enable -%} + {%- include "partials/webmentions.html" -%} + {%- endif -%} + diff --git a/templates/partials/extra_features.html b/templates/partials/extra_features.html index 2662b92..2dec211 100644 --- a/templates/partials/extra_features.html +++ b/templates/partials/extra_features.html @@ -21,9 +21,16 @@ {% endif %} - {# Button to go to the comment section #} - {% if comment_system %} - + {# Button to go to the comment/webmentions section #} + {% if comment_system or config.extra.webmentions.enable %} + {%- if comment_system -%} + {#- Comments are shown above webmentions -#} + {%- set comments_id = "comments" -%} + {%- else -%} + {%- set comments_id = "webmentions" -%} + {%- endif -%} + + {% endif %}