mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-24 14:00:42 +00:00
fix authors data file handling
This commit is contained in:
parent
3f1498bf07
commit
789f924d68
@ -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
|
||||
|
@ -3,6 +3,7 @@ title: "Emoji Support"
|
||||
date: 2020-07-13T19:00:00+02:00
|
||||
authors:
|
||||
- john-doe
|
||||
- Special User
|
||||
tags:
|
||||
- Documentation
|
||||
---
|
||||
|
2
exampleSite/data/authors/Special User.yml
Normal file
2
exampleSite/data/authors/Special User.yml
Normal file
@ -0,0 +1,2 @@
|
||||
name: Sven Special
|
||||
email: sven@example.com
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user