fix authors data file handling

This commit is contained in:
Robert Kaussow 2020-11-28 17:12:15 +01:00
parent 3f1498bf07
commit 789f924d68
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
4 changed files with 5 additions and 1 deletions

View File

@ -5,3 +5,4 @@
for the default content section (defaults to `posts` or `post`) for the default content section (defaults to `posts` or `post`)
- BUGFIX - BUGFIX
- normalize source icon size for the icon font - normalize source icon size for the icon font
- fix authors data file handling

View File

@ -3,6 +3,7 @@ title: "Emoji Support"
date: 2020-07-13T19:00:00+02:00 date: 2020-07-13T19:00:00+02:00
authors: authors:
- john-doe - john-doe
- Special User
tags: tags:
- Documentation - Documentation
--- ---

View File

@ -0,0 +1,2 @@
name: Sven Special
email: sven@example.com

View File

@ -49,7 +49,7 @@
{{ with .Params.authors }} {{ with .Params.authors }}
{{ range sort . }} {{ range sort . }}
{{ $author := index $.Site.Data.authors . }} {{ $author := index $.Site.Data.authors . }}
{{ with $.Site.GetPage (printf "/authors/%s" $author.name | urlize) }} {{ with $.Site.GetPage (printf "/authors/%s" . | urlize) }}
{{ if eq $ac 0 }} {{ if eq $ac 0 }}
<span class="no-wrap"> <span class="no-wrap">
<svg class="icon person"><use xlink:href="#person"></use></svg> <svg class="icon person"><use xlink:href="#person"></use></svg>