♻️ refactor(template): relocate webmentions include logic

- move webmentions include from header to specific page section
- ensure webmentions are conditionally included based on configuration
This commit is contained in:
Jeremiah Russell 2025-04-30 11:57:06 +01:00
parent e71516ddc4
commit 9fe3bcc487
No known key found for this signature in database
GPG key ID: E576B835ACE207E5
2 changed files with 5 additions and 4 deletions

View file

@ -321,6 +321,11 @@ 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) %}

View file

@ -151,10 +151,6 @@
<meta name="fediverse:creator" content="@{{ config.extra.fediverse_creator["handle"] }}@{{ config.extra.fediverse_creator["domain"]}}" />
{%- endif -%}
{# Webmentions #}
{%- if config.extra.webmentions.enable -%}
{%- include "partials/webmentions.html" -%}
{%- endif -%}
{# Search #}
{%- if config.build_search_index -%}