cach-radio/inc/themes/castanet/layouts/partials/author.html

7 lines
318 B
HTML
Raw Permalink Normal View History

2022-12-15 22:36:40 +01:00
{{ with .Page.Param "Author" }}
{{ $hosts := where $.Site.RegularPages ".Section" "host" }}
{{ $filesWithAuthor := where $.Site.RegularPages ".File.BaseFileName" . }}
{{ $author := index ($filesWithAuthor | intersect $hosts) 0 }}
by <a href="{{ $author.Permalink}} ">{{ $author.Title }}</a>
{{ end }}