aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-06-04 17:06:54 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-06-04 17:06:54 -0400
commit6ce8f79d3b5f6e2d724204e3bcb504b2e7bcb306 (patch)
tree97765cb560a8ab349172d998296ff070d093411d /themes
parent2dcf5adbf084eb7f3e33d57f714ed2d2244a6ce8 (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.css4
-rw-r--r--themes/polaris/layouts/_default/home.html1
-rw-r--r--themes/polaris/layouts/partials/posts.html12
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 }}