Merge pull request #67 from edfloreshz-ext/fediverse

Add fediverse meta tag
This commit is contained in:
Francesco Tomaselli 2025-01-22 20:32:42 +01:00 committed by GitHub
commit 96a8842cfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 0 deletions

View file

@ -19,6 +19,10 @@
<meta name="description" content="{{ .Params.Description }}"/> <meta name="description" content="{{ .Params.Description }}"/>
{{- end }} {{- end }}
{{ if .Param "fediverse" }}
<meta name="fediverse:creator" content="{{ .Params.Fediverse }}">
{{ end }}
<title> <title>
{{ if .IsHome }} {{ if .IsHome }}
{{ site.Title }} {{ site.Title }}

View file

@ -87,3 +87,12 @@ You can decide the date format to apply to single posts by setting the following
[params] [params]
singleDateFormat = '2 January 2006' 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"
```

View file

@ -176,6 +176,7 @@ math: true
tags: ["database", "java"] tags: ["database", "java"]
showTags: false showTags: false
hideBackToTop: false hideBackToTop: false
fediverse: "@username@instance.url"
--- ---
``` ```