diff options
author | Oscar Najera <hi@oscarnajera.com> | 2024-12-27 04:01:34 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-12-27 21:59:22 +0100 |
commit | edf690072e871a3e6acd84b8e9fb84483fdebdc2 (patch) | |
tree | e843cc36fe2c0dbb9b47c3e416a7f1dd9ab8981c /layouts/partials/metadata.html | |
parent | a77f5ec0e165c4e061f42b789bcddae75d6fe78c (diff) | |
download | hugo-minimalist-theme-edf690072e871a3e6acd84b8e9fb84483fdebdc2.tar.gz hugo-minimalist-theme-edf690072e871a3e6acd84b8e9fb84483fdebdc2.tar.bz2 hugo-minimalist-theme-edf690072e871a3e6acd84b8e9fb84483fdebdc2.zip |
Track author taxonomy
Diffstat (limited to 'layouts/partials/metadata.html')
-rw-r--r-- | layouts/partials/metadata.html | 16 |
1 files changed, 13 insertions, 3 deletions
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" }} <div class="f6 lh-copy mv0 ph4 pv2"> - By - {{ with .Params.author }} - <span class="author"> — {{ delimit . ", " }} </span> + By — + {{ range .Params.authors }} + {{ $name := . }} + {{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }} + {{ with $.GetPage $path }} + {{ if isset .Params "name" }} + <a class="link underline color-inherit" href="{{ .RelPermalink }}"> + {{- default $name .Params.name -}} + </a> + {{ else }} + {{ $name }} + {{ end }} + {{ end }} {{ end }} |