mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
♻️ 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:
parent
e71516ddc4
commit
9fe3bcc487
2 changed files with 5 additions and 4 deletions
|
@ -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) %}
|
||||
|
|
|
@ -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 -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue