aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/polaris/layouts/partials/posts.html
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-05-19 08:48:52 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-05-19 08:48:52 -0400
commit24897b4ec55af3f21ce690783b9ca62c51f2ee67 (patch)
tree827232f612a72f267a1bebc08912acf7901b281e /themes/polaris/layouts/partials/posts.html
initial commit
Diffstat (limited to 'themes/polaris/layouts/partials/posts.html')
-rw-r--r--themes/polaris/layouts/partials/posts.html18
1 files changed, 18 insertions, 0 deletions
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 }}
+<p>It sure is quiet around here.</p>
+{{ end }}
+
+{{ range $index, $element := $pages }}
+<article>
+ <header>
+ <h3><a href = "{{ .Permalink }}">{{ .Title }}</a></h3>
+ </header>
+ <p><em>{{ .Date | time.Format "Jan 02 2006" }}</em></p>
+</article>
+ {{ if ne (add $index 1) $pagesLen }}
+<hr>
+ {{ end }}
+{{ end }}