From c67ddb3eba668d1f7fb1b0b8a9291a47ba6b89f3 Mon Sep 17 00:00:00 2001 From: Eduardo Flores Date: Mon, 20 Jan 2025 22:40:24 +0100 Subject: 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 }} -- cgit v1.2.3 From 7d1b5be1dc75c9c125ebd8d1f9c767ac0c9b5327 Mon Sep 17 00:00:00 2001 From: Eduardo Flores <edfloreshz@gmail.com> Date: Mon, 20 Jan 2025 22:49:24 +0100 Subject: 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> -- cgit v1.2.3 From e2f641fc8b4204904c464d4bf54c72b4010ea4da Mon Sep 17 00:00:00 2001 From: Eduardo Flores <edfloreshz@gmail.com> Date: Wed, 22 Jan 2025 14:08:55 +0100 Subject: 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" --- ``` -- cgit v1.2.3