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 @@ {{- end }} +{{ if .Param "fediverse" }} + +{{ end }} + {{ 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" --- ```