add verification links to head on home page

This commit is contained in:
John Bowdre 2023-12-22 16:19:48 -06:00
parent fe1a3d90cd
commit 2dffde5755
2 changed files with 25 additions and 1 deletions

View file

@ -171,3 +171,19 @@ url = "https://torchlight.dev"
[[powerLinks]] [[powerLinks]]
title = "cabin" title = "cabin"
url = "https://withcabin.com/privacy/runtimeterror.dev" url = "https://withcabin.com/privacy/runtimeterror.dev"
[[verifyLinks]]
title = "omg.lol"
url = "https://proven.lol/cd10d3"
[[verifyLinks]]
title = "CounterSocial"
url = "https://counter.social/@john_b"
[[verifyLinks]]
title = "Mastodon"
url = "https://social.lol/@jbowdre"
[[verifyLinks]]
title = "GitHub"
url = "https://github.com/jbowdre"

View file

@ -5,10 +5,18 @@
<meta charset="UTF-8"/> <meta charset="UTF-8"/>
{{ if or (.Site.Params.noindex) (.Params.noindex) }}<meta name="robots" content="noindex" /> {{ end }} {{ if or (.Site.Params.noindex) (.Params.noindex) }}<meta name="robots" content="noindex" /> {{ end }}
<!-- RSS -->
{{ with .OutputFormats.Get "rss" -}} {{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }} {{ end }}
<!-- verification links -->
{{ if .IsHome }}
{{ range $item := .Site.Params.verifyLinks }}
<link rel="me" title="{{ $item.title }}" href="{{ $item.url }}">
{{ end }}
{{ end }}
{{ partialCached "favicon" . }} {{ partialCached "favicon" . }}
{{ partial "opengraph" . }} {{ partial "opengraph" . }}