From 044a9482a7d4f832f77e06a2110c00ebad635f82 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 27 Feb 2023 16:46:11 +0800 Subject: [PATCH] Fix conditional rendering for post metadata You would think this is something like this is already in the theme but it turns out it isn't. This should fix pages that are primarily non-content (i.e., about pages, contact). --- layouts/_default/single.html | 64 +++++++++++---------- layouts/partials/components/post-meta.html | 67 +++++++++++----------- 2 files changed, 67 insertions(+), 64 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 918e64e..60e9669 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,38 +23,40 @@ - - + {{ end }} {{ end }} diff --git a/layouts/partials/components/post-meta.html b/layouts/partials/components/post-meta.html index a031a28..502e185 100644 --- a/layouts/partials/components/post-meta.html +++ b/layouts/partials/components/post-meta.html @@ -1,37 +1,38 @@ {{- /* The component where it will display the metadata of the post. - This is used on list templates but feel free to change that. */ -}} -{{- $RFC3339 := "2006-01-02T15:04:05Z07:00" }} - +{{- end }}