mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
🐛 fix(config): update webmentions configuration
- change "enable" to "enabled" for correct configuration key - uncomment and set webmentions configurations for correct functionality ✨ feat(blog): add webmentions shortcode - insert webmentions shortcode in blog shortcode index for display 🐛 fix(theme): update webmentions configuration in theme - change "enable" to "enabled" for correct configuration key in theme - uncomment and set webmentions configurations for correct functionality
This commit is contained in:
parent
a663de6dac
commit
afbf2aa2ff
4 changed files with 8 additions and 8 deletions
|
@ -328,7 +328,6 @@ allowed_domains = [
|
|||
{ directive = "script-src", domains = ["'self'"] },
|
||||
{ directive = "style-src", domains = ["'self'"] },
|
||||
{ directive = "frame-src", domains = ["player.vimeo.com", "https://www.youtube-nocookie.com"] },
|
||||
# { directive = "connect-src", domains = [ "https://webmention.io"] },
|
||||
]
|
||||
|
||||
# Enable the CSP directives configured (or default).
|
||||
|
@ -365,9 +364,9 @@ service = "goatcounter"
|
|||
self_hosted_url = "https://tabi-stats.osc.garden"
|
||||
|
||||
[extra.webmentions]
|
||||
# enable = true
|
||||
enabled = true
|
||||
# Specify the domain registered with webmention.io.
|
||||
# domain = "www.example.com"
|
||||
domain = "www.example.com"
|
||||
|
||||
# The HTML ID for the object to fill in with the webmention data.
|
||||
# Defaults to "webmentions"
|
||||
|
@ -381,7 +380,7 @@ page_url = "https://beesbuzz.biz/code/439-Falsehoods-programmers-believe-about-e
|
|||
# add_urls
|
||||
|
||||
# The maximum number of words to render in reply mentions.
|
||||
# wordcount = 20
|
||||
wordcount = 20
|
||||
|
||||
# The maximum number of mentions to retrieve. Defaults to 30.
|
||||
# max_webmentions
|
||||
|
|
|
@ -466,5 +466,7 @@ Add the shortcut on the page where you want to display the webmentions:
|
|||
{{/* webmentions() */}}
|
||||
```
|
||||
|
||||
{{ webmentions() }}
|
||||
|
||||
[1]: https://www.w3.org/TR/webmention/#abstract-p-1
|
||||
[2]: https://webmention.io/
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
{%- endif -%}
|
||||
|
||||
{# Webmentions #}
|
||||
{%- if config.extra.webmentions.enable -%}
|
||||
{%- if config.extra.webmentions.enabled -%}
|
||||
{%- include "partials/webmentions.html" -%}
|
||||
{%- endif -%}
|
||||
|
||||
|
|
|
@ -285,7 +285,6 @@ allowed_domains = [
|
|||
{ directive = "script-src", domains = ["'self'"] },
|
||||
{ directive = "style-src", domains = ["'self'"] },
|
||||
{ directive = "frame-src", domains = ["player.vimeo.com", "https://www.youtube-nocookie.com"] },
|
||||
# { directive = "connect-src", domains = [ "https://webmention.io"] },
|
||||
]
|
||||
|
||||
# Enable the CSP directives configured (or default).
|
||||
|
@ -322,7 +321,7 @@ custom_subset = true
|
|||
# self_hosted_url = ""
|
||||
|
||||
[extra.webmentions]
|
||||
# enable = true
|
||||
# enabled = true
|
||||
# Specify the domain registered with webmention.io.
|
||||
# domain = "www.example.com"
|
||||
|
||||
|
@ -332,7 +331,7 @@ custom_subset = true
|
|||
|
||||
# data configuration for the webmention.min.js script
|
||||
# The base URL to use for this page. Defaults to window.location
|
||||
# page_url = "https://beesbuzz.biz/code/439-Falsehoods-programmers-believe-about-email"
|
||||
# page_url =
|
||||
|
||||
# Additional URLs to check, separated by |s
|
||||
# add_urls
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue