From 2bd232b5ec387fc5375e47ea942aec1444e69388 Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <patrick@davids-neighbour.com>
Date: Sun, 09 Feb 2025 08:54:05 +0000
Subject: [PATCH] refactor(codestyle): rewrite author meta tag generation

---
 layouts/_default/baseof.html |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 3277921..30ce76c 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -16,13 +16,11 @@
       <meta name="robots" content="noindex, nofollow">
     {{ end }}
     {{ with .Params.author | default .Site.Params.author }}
-      <meta name="author" content = "
-        {{- if reflect.IsSlice . -}}
-          {{ delimit . ", " | plainify }}
-        {{- else -}}
-          {{ . | plainify }}
-        {{- end -}}
-      ">
+      {{- $author := . -}}
+      {{- if reflect.IsSlice . -}}
+        {{- $author = delimit . ", " | plainify -}}
+      {{- end -}}
+      <meta name="author" content="{{ $author }}">
     {{ end }}
 
     {{ partial "site-style.html" . }}

--
Gitblit v1.10.0