add verification links to head on home page

This commit is contained in:
John Bowdre 2023-12-22 16:19:48 -06:00
parent f42fb4d223
commit 3536f61fc9
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" . }}