Skip to content

Commit

Permalink
Merge pull request #17 from thegeeklab/fix-authors
Browse files Browse the repository at this point in the history
fix authors data file handling
  • Loading branch information
xoxys authored Nov 28, 2020
2 parents 3f1498b + 789f924 commit 3cdc54f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions exampleSite/content/posts/emojies.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Emoji Support"
date: 2020-07-13T19:00:00+02:00
authors:
- john-doe
- Special User
tags:
- Documentation
---
Expand Down
2 changes: 2 additions & 0 deletions exampleSite/data/authors/Special User.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: Sven Special
email: [email protected]
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1><a href="{{ .RelPermalink }}">{{ partial "title" . }}</a></h1>
{{ 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>
Expand Down

0 comments on commit 3cdc54f

Please sign in to comment.