Add an optional verification link to your Mastodon profile

This commit is contained in:
Florian 2023-01-18 16:45:25 +01:00
parent 94d8927676
commit ad868c7cac
2 changed files with 9 additions and 0 deletions

View File

@ -215,6 +215,10 @@ paginate = 5
creator = ""
site = ""
[params.mastodon]
# set rel-Link to your mastodon profile
# site = "" # full URL, e.g. https://myInstance.org/@myUsername
[languages]
[languages.en]
languageName = "English"

View File

@ -45,6 +45,11 @@
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ .Params.Author }}{{ end }}" />
{{ end }}
<!-- Mastodon rel link -->
{{ if (isset $.Site.Params.Mastodon "site") }}
<link rel="me" href="{{ $.Site.Params.Mastodon.site }}" />
{{ end }}
<!-- OG data -->
<meta property="og:locale" content="{{ $.Site.Language.Lang }}" />
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />