From 2dffde575587f5858066709ea300b38c39cc9e86 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Fri, 22 Dec 2023 16:19:48 -0600 Subject: [PATCH] add verification links to head on home page --- config/_default/params.toml | 18 +++++++++++++++++- layouts/partials/head.html | 8 ++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index fa8f5ba..9366d12 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -170,4 +170,20 @@ url = "https://torchlight.dev" [[powerLinks]] title = "cabin" -url = "https://withcabin.com/privacy/runtimeterror.dev" \ No newline at end of file +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" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d14922a..bcfc68b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,10 +5,18 @@ {{ if or (.Site.Params.noindex) (.Params.noindex) }} {{ end }} + {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} {{ end }} + +{{ if .IsHome }} +{{ range $item := .Site.Params.verifyLinks }} + +{{ end }} +{{ end }} + {{ partialCached "favicon" . }} {{ partial "opengraph" . }}