Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions layouts/news/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ define "main" }}
{{ partial "posts/list.html" . }}
{{ end }}
3 changes: 3 additions & 0 deletions layouts/news/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ define "main" }}
{{ partial "posts/post.html" . }}
{{ end }}
5 changes: 4 additions & 1 deletion layouts/partials/posts/meta.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{{- if .Params.Author -}}
{{- errorf "Page %q uses deprecated 'author' field. Please use 'authors' instead." .File.Path -}}
{{- end -}}
<div class="post-meta">
<span class="post-authors">
{{- range .Params.author -}}
{{- range .Params.Authors -}}
{{ $author := trim (index (findRE `[^<]*` . 1) 0) "\n\r " }}
{{ $handle := index (index (findRESubmatch `<(.*?)>` . 1) 0) 1 }}
<div class="post-author">
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/section/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ .Content }}
{{ else }}
{{ range .Pages }}
{{- if .Params.Author -}}
{{- errorf "Page %q uses deprecated 'author' field. Please use 'authors' instead." .File.Path -}}
{{- end -}}
<div class="post-list">
<article>
<div class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></div>
Expand Down