From 8bebab773aa581ef91d40e5dca173a2e24e69d45 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 23 Jul 2021 16:34:35 +0000 Subject: [PATCH] Hide footer.article-time when there's not content --- layouts/partials/article/components/details.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index aff4337..64d6c6e 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -21,6 +21,7 @@ {{ end }} + {{ if or (not .Date.IsZero) (.Site.Params.article.readingTime) }} + {{ end }} \ No newline at end of file