From 682a580345248c82abc0a7d65cd5efe7f2f6c67e Mon Sep 17 00:00:00 2001 From: frosty Date: Mon, 19 May 2025 09:35:38 -0400 Subject: change post list style on home --- themes/polaris/layouts/_default/home.html | 1 + themes/polaris/layouts/partials/posts.html | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'themes') 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 }} +

Posts

{{ 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 }} -

It sure is quiet around here.

+

There's nothing here!

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

{{ .Title }}

-
-

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

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