diff options
author | Michał M. Sapka <michal@sapka.me> | 2023-02-26 00:11:47 +0100 |
---|---|---|
committer | Michał M. Sapka <michal@sapka.me> | 2023-02-26 00:11:47 +0100 |
commit | 648f69aa0a2ef10095e23e58760eef4f68b396cb (patch) | |
tree | 7f0d5c66603156f9ffcd18f686bc0d4c865f9848 /layouts/_default | |
parent | 774625fd212104296a6d14ecb852e972d7e9fa34 (diff) |
feat: all all archives page
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/all_posts.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/_default/all_posts.html b/layouts/_default/all_posts.html new file mode 100644 index 0000000..51c9d65 --- /dev/null +++ b/layouts/_default/all_posts.html @@ -0,0 +1,18 @@ +{{ define "main" }} +<article class="list taxonomy"> + <h2> + All posts on this blog + </h2> + <ul> + {{ range where site.RegularPages "Type" "!=" "special"}} + <li> + <a href="{{ .Page.Permalink }}"> + <time>{{ .PublishDate.Format "2006-01-02" }}</time> + · + {{ .Page.Title }} + </a> + </li> + {{ end }} + </ul> +</article> +{{ end }} |