Make theme compatible with hugoBasicExamples
Signed-off-by: hossainemruz <emruz@appscode.com>
This commit is contained in:
parent
e7b2fba1b0
commit
dbd270eaee
60 changed files with 150 additions and 394 deletions
|
@ -1,5 +1,9 @@
|
|||
{{ $authorImage:= "/assets/images/default-avatar.svg"}}
|
||||
{{ if isset .author "image" }}
|
||||
{{ $authorImage = .author.image }}
|
||||
{{ if eq (printf "%T" .Params.author ) "maps.Params" }}
|
||||
{{ with .Params.author }}
|
||||
{{ if .image }}
|
||||
{{ $authorImage = .image }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ return $authorImage }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue