diff options
author | Francesco Tomaselli <tomaselli.fr@gmail.com> | 2025-01-22 20:32:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-22 20:32:42 +0100 |
commit | 682f7b7d63ddc97d30475617bbc1fee0116a8243 (patch) | |
tree | 4e4595dcead0269d6ac362859804a0394b1ea93a | |
parent | 2de69514b8f412bc57caf0a34a6dd7a8b1798aba (diff) | |
parent | e2f641fc8b4204904c464d4bf54c72b4010ea4da (diff) |
Merge pull request #67 from edfloreshz-ext/fediverse
Add fediverse meta tag
-rw-r--r-- | layouts/partials/head.html | 4 | ||||
-rw-r--r-- | wiki/features/single-page-parameters.md | 9 | ||||
-rw-r--r-- | wiki/setup.md | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d2d28e3..5eea693 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,6 +19,10 @@ <meta name="description" content="{{ .Params.Description }}"/> {{- end }} +{{ if .Param "fediverse" }} +<meta name="fediverse:creator" content="{{ .Params.Fediverse }}"> +{{ end }} + <title> {{ if .IsHome }} {{ site.Title }} diff --git a/wiki/features/single-page-parameters.md b/wiki/features/single-page-parameters.md index d0ebe88..761cf5b 100644 --- a/wiki/features/single-page-parameters.md +++ b/wiki/features/single-page-parameters.md @@ -87,3 +87,12 @@ You can decide the date format to apply to single posts by setting the following [params] singleDateFormat = '2 January 2006' ``` + +## Fediverse + +You can include a [fediverse handle](https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/) in your posts. + +```toml +[params] +fediverse: "@username@instance.url" +```
\ No newline at end of file diff --git a/wiki/setup.md b/wiki/setup.md index 1ff6d23..7ec74f6 100644 --- a/wiki/setup.md +++ b/wiki/setup.md @@ -176,6 +176,7 @@ math: true tags: ["database", "java"] showTags: false hideBackToTop: false +fediverse: "@username@instance.url" --- ``` |