diff options
author | Zachary Betz <zwbetz@gmail.com> | 2018-12-06 08:41:08 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2018-12-06 08:41:08 +0300 |
commit | 372ee6b37d8bbbe19abc2c8bc36709b4889fc2ed (patch) | |
tree | 553098ec12037286b87930bf28dd82939b053e7c /layouts/partials/post-list.html | |
parent | 74322e9842342f0610e004cd4d7b5414bc54cde4 (diff) |
Add support for tags
Diffstat (limited to 'layouts/partials/post-list.html')
-rw-r--r-- | layouts/partials/post-list.html | 16 |
1 files changed, 16 insertions, 0 deletions
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" }} + <p> + <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> + {{ $customDateFormat := "January 2, 2006" }} + {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }} + <br> + <small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small> + {{ range .Params.tags }} + <small><code><a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a></code></small> + {{ end }} + {{ if eq .Site.Params.showPostSummary true }} + <br> + {{ .Summary }} + {{ end }} + </p> +{{ end }}
\ No newline at end of file |