From 2fbfe38e3d32e696538f041a9b88c2f7bcbf8048 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Mon, 16 May 2022 14:54:30 -0400 Subject: [PATCH] Added icons to publish date and reading time --- layouts/partials/date.html | 11 +++++++++-- layouts/partials/reading_time.html | 5 +++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/layouts/partials/date.html b/layouts/partials/date.html index af3ee66..7110274 100644 --- a/layouts/partials/date.html +++ b/layouts/partials/date.html @@ -3,12 +3,19 @@ {{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}} {{ $pubdate := .Date.Format $singlePageDateFormat }} -

{{ $publishString }}

+

+ + {{ $publishString }} + +

{{- if and (not (.Scratch.Get "noDateUpdate")) .Lastmod }} {{- $lastmod := .Lastmod.Format $singlePageDateFormat }} {{- if ne $lastmod $pubdate }} -

Updated on

+

+ Updated on + +

{{- end }} {{ end }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/reading_time.html b/layouts/partials/reading_time.html index 3f5f0e1..b3c7157 100644 --- a/layouts/partials/reading_time.html +++ b/layouts/partials/reading_time.html @@ -2,7 +2,8 @@ {{ $readTime := mul (div (countwords .Content) 220.0) 60 }} {{ if gt $readTime 60 }}

- Reading Time: - {{ math.Ceil (div $readTime 60) }} minutes. + + {{ math.Ceil (div $readTime 60) }} minute + reading time

{{ end }} \ No newline at end of file