From 597180d0e0920f016e1dc63a79ce07d7c11b2704 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 22 Feb 2025 20:46:50 -0600 Subject: tweak css and commas between tags and dont show empty date --- assets/stylesheets/style.css | 9 ++++----- layouts/_default/single.html | 24 +++++++++++++----------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/assets/stylesheets/style.css b/assets/stylesheets/style.css index 24b860d..2ef619d 100644 --- a/assets/stylesheets/style.css +++ b/assets/stylesheets/style.css @@ -44,7 +44,7 @@ header a:hover { header a:hover::after { content: ""; - background: green; + background: #309a00; position: absolute; display: block; bottom: -.3em; @@ -64,9 +64,8 @@ main, footer{ text-align: right; color: #555; } -#publishing a { - color: #555; -} +#publishing a { color: #555 } +#publishing a:not(:last-child)::after { content: "," } #copyright, #theme-copyright { text-align: center; @@ -169,7 +168,7 @@ ol, ul, pre code { } /* utility classes */ -.monodate { font-family: monospace } +.monodate, .monospace { font-family: monospace } .bold { font-weight: bold } .nowrap { white-space: nowrap } .overflow-box { overflow: scroll } diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 099d3fc..035d589 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,18 +1,20 @@ {{ define "main" }}
+{{ if ne .Date (time "0001-01-01") }} {{ .PublishDate | time.Format ":date_long" }} - {{ if and (isset .Params "lastmod") (ne .Lastmod .PublishDate) }} -
- Revised: {{ .Lastmod | time.Format ":date_long" }} - {{ end }} - {{ if isset .Params "tags" }} -
- Tags: - {{- range sort .Params.tags }} - {{ . | humanize | title }} - {{- end }} - {{ end }} +{{ end }} +{{ if and (isset .Params "lastmod") (ne .Lastmod .PublishDate) }} +
+ Revised: {{ .Lastmod | time.Format ":date_long" }} +{{ end }} +{{ if isset .Params "tags" }} +
+ Tags: + {{- range sort .Params.tags }} + {{ . | humanize | title }} + {{- end }} +{{ end }}
{{ .Content }} -- cgit v1.2.3