From f3f2fb573743fc8e85de3842391bd37f9401642e Mon Sep 17 00:00:00 2001 From: FFRaycoder Date: Sun, 24 May 2020 14:19:48 +0800 Subject: small bugs --- layouts/partials/components/home/eachpost.html | 34 +++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/layouts/partials/components/home/eachpost.html b/layouts/partials/components/home/eachpost.html index 522f136..7c4c942 100644 --- a/layouts/partials/components/home/eachpost.html +++ b/layouts/partials/components/home/eachpost.html @@ -1,19 +1,5 @@ {{ if .Params.Categories }} - {{ if not (or .Params.buy .Params.status) }} - {{ if .Params.categoryLink }} -
- - {{ delimit .Params.Categories " | " }} - -
- {{ else }} -
- - {{ delimit .Params.Categories " | " }} - -
- {{ end }} - {{ else }} + {{ if .Params.buy }}
@@ -42,6 +28,19 @@
+ {{ if .Params.categoryLink }} +
+ + {{ delimit .Params.Categories " | " }} + +
+ {{ else }} +
+ + {{ delimit .Params.Categories " | " }} + +
+ {{ end }} {{ end }} {{ end }}
@@ -56,11 +55,12 @@
{{ .Date.Format "02-01-06" }} {{ if .Params.buy }} - {{ if .Params.Categories }} + {{ if and ((not .Params.categoryLink) .Params.Categories) }} - {{ delimit .Params.Categories " | " }} {{ end }} - {{ else if .Params.status}} + {{ end }} + {{ if .Params.status}} - -- cgit v1.2.3