From 2e5ddecd863e15904ea1bc30e13a5bf88dd10949 Mon Sep 17 00:00:00 2001 From: taco Date: Tue, 25 Jun 2024 20:55:21 -0400 Subject: [PATCH] feat: add reading time to list page too --- themes/corazon/assets/css/main.scss | 6 ++++++ themes/corazon/layouts/posts/list.html | 3 +++ themes/corazon/layouts/posts/single.html | 1 - 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/themes/corazon/assets/css/main.scss b/themes/corazon/assets/css/main.scss index 6a5d4bd..e870fde 100644 --- a/themes/corazon/assets/css/main.scss +++ b/themes/corazon/assets/css/main.scss @@ -115,3 +115,9 @@ article { text-align: center; } } + +hgroup { + p { + text-align: center; + } +} diff --git a/themes/corazon/layouts/posts/list.html b/themes/corazon/layouts/posts/list.html index 7ba9303..f780ab8 100644 --- a/themes/corazon/layouts/posts/list.html +++ b/themes/corazon/layouts/posts/list.html @@ -1,10 +1,13 @@ {{ define "main" }} +

{{ .Title }}

{{ .Content }} +
{{ range .Pages }}

{{ .LinkTitle }}

{{ $dateHuman := .Date.Format "January 2, 2006" }} {{ $dateMachine := .Date.Format "2006-01-02T15:04:05-07:00" }} +

reading time: {{ lower .ReadingTime }} mins

first posted:

{{ .Description }}
{{ end }} diff --git a/themes/corazon/layouts/posts/single.html b/themes/corazon/layouts/posts/single.html index a896ef4..b9f1a50 100644 --- a/themes/corazon/layouts/posts/single.html +++ b/themes/corazon/layouts/posts/single.html @@ -17,6 +17,5 @@ {{ .TableOfContents }}
{{ .Content }} -{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} {{ end }}