mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
12 lines
No EOL
462 B
Go Template
12 lines
No EOL
462 B
Go Template
{{- $authorName := "" }}
|
|
{{- with .Site.Params.author }}
|
|
{{- if reflect.IsMap . }}
|
|
{{- with .name }}
|
|
{{- $authorName = . }}
|
|
{{- end }}
|
|
{{- else }}
|
|
{{- warnf "DEPRECATED usage of 'params.author' config parameter found, replace it with `params.author.name` in your hugo.toml; see https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/5/#5-23-0" }}
|
|
{{- $authorName = . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- return $authorName }} |