From a574a122a48cca0c5bd3cfdb31a238077538e245 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Fri, 25 Nov 2022 23:22:28 -0500 Subject: [PATCH] Made webmention portion of code more generic --- layouts/alias.html | 5 ----- layouts/index.html | 2 +- layouts/partials/head.html | 6 ++++-- layouts/partials/webmentions.html | 3 ++- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/layouts/alias.html b/layouts/alias.html index 310f348..aaf3be3 100644 --- a/layouts/alias.html +++ b/layouts/alias.html @@ -5,11 +5,6 @@ - - - - - diff --git a/layouts/index.html b/layouts/index.html index 5376d07..e81578c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -14,7 +14,7 @@

{{ .Site.Params.Author }}

- +

{{ .Site.Params.description | safeHTML }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 42c5353..4e9ae01 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -14,6 +14,7 @@ + @@ -22,8 +23,9 @@ {{ end -}} - - + {{ $siteHost := (urls.Parse .Site.BaseURL).Host -}} + + {{- if .IsHome -}} diff --git a/layouts/partials/webmentions.html b/layouts/partials/webmentions.html index a23081f..c702737 100644 --- a/layouts/partials/webmentions.html +++ b/layouts/partials/webmentions.html @@ -1,6 +1,7 @@

-
+{{ $siteHost := (urls.Parse .Site.BaseURL).Host -}} +

Have you published a response to this? :