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-image.html
Normal file
5
layouts/partials/helpers/get-author-image.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{ $authorImage:= "/assets/images/default-avatar.svg"}}
|
||||
{{ if isset .author "image" }}
|
||||
{{ $authorImage = .author.image }}
|
||||
{{ end }}
|
||||
{{ return $authorImage }}
|
Loading…
Add table
Add a link
Reference in a new issue