From e8342794ab89ba1887c04ea5a795fa45d640890277075fe5f6d5ab7ce1aa7af7 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sun, 4 Sep 2022 00:00:00 +0000 Subject: Add more emojis to homepage --- layouts/partials/metadata.gmi | 8 ++++---- layouts/partials/metadata.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index 693ac32..b697ea0 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -1,11 +1,11 @@ {{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse) 1 }} {{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} -{{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} -{{- .PublishDate.Format $dateFormat | safeHTML }} - {{ .ReadingTime | safeHTML }} minute read +{{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}} +📆 {{ .PublishDate.Format $dateFormat | safeHTML }} | ⏱️ {{ .ReadingTime | safeHTML }} minute read => .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }} {{ end }} {{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} -{{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} -{{- .PublishDate.Format $dateFormat | safeHTML }} - {{ .ReadingTime | safeHTML }} minute read +{{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}} +📆 {{ .PublishDate.Format $dateFormat | safeHTML }} | ⏱️ {{ .ReadingTime | safeHTML }} minute read => .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }}{{ end }} diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 35385a1..be9897b 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -2,7 +2,7 @@ {{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}}
-

{{ .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read
+

📆 {{ .PublishDate.Format $dateFormat }} | ⏱️ {{ .ReadingTime }} minute read
🔗 {{ .Title }}

-- cgit v1.2.3