From 24897b4ec55af3f21ce690783b9ca62c51f2ee67 Mon Sep 17 00:00:00 2001 From: frosty Date: Mon, 19 May 2025 08:48:52 -0400 Subject: initial commit --- themes/polaris/layouts/partials/posts.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 themes/polaris/layouts/partials/posts.html (limited to 'themes/polaris/layouts/partials/posts.html') diff --git a/themes/polaris/layouts/partials/posts.html b/themes/polaris/layouts/partials/posts.html new file mode 100644 index 0000000..7fd87de --- /dev/null +++ b/themes/polaris/layouts/partials/posts.html @@ -0,0 +1,18 @@ +{{ $pages := where site.RegularPages "Section" "blog" }} +{{ $pagesLen := (len $pages) }} + +{{ if eq $pagesLen 0 }} +

It sure is quiet around here.

+{{ end }} + +{{ range $index, $element := $pages }} +
+
+

{{ .Title }}

+
+

{{ .Date | time.Format "Jan 02 2006" }}

+
+ {{ if ne (add $index 1) $pagesLen }} +
+ {{ end }} +{{ end }} -- cgit v1.2.3-70-g09d2