fix authors data file handling

This commit is contained in:
Robert Kaussow 2020-11-28 17:12:15 +01:00
parent 3f1498bf07
commit 789f924d68
No known key found for this signature in database
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`)
- BUGFIX
- 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
authors:
- john-doe
- Special User
tags:
- Documentation
---

View File

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

View File

@ -49,7 +49,7 @@
{{ with .Params.authors }}
{{ range sort . }}
{{ $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 }}
<span class="no-wrap">
<svg class="icon person"><use xlink:href="#person"></use></svg>