feat: add support for webmentions

This commit is contained in:
2025-07-12 18:54:02 +07:00
parent 02c3adb06e
commit f18f8d7d24
10 changed files with 805 additions and 12 deletions

View File

@@ -54,6 +54,11 @@ content="default-src 'self'
{%- set script_src = script_src ~ " " ~ " cdn.jsdelivr.net" -%}
{%- endif -%}
{#- Check if a webmention system is enabled to allow the necessary domains and directives -#}
{%- if config.extra.webmentions.enable -%}
{%- set connect_src = connect_src ~ " webmention.io" -%}
{%- endif -%}
{#- Append WebSocket for Zola serve mode -#}
{%- if config.mode == "serve" -%}
{%- set connect_src = connect_src ~ " ws:" -%}