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/footer.html | 0 themes/polaris/layouts/partials/nav.html | 16 ++++++++++++++++ themes/polaris/layouts/partials/posts.html | 18 ++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 themes/polaris/layouts/partials/footer.html create mode 100644 themes/polaris/layouts/partials/nav.html create mode 100644 themes/polaris/layouts/partials/posts.html (limited to 'themes/polaris/layouts/partials') diff --git a/themes/polaris/layouts/partials/footer.html b/themes/polaris/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/polaris/layouts/partials/nav.html b/themes/polaris/layouts/partials/nav.html new file mode 100644 index 0000000..56d2fa9 --- /dev/null +++ b/themes/polaris/layouts/partials/nav.html @@ -0,0 +1,16 @@ + + 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