github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/docs/themes/hugo-theme-relearn/layouts/partials/authorname.hugo (about)

     1  {{- $authorName := "" }}
     2  {{- if .Site.Params.author }}
     3    {{- if reflect.IsMap .Site.Params.author }}
     4      {{- with .Site.Params.author.name }}
     5        {{- $authorName = . }}
     6      {{- end }}
     7    {{- else }}
     8      {{- 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/basics/migration#5230" }}
     9      {{- $authorName = .Site.Params.author }}
    10    {{- end }}
    11  {{- else }}
    12    {{- with .Site.Author.name }}
    13      {{- $authorName = . }}
    14      {{- $hugoVersion := "0.120.0" }}
    15      {{- if ge hugo.Version $hugoVersion }}
    16        {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }}
    17      {{- end }}
    18    {{- end }}
    19  {{- end }}
    20  {{- return $authorName }}