diff options
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 |