summaryrefslogtreecommitdiff
path: root/layouts/partials/pageinfo.gmi
diff options
context:
space:
mode:
authorNicholas Johnson <>2025-07-26 00:00:00 +0000
committerNicholas Johnson <>2025-07-26 00:00:00 +0000
commit9bb9989fca490bfac69ea4387ccae1e9ec3ec23cf7f47a401e241ee43562f8a3 (patch)
tree887dd23c15ddd56b850a4901b3161808bb37f1b1872fa40cbd2e2de877c3d77d /layouts/partials/pageinfo.gmi
parentc1dc7133883e38b6c6ddf110df1868162862159994b2f9454999454f48417e58 (diff)
downloadhugo-theme-journal-9bb9989fca490bfac69ea4387ccae1e9ec3ec23cf7f47a401e241ee43562f8a3.tar.gz
hugo-theme-journal-9bb9989fca490bfac69ea4387ccae1e9ec3ec23cf7f47a401e241ee43562f8a3.zip
Migrate fully to Hugo's new template system
This was the only way I could get term pages to consistently render correctly.
Diffstat (limited to 'layouts/partials/pageinfo.gmi')
-rw-r--r--layouts/partials/pageinfo.gmi18
1 files changed, 0 insertions, 18 deletions
diff --git a/layouts/partials/pageinfo.gmi b/layouts/partials/pageinfo.gmi
deleted file mode 100644
index 9993d93..0000000
--- a/layouts/partials/pageinfo.gmi
+++ /dev/null
@@ -1,18 +0,0 @@
-{{ $dateFormat := .Site.Params.dateFormat | default ":date_long" -}}
-
-{{ $nonBreakingPublishDate := .Page.PublishDate | time.Format $dateFormat -}}
-{{ $nonBreakingPublishDate = replace $nonBreakingPublishDate " " " " -}}
-{{ $nonBreakingPublishDate = replace $nonBreakingPublishDate "-" "‑" -}}
-
-{{ $nonBreakingReadingTime := i18n "readingTime" .ReadingTime -}}
-{{ $nonBreakingReadingTime = replace $nonBreakingReadingTime " " " " -}}
-{{ $nonBreakingReadingTime = replace $nonBreakingReadingTime "-" "‑" -}}
-
-{{ $nonBreakingTags := slice -}}
-{{ range .Param (lower (i18n "tags")) -}}
- {{ $nonBreakingTag := replace . " " " " -}}
- {{ $nonBreakingTag = replace $nonBreakingTag "-" "‑" -}}
- {{ $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