Merge pull request #1775 from MayMeow/dev/fedi-author-attr

Added fediverse Author attribution attribute
This commit is contained in:
Nuno Coração 2024-11-08 17:13:08 +00:00 committed by GitHub
commit 75875e6d98
3 changed files with 5 additions and 0 deletions

View file

@ -159,3 +159,4 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
# bing = ""
# pinterest = ""
# yandex = ""
# fediverse = ""

View file

@ -357,6 +357,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
| `verification.bing` | _Not set_ | The site verification string provided by Bing to be included in the site metadata. |
| `verification.pinterest` | _Not set_ | The site verification string provided by Pinterest to be included in the site metadata. |
| `verification.yandex` | _Not set_ | The site verification string provided by Yandex to be included in the site metadata. |
| `verification.fediverse` | _Not set_ | The fediverse handle to include in the site metadata. Include the server domain in the username, e.g. `@you@instanceaddress.tld`. |
<!-- prettier-ignore-end -->
## Other configuration files

View file

@ -101,6 +101,9 @@
{{ with .Site.Params.verification.yandex }}
<meta name="yandex-verification" content="{{ . }}" />
{{ end }}
{{ with .Site.Params.verification.fediverse }}
<meta name="fediverse:creator" content="{{ . }}" />
{{ end }}
{{/* Social */}}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}