Add support for Mastodon profile verification

This commit is contained in:
n07070 2022-11-08 23:44:28 +01:00
parent 65c654fede
commit 85df577a19
Signed by: n07070
GPG Key ID: 7B559AE204612482

View File

@ -19,17 +19,20 @@
{{ if (fileExists "static/safari-pinned-tab.svg") -}}
<link rel="mask-icon" href="{{ "/safari-pinned-tab.svg" | absURL }}" color="#5bbad5">
{{ end -}}
{{ if isset $.Site.Params "mastodon_profile_link" -}}
<link rel="me" href="{{- $.Site.Params.mastodon_profile_link -}}">
{{ end -}}
{{ if (fileExists "layouts/partials/meta-tags.html") -}}
{{ partial "meta-tags.html" . }}
{{ end -}}
{{ with resources.Get "css/katex.css" -}}
<link href="{{ .Permalink }}" rel="stylesheet">
<link href="{{ .Permalink -}}" rel="stylesheet">
{{ end -}}
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
{{ $mainStyle := resources.Get "css/style.css" }}
{{ $overrideStyle := resources.Get "css/override.css" }}
{{ $printStyle := resources.Get "css/print.css" }}
{{ $style := slice $normalizeStyle $mainStyle $overrideStyle $printStyle | resources.Concat "css/concated.css" | minify }}
{{ $normalizeStyle := resources.Get "css/normalize.css" -}}
{{ $mainStyle := resources.Get "css/style.css" -}}
{{ $overrideStyle := resources.Get "css/override.css" -}}
{{ $printStyle := resources.Get "css/print.css" -}}
{{ $style := slice $normalizeStyle $mainStyle $overrideStyle $printStyle | resources.Concat "css/concated.css" | minify -}}
<link href="{{ $style.Permalink }}" rel="stylesheet">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}