From 0f8b86cb575802637a64b7c13ed17d8ee81f7bc8 Mon Sep 17 00:00:00 2001 From: Adam <21122180+gentleadam@users.noreply.github.com> Date: Thu, 29 Feb 2024 17:02:15 +0000 Subject: [PATCH] Remove dates by not including them in metadata. Fixes Remove circle from front page and dates from List #43 --- exampleSite/content/posts/language-perfect.md | 1 - layouts/_default/summary.html | 3 ++- layouts/partials/author.html | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/exampleSite/content/posts/language-perfect.md b/exampleSite/content/posts/language-perfect.md index a066594..c2da3fd 100644 --- a/exampleSite/content/posts/language-perfect.md +++ b/exampleSite/content/posts/language-perfect.md @@ -1,6 +1,5 @@ --- title: The revolution will be complete when the language is perfect -date: 2019-08-07 description: "As soon as Winston had dealt with each of the messages, he clipped his speakwritten corrections to the appropriate copy of the Times and pushed them into the pneumatic tube. Then, with a movement which was as nearly as possible unconscious, he crumpled up the original message and any notes that he himself had made, and dropped them into the memory hole to be devoured by the flames." image: images/cctv2.jpeg imageAltAttribute: CCTV Camera diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index e4d989f..b6d0e99 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,7 +1,8 @@
{{ if .Site.Params.showAuthorOnPosts }} {{ partial "author.html" . }} - {{ else }} + {{ end }} + {{ if isset .Params "date" }}
{{ dateFormat "Jan 2, 2006" .Date }}
{{ end }}

{{ .Title }}

diff --git a/layouts/partials/author.html b/layouts/partials/author.html index 7b816d9..e613b2c 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -2,5 +2,7 @@ {{ .Site.Data.author.name }} {{ .Site.Data.author.name }} - {{ dateFormat "January 2, 2006" .Date }} + {{ if isset .Params "date" }} + {{ dateFormat "January 2, 2006" .Date }} + {{ end }}
\ No newline at end of file