From fff08c031867aacb1be424867eb2fbdd6490ffcb Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Sat, 13 Sep 2025 22:38:40 +0000 Subject: [PATCH] Hide reading time when 0 Signed-off-by: Nikolaos Karaolidis --- layouts/partials/components/meta/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/layouts/partials/components/meta/index.html b/layouts/partials/components/meta/index.html index 68d77f2..b4f11b0 100644 --- a/layouts/partials/components/meta/index.html +++ b/layouts/partials/components/meta/index.html @@ -6,9 +6,11 @@ {{ . }} · {{ end }} - - {{ printf "%d min. read" .ReadingTime }} - + {{ if ge .ReadingTime 1 }} + + {{ printf "%d min. read" .ReadingTime }} + + {{ end }} {{ else }} {{ $count := len .Pages }}