hugo-theme-relearn/layouts/partials/_relearn/authorName.gotmpl

12 lines
462 B
Go Template
Raw Normal View History

{{- $authorName := "" }}
{{- with .Site.Params.author }}
{{- if reflect.IsMap . }}
{{- with .name }}
{{- $authorName = . }}
{{- end }}
{{- else }}
2024-09-29 21:54:17 +00:00
{{- 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 }}