mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-30 07:30:13 +03:00
parent
47bf2fcbe2
commit
23fcfb7f74
1 changed files with 14 additions and 4 deletions
|
@ -1,7 +1,11 @@
|
||||||
{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
|
{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
|
||||||
{{- $authorEmail := "" }}
|
{{- $authorEmail := "" }}
|
||||||
{{- with site.Params.author.email }}
|
{{- with site.Params.author }}
|
||||||
{{- $authorEmail = . }}
|
{{- if reflect.IsMap . }}
|
||||||
|
{{- with .email }}
|
||||||
|
{{- $authorEmail = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- with site.Author.email }}
|
{{- with site.Author.email }}
|
||||||
{{- $authorEmail = . }}
|
{{- $authorEmail = . }}
|
||||||
|
@ -11,8 +15,14 @@
|
||||||
|
|
||||||
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
|
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
|
||||||
{{- $authorName := "" }}
|
{{- $authorName := "" }}
|
||||||
{{- with site.Params.author.name }}
|
{{- with site.Params.author }}
|
||||||
{{- $authorName = . }}
|
{{- if reflect.IsMap . }}
|
||||||
|
{{- with .name }}
|
||||||
|
{{- $authorName = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $authorName = . }}
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- with site.Author.name }}
|
{{- with site.Author.name }}
|
||||||
{{- $authorName = . }}
|
{{- $authorName = . }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue