diff options
author | tdro <tdro@noreply.example.com> | 2022-06-15 22:40:02 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-15 22:40:02 -0400 |
commit | b03fbdca3b70587cb46b28aadd30d42fe0b29f50 (patch) | |
tree | 8d174422cb47356e8c92c9ac4964eba2cebbfa58 /themes/default/layouts/partials/author-name.html | |
parent | 9cba41a32db4a059e46ea4daf217d0c8f41b9791 (diff) | |
download | canory-b03fbdca3b70587cb46b28aadd30d42fe0b29f50.tar.gz canory-b03fbdca3b70587cb46b28aadd30d42fe0b29f50.tar.bz2 canory-b03fbdca3b70587cb46b28aadd30d42fe0b29f50.zip |
themes/default/layouts/partials/head: Try variable context
Try explicit inputs on default templates. Header links
properly reflects home configuration now. Initial experiment for
showing follow list.
Diffstat (limited to 'themes/default/layouts/partials/author-name.html')
-rw-r--r-- | themes/default/layouts/partials/author-name.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/author-name.html b/themes/default/layouts/partials/author-name.html index 405569c..0b3b43c 100644 --- a/themes/default/layouts/partials/author-name.html +++ b/themes/default/layouts/partials/author-name.html @@ -1,2 +1,8 @@ -{{ $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") }} +{{- $author := .Data.Author -}} + +{{- with $author -}} +{{- else -}} + {{- $author = index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") -}} +{{- end -}} + {{- $author.name | markdownify -}} |