diff options
| author | Nicholas Johnson <> | 2026-09-05 00:00:00 +0000 |
|---|---|---|
| committer | Nicholas Johnson <> | 2026-09-06 00:00:00 +0000 |
| commit | 951f904bdd337aad611e12be2e4fc9cb180ce1f4cbbb3dae01274346fbe6d195 (patch) | |
| tree | 56eb43362b83004042b2f801439845cd67047727ddfb2ad72b16a8c056d4a2f4 | |
| parent | 047b1fcfcf26ff093e35490c6c4f5d50dac5e70e3ca38a7f3628a7908ad8362f (diff) | |
| download | hugo-theme-journal-951f904bdd337aad611e12be2e4fc9cb180ce1f4cbbb3dae01274346fbe6d195.tar.gz hugo-theme-journal-951f904bdd337aad611e12be2e4fc9cb180ce1f4cbbb3dae01274346fbe6d195.zip | |
Replace visual dividers w/space for entry metadata
Less visual clutter, improves readability.
| -rw-r--r-- | assets/static/css/style.css | 6 | ||||
| -rw-r--r-- | layouts/_partials/pageinfo.gmi | 2 | ||||
| -rw-r--r-- | layouts/_partials/pageinfo.html | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/assets/static/css/style.css b/assets/static/css/style.css index 926be97..18f74ac 100644 --- a/assets/static/css/style.css +++ b/assets/static/css/style.css @@ -1,6 +1,6 @@ /* hugo-theme-journal Hugo theme for my journal - Copyright (C) 2022-2023, 2025 Nicholas Johnson + Copyright (C) 2022-2023, 2025, 2026 Nicholas Johnson This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -172,3 +172,7 @@ article:last-child header p, overflow-y: hidden; padding: 0; } + +.meta-item + .meta-item { + margin-left: 0.6em; +} diff --git a/layouts/_partials/pageinfo.gmi b/layouts/_partials/pageinfo.gmi index 9993d93..7c822f3 100644 --- a/layouts/_partials/pageinfo.gmi +++ b/layouts/_partials/pageinfo.gmi @@ -15,4 +15,4 @@ {{ $nonBreakingTags = $nonBreakingTags | append $nonBreakingTag -}} {{ end -}} -{{ emojify ":calendar:" }} {{ $nonBreakingPublishDate }} | {{ emojify ":stopwatch:" }} {{ $nonBreakingReadingTime }}{{ if $nonBreakingTags }} | {{ emojify ":label:" }} {{ end }}{{ range $key, $val := $nonBreakingTags }}{{ if $key }}, {{ end }}{{ $val }}{{ end }}
\ No newline at end of file +{{ emojify ":calendar:" }} {{ $nonBreakingPublishDate }} {{ emojify ":stopwatch:" }} {{ $nonBreakingReadingTime }}{{ if $nonBreakingTags }} {{ emojify ":label:" }} {{ end }}{{ range $key, $val := $nonBreakingTags }}{{ if $key }}, {{ end }}{{ $val }}{{ end }}
\ No newline at end of file diff --git a/layouts/_partials/pageinfo.html b/layouts/_partials/pageinfo.html index 3ca8fe9..9d60ea6 100644 --- a/layouts/_partials/pageinfo.html +++ b/layouts/_partials/pageinfo.html @@ -20,4 +20,4 @@ {{ $nonBreakingTags = $nonBreakingTags | append $nonBreakingTag -}} {{ end -}} -{{ emojify ":calendar:" }} <time {{ printf "datetime=%q" (.Page.PublishDate | time.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}>{{ $nonBreakingPublishDate | safeHTML }}</time> | {{ emojify ":stopwatch:" }} <time datetime="PT{{ .ReadingTime }}M">{{ $nonBreakingReadingTime | safeHTML }}</time>{{ if $nonBreakingTags }} | {{ emojify ":label:" }} {{ end }}{{ range $key, $val := $nonBreakingTags }}{{ if $key }} {{ end }}<a class="link link--internal" href='{{ relLangURL (lower (i18n "tags")) }}/{{ index $breakingTags $key | urlize }}/' rel="noreferrer">{{ $val | safeHTML }}</a>{{ end }} +<span class="meta-item">{{ emojify ":calendar:" }} <time {{ printf "datetime=%q" (.Page.PublishDate | time.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}>{{ $nonBreakingPublishDate | safeHTML }}</time></span><span class="meta-item">{{ emojify ":stopwatch:" }} <time datetime="PT{{ .ReadingTime }}M">{{ $nonBreakingReadingTime | safeHTML }}</time></span>{{ if $nonBreakingTags }}<span class="meta-item">{{ emojify ":label:" }} {{ range $key, $val := $nonBreakingTags }}{{ if $key }} {{ end }}<a class="link link--internal" href='{{ relLangURL (lower (i18n "tags")) }}/{{ index $breakingTags $key | urlize }}/' rel="noreferrer">{{ $val | safeHTML }}</a>{{ end }}</span>{{ end }} |
