From 6ce8f79d3b5f6e2d724204e3bcb504b2e7bcb306 Mon Sep 17 00:00:00 2001 From: frosty Date: Wed, 4 Jun 2025 17:06:54 -0400 Subject: remove a few pages, move blog into posts, and add first status update --- themes/polaris/layouts/_default/home.html | 1 - themes/polaris/layouts/partials/posts.html | 12 +++++------- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'themes/polaris/layouts') diff --git a/themes/polaris/layouts/_default/home.html b/themes/polaris/layouts/_default/home.html index 3aae006..6e46985 100644 --- a/themes/polaris/layouts/_default/home.html +++ b/themes/polaris/layouts/_default/home.html @@ -1,5 +1,4 @@ {{ 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 f641d16..36f6275 100644 --- a/themes/polaris/layouts/partials/posts.html +++ b/themes/polaris/layouts/partials/posts.html @@ -1,15 +1,13 @@ -{{ $pages := where site.RegularPages "Section" "blog" }} +{{ $pages := where site.RegularPages "Section" "posts" }} {{ $pagesLen := (len $pages) }} {{ if eq $pagesLen 0 }}

There's nothing here!

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

Posts

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