From 8609746b28be7c487fa94ccfd60abda84bae67ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Wed, 1 Jun 2022 20:59:42 +0800 Subject: [PATCH] :bug: Fixed the post meta display hide when not values. --- layouts/partials/post_meta/categories.html | 2 +- layouts/partials/post_meta/created_date.html | 3 ++- layouts/partials/post_meta/update_date.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/partials/post_meta/categories.html b/layouts/partials/post_meta/categories.html index 46e17bd..29ee564 100644 --- a/layouts/partials/post_meta/categories.html +++ b/layouts/partials/post_meta/categories.html @@ -1,5 +1,5 @@ {{- if .Site.Params.postMeta.categories }} -{{- if gt (len .Params.categories) 0 }} +{{- if and .Params.categories (gt (len .Params.categories) 0) }}