🐛 fix(config): correct webmentions configuration key

- change "enabled" to "enable" in config.toml for webmentions
- update template files to reflect the corrected configuration key
This commit is contained in:
Jeremiah Russell 2025-03-19 15:44:55 +00:00
parent bc65184cd6
commit 2d8ab844f0
No known key found for this signature in database
GPG key ID: E576B835ACE207E5
3 changed files with 4 additions and 5 deletions

View file

@ -373,7 +373,7 @@ service = "goatcounter"
self_hosted_url = "https://tabi-stats.osc.garden" self_hosted_url = "https://tabi-stats.osc.garden"
[extra.webmentions] [extra.webmentions]
enabled = true enable = true
# Specify the domain registered with webmention.io. # Specify the domain registered with webmention.io.
domain = "www.example.com" domain = "www.example.com"
@ -392,7 +392,7 @@ page_url = "https://www.jrussell.ie/blog/update-and-release/10-update-and-releas
wordcount = 20 wordcount = 20
# The maximum number of mentions to retrieve. Defaults to 30. # The maximum number of mentions to retrieve. Defaults to 30.
# max_webmentions # max_webmentions = 30
# By default, Webmentions render using the mf2 'url' element, which plays # By default, Webmentions render using the mf2 'url' element, which plays
# nicely with webmention bridges (such as brid.gy and telegraph) # nicely with webmention bridges (such as brid.gy and telegraph)

View file

@ -55,8 +55,7 @@ content="default-src 'self'
{%- endif -%} {%- endif -%}
{#- Check if a webmention system is enabled to allow the necessary domains and directives -#} {#- Check if a webmention system is enabled to allow the necessary domains and directives -#}
{%- set webmention_enabled = config.extra.webmentions.enabled -%} {%- if config.extra.webmentions.enable -%}
{%- if webmention_enabled -%}
{%- set connect_src = connect_src ~ " webmention.io" -%} {%- set connect_src = connect_src ~ " webmention.io" -%}
{%- endif -%} {%- endif -%}

View file

@ -152,7 +152,7 @@
{%- endif -%} {%- endif -%}
{# Webmentions #} {# Webmentions #}
{%- if config.extra.webmentions.enabled -%} {%- if config.extra.webmentions.enable -%}
{%- include "partials/webmentions.html" -%} {%- include "partials/webmentions.html" -%}
{%- endif -%} {%- endif -%}