aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-05-19 09:35:38 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-05-19 09:35:38 -0400
commit682a580345248c82abc0a7d65cd5efe7f2f6c67e (patch)
treec22111e01aa8dc214a34a25feb1361b7d3e34fd3
parent4a1bb9e18b7e5d8b63ed606babe3f45110320935 (diff)
change post list style on home
-rw-r--r--themes/polaris/layouts/_default/home.html1
-rw-r--r--themes/polaris/layouts/partials/posts.html11
2 files changed, 5 insertions, 7 deletions
diff --git a/themes/polaris/layouts/_default/home.html b/themes/polaris/layouts/_default/home.html
index 6e46985..3aae006 100644
--- a/themes/polaris/layouts/_default/home.html
+++ b/themes/polaris/layouts/_default/home.html
@@ -1,4 +1,5 @@
{{ define "main" }}
{{ .Content }}
+ <h2>Posts</h2>
{{ partial "posts.html" }}
{{ end }}
diff --git a/themes/polaris/layouts/partials/posts.html b/themes/polaris/layouts/partials/posts.html
index 7fd87de..f641d16 100644
--- a/themes/polaris/layouts/partials/posts.html
+++ b/themes/polaris/layouts/partials/posts.html
@@ -2,16 +2,13 @@
{{ $pagesLen := (len $pages) }}
{{ if eq $pagesLen 0 }}
-<p>It sure is quiet around here.</p>
+<p>There's nothing 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>
+<ul>
+ <li><a href = "{{ .Permalink }}">{{ .Title }}</a> ({{ .Date | time.Format "Jan 02 2006" }})</li>
+</ul>
{{ if ne (add $index 1) $pagesLen }}
<hr>
{{ end }}