From 1696c8e99a7ff1f0d0c0309ce1df6edc5d6fb005 Mon Sep 17 00:00:00 2001 From: Eduardo Flores Date: Mon, 20 Jan 2025 22:40:24 +0100 Subject: [PATCH 1/3] add: fediverse meta tag --- layouts/partials/head.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d2d28e3..92c35e3 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,6 +19,10 @@ {{- end }} +{{ if .Param "fediverse" }} + +{{ end }} + {{ if .IsHome }} {{ site.Title }} From f277baeee1a070da5a6242946b5bec85e113a41a Mon Sep 17 00:00:00 2001 From: Eduardo Flores <edfloreshz@gmail.com> Date: Mon, 20 Jan 2025 22:49:24 +0100 Subject: [PATCH 2/3] fix: change property for name --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 92c35e3..5eea693 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -20,7 +20,7 @@ {{- end }} {{ if .Param "fediverse" }} -<meta property="fediverse:creator" content="{{ .Params.Fediverse }}"> +<meta name="fediverse:creator" content="{{ .Params.Fediverse }}"> {{ end }} <title> From 7db39e0b863a3a0f20a2b3abbdbf118d6c21c81c Mon Sep 17 00:00:00 2001 From: Eduardo Flores <edfloreshz@gmail.com> Date: Wed, 22 Jan 2025 14:08:55 +0100 Subject: [PATCH 3/3] add: fediverse documentation to wiki --- wiki/features/single-page-parameters.md | 9 +++++++++ wiki/setup.md | 1 + 2 files changed, 10 insertions(+) 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" --- ```