diff options
author | Michał Sapka <michal@sapka.me> | 2023-01-08 12:12:11 +0100 |
---|---|---|
committer | Michał Sapka <michal@sapka.me> | 2023-01-08 12:12:11 +0100 |
commit | 0381d2e62d10fd30402c29d85041071adcc483bf (patch) | |
tree | 7a07eb53f9b4f95c71750af29b8a3db3e07c6817 /layouts/_default/list.html | |
parent | 8987664e3ab4dd08879c3d45ba4ba954aaec6f69 (diff) |
feat: basic list
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b9ddde4..d4ad721 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,17 @@ {{ define "main" }} - {{ range where .Pages "Params.category" "meme"}} + {{ range .Pages }} <article class="list"> + <a href="{{ .Page.Permalink }}"> + {{ .Page.Title }} + </a> + ({{ .PublishDate.Format "January 2nd, 2006" }}) + <div> + {{ .Page.Summary }} + </div> + {{- if .Page.Truncated }} + <a href="{{ .Page.Permalink }}">More</a> + </div> + {{ end }} </article> {{ end }} {{ end }} |