From 3fc0dba4012108749f433da017d9e02cf64b6503 Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <patrick@davids-neighbour.com>
Date: Sun, 09 Feb 2025 08:55:24 +0000
Subject: [PATCH] theme(fix): add author bylines and fix author generation

---
 layouts/_default/single.html |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c7c2b13..89a2407 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -4,6 +4,7 @@
 {{ end }}
 
 {{ define "main" }}
+  {{ $page := .}}
   {{ $section := .Site.GetPage "section" .Section }}
   <article class="flex-l flex-wrap justify-between mw8 center ph3">
     <header class="mt4 w-100">
@@ -20,7 +21,7 @@
       </h1>
       {{ with .Params.author | default .Site.Params.author }}
       <p class="tracked">
-        {{- if eq .Lang "de" "en" "es" "fr" "it" "no" "pt" -}}
+        {{- if eq $page.Language "de" "en" "es" "fr" "it" "no" "pt" -}}
           {{- i18n "by" -}}
         {{ end -}} <strong>
         {{- if reflect.IsSlice . -}}

--
Gitblit v1.10.0