diff options
author | frosty <passedgoandgot200@disroot.org> | 2025-06-04 17:06:54 -0400 |
---|---|---|
committer | frosty <passedgoandgot200@disroot.org> | 2025-06-04 17:06:54 -0400 |
commit | 6ce8f79d3b5f6e2d724204e3bcb504b2e7bcb306 (patch) | |
tree | 97765cb560a8ab349172d998296ff070d093411d /themes | |
parent | 2dcf5adbf084eb7f3e33d57f714ed2d2244a6ce8 (diff) |
remove a few pages, move blog into posts, and add first status update
Diffstat (limited to 'themes')
-rw-r--r-- | themes/polaris/assets/css/style.css | 4 | ||||
-rw-r--r-- | themes/polaris/layouts/_default/home.html | 1 | ||||
-rw-r--r-- | themes/polaris/layouts/partials/posts.html | 12 |
3 files changed, 9 insertions, 8 deletions
diff --git a/themes/polaris/assets/css/style.css b/themes/polaris/assets/css/style.css index 8561ff2..d5f0602 100644 --- a/themes/polaris/assets/css/style.css +++ b/themes/polaris/assets/css/style.css @@ -146,3 +146,7 @@ footer { .build-date { font-style: italic; } + +.badge { + image-rendering: crisp-edges; +} 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 }} - <h2>Posts</h2> {{ 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 }} <p>There's nothing here!</p> -{{ end }} - -{{ range $index, $element := $pages }} +{{ else }} +<h2>Posts</h2> <ul> + {{ range $index, $element := $pages }} <li><a href = "{{ .Permalink }}">{{ .Title }}</a> ({{ .Date | time.Format "Jan 02 2006" }})</li> -</ul> - {{ if ne (add $index 1) $pagesLen }} -<hr> {{ end }} +</ul> {{ end }} |