diff --git a/CHANGELOG.md b/CHANGELOG.md index b434d6d..26e7438 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/exampleSite/content/posts/emojies.md b/exampleSite/content/posts/emojies.md index 3c26318..074070c 100644 --- a/exampleSite/content/posts/emojies.md +++ b/exampleSite/content/posts/emojies.md @@ -3,6 +3,7 @@ title: "Emoji Support" date: 2020-07-13T19:00:00+02:00 authors: - john-doe + - Special User tags: - Documentation --- diff --git a/exampleSite/data/authors/Special User.yml b/exampleSite/data/authors/Special User.yml new file mode 100644 index 0000000..d57c9eb --- /dev/null +++ b/exampleSite/data/authors/Special User.yml @@ -0,0 +1,2 @@ +name: Sven Special +email: sven@example.com diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a646cf5..d2426b9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -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 }}