File tree Expand file tree Collapse file tree
tpl/tplimpl/embedded/templates/_default Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
22{{- $authorEmail := "" }}
3- {{- with site.Params.author.email }}
4- {{- $authorEmail = . }}
3+ {{- with site.Params.author }}
4+ {{- if reflect.IsMap . }}
5+ {{- with .email }}
6+ {{- $authorEmail = . }}
7+ {{- end }}
8+ {{- end }}
59{{- else }}
610 {{- with site.Author.email }}
711 {{- $authorEmail = . }}
1115
1216{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
1317{{- $authorName := "" }}
14- {{- with site.Params.author.name }}
15- {{- $authorName = . }}
18+ {{- with site.Params.author }}
19+ {{- if reflect.IsMap . }}
20+ {{- with .name }}
21+ {{- $authorName = . }}
22+ {{- end }}
23+ {{- else }}
24+ {{- $authorName = . }}
25+ {{- end }}
1626{{- else }}
1727 {{- with site.Author.name }}
1828 {{- $authorName = . }}
You can’t perform that action at this time.
0 commit comments