From 372ee6b37d8bbbe19abc2c8bc36709b4889fc2ed Mon Sep 17 00:00:00 2001 From: Zachary Betz Date: Wed, 5 Dec 2018 23:41:08 -0600 Subject: Add support for tags --- layouts/partials/post-list.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 layouts/partials/post-list.html (limited to 'layouts/partials/post-list.html') diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html new file mode 100644 index 0000000..9a8b0a3 --- /dev/null +++ b/layouts/partials/post-list.html @@ -0,0 +1,16 @@ +{{ range where .Pages.ByPublishDate.Reverse "Section" "post" }} +

+ {{ .Title | markdownify }} + {{ $customDateFormat := "January 2, 2006" }} + {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }} +
+ {{ .PublishDate.Format $customDateFormat }} + {{ range .Params.tags }} + {{ . }} + {{ end }} + {{ if eq .Site.Params.showPostSummary true }} +
+ {{ .Summary }} + {{ end }} +

+{{ end }} \ No newline at end of file -- cgit v1.2.3