From 85df577a19d649de2fc1ddcd10a9559ec4f24385 Mon Sep 17 00:00:00 2001 From: n07070 Date: Tue, 8 Nov 2022 23:44:28 +0100 Subject: [PATCH] Add support for Mastodon profile verification --- layouts/partials/head.html | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c0ae0ad..c1ee266 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,34 +5,37 @@ {{ if not .IsHome }}{{with .Title }}{{ . }} · {{ end }}{{ end }}{{ .Site.Title }} {{ if (fileExists "static/apple-touch-icon.png") -}} - + {{ end -}} {{ if (fileExists "static/favicon-32x32.png") -}} - + {{ end -}} {{ if (fileExists "static/favicon-16x16.png") -}} - + {{ end -}} {{ if (fileExists "static/site.webmanifest") -}} {{ end -}} {{ if (fileExists "static/safari-pinned-tab.svg") -}} - + + {{ end -}} + {{ if isset $.Site.Params "mastodon_profile_link" -}} + {{ end -}} {{ if (fileExists "layouts/partials/meta-tags.html") -}} - {{ partial "meta-tags.html" . }} + {{ partial "meta-tags.html" . }} {{ end -}} {{ with resources.Get "css/katex.css" -}} - + {{ 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 -}} {{ range .AlternativeOutputFormats -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{ with resources.GetMatch .Site.Params.bgimg -}}