wip: make theme workable with hugoBasicExample site
This commit is contained in:
parent
07e816219f
commit
e7b2fba1b0
24 changed files with 343 additions and 34 deletions
5
layouts/partials/helpers/get-author-name.html
Normal file
5
layouts/partials/helpers/get-author-name.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{ $authorName:= "John Doe"}}
|
||||
{{ if isset .author "name" }}
|
||||
{{ $authorName = .author.name }}
|
||||
{{ end }}
|
||||
{{ return $authorName }}
|
Loading…
Add table
Add a link
Reference in a new issue