aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-06-10 05:01:08 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-06-10 05:01:08 -0400
commit210379b410fe40f877999bd68648af29465545d7 (patch)
tree912a8602034d15af56842e0d32529b58d1acd37e /themes
parentc826b76870331099274ccc09b6ebbbcc166723ec (diff)
add new post and support codeblocks
Diffstat (limited to 'themes')
-rw-r--r--themes/polaris/assets/css/style.css9
-rw-r--r--themes/polaris/layouts/_default/single.html8
2 files changed, 16 insertions, 1 deletions
diff --git a/themes/polaris/assets/css/style.css b/themes/polaris/assets/css/style.css
index d5f0602..6f449a3 100644
--- a/themes/polaris/assets/css/style.css
+++ b/themes/polaris/assets/css/style.css
@@ -150,3 +150,12 @@ footer {
.badge {
image-rendering: crisp-edges;
}
+
+pre {
+ padding: 8px;
+ white-space: pre-wrap;
+}
+
+code {
+ font-size: 125%;
+}
diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html
index ef44984..21b247d 100644
--- a/themes/polaris/layouts/_default/single.html
+++ b/themes/polaris/layouts/_default/single.html
@@ -1,5 +1,11 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
- {{ with .Date }}<p><em>Written {{ . | time.Format "Jan 02 2006" }}.</em></p>{{ end }}
+ {{ if (eq .Section "posts") }}
+ {{ with .Param "lastmod" }}
+<p>
+ <em>Last modified {{ . | time.Format "Jan 02 2006" }}.</em>
+</p>
+ {{ end }}
+ {{ end }}
{{ .Content }}
{{ end }}