Make theme compatible with hugoBasicExamples
Signed-off-by: hossainemruz <emruz@appscode.com>
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
{{ $authorName:= "John Doe"}}
|
||||
{{ if isset .author "name" }}
|
||||
{{ $authorName = .author.name }}
|
||||
{{ if eq (printf "%T" .Params.author ) "maps.Params" }}
|
||||
{{ with .Params.author }}
|
||||
{{ if .name }}
|
||||
{{ $authorName = .name }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ return $authorName }}
|
||||
|
||||
Reference in New Issue
Block a user