* Fix the single template to use the authors avatar correctly * Replace absURL with relURL and .Site.X with site.X Co-authored-by: Emruz Hossain <emruz@appscode.com>
12 lines
344 B
HTML
12 lines
344 B
HTML
{{ $authorName:= site.Params.author.name }}
|
|
{{ if site.Data.site.author}}
|
|
{{ $authorName = site.Data.site.author.name }}
|
|
{{ end}}
|
|
{{ if eq (printf "%T" .Params.author ) "maps.Params" }}
|
|
{{ with .Params.author }}
|
|
{{ if .name }}
|
|
{{ $authorName = .name }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ return $authorName }}
|