File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ {{- if .Params.Author -}}
2+ {{- errorf "Page %q uses deprecated 'author' field. Please use 'authors' instead." .File.Path -}}
3+ {{- end -}}
14< div class ="post-meta ">
25< span class ="post-authors ">
3- {{- range .Params.author -}}
6+ {{- range .Params.Authors -}}
47 {{ $author := trim (index (findRE `[^< ]*` . 1) 0) "\n\r " }}
58 {{ $handle := index (index (findRESubmatch `< (.*?)> ` . 1) 0) 1 }}
69 < div class ="post-author ">
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
99 {{ .Content }}
1010 {{ else }}
1111 {{ range .Pages }}
12+ {{- if .Params.Author -}}
13+ {{- errorf "Page %q uses deprecated 'author' field. Please use 'authors' instead." .File.Path -}}
14+ {{- end -}}
1215 < div class ="post-list ">
1316 < article >
1417 < div class ="post-title "> < a href ="{{ .RelPermalink }} "> {{ .Title }}</ a > </ div >
You can’t perform that action at this time.
0 commit comments