From 210379b410fe40f877999bd68648af29465545d7 Mon Sep 17 00:00:00 2001 From: frosty Date: Tue, 10 Jun 2025 05:01:08 -0400 Subject: add new post and support codeblocks --- themes/polaris/assets/css/style.css | 9 +++++++++ themes/polaris/layouts/_default/single.html | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'themes/polaris') 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" }}

{{ .Title }}

- {{ with .Date }}

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

{{ end }} + {{ if (eq .Section "posts") }} + {{ with .Param "lastmod" }} +

+ Last modified {{ . | time.Format "Jan 02 2006" }}. +

+ {{ end }} + {{ end }} {{ .Content }} {{ end }} -- cgit v1.2.3-70-g09d2