Merge pull request #17 from thegeeklab/fix-authors

fix authors data file handling
This commit is contained in:
Robert Kaussow 2020-11-28 17:16:10 +01:00 committed by GitHub
commit 3cdc54fcf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>