diff --git a/layouts/news/list.html b/layouts/news/list.html new file mode 100644 index 00000000..62e3c776 --- /dev/null +++ b/layouts/news/list.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ partial "posts/list.html" . }} +{{ end }} diff --git a/layouts/news/single.html b/layouts/news/single.html new file mode 100644 index 00000000..54571614 --- /dev/null +++ b/layouts/news/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ partial "posts/post.html" . }} +{{ end }} diff --git a/layouts/partials/posts/meta.html b/layouts/partials/posts/meta.html index cfd2835d..24c7e6ac 100644 --- a/layouts/partials/posts/meta.html +++ b/layouts/partials/posts/meta.html @@ -1,6 +1,9 @@ +{{- if .Params.Author -}} + {{- errorf "Page %q uses deprecated 'author' field. Please use 'authors' instead." .File.Path -}} +{{- end -}}