From edf690072e871a3e6acd84b8e9fb84483fdebdc2 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 27 Dec 2024 04:01:34 +0100 Subject: Track author taxonomy --- layouts/partials/metadata.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'layouts/partials/metadata.html') diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index b2136bc..28dc5b4 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,9 +1,19 @@ {{ $dateTime := .PublishDate.Format "2006-01-02" }} {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
- By - {{ with .Params.author }} - — {{ delimit . ", " }} + By — + {{ range .Params.authors }} + {{ $name := . }} + {{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }} + {{ with $.GetPage $path }} + {{ if isset .Params "name" }} + + {{- default $name .Params.name -}} + + {{ else }} + {{ $name }} + {{ end }} + {{ end }} {{ end }} -- cgit v1.2.3