From a5bf1daca9aa84edfe3a58d8edcc69ddd029159f Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sat, 26 Feb 2022 15:19:44 +0800 Subject: [PATCH] :art: Style: add placeholder for visitor count and commnet count --- layouts/posts/single.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index a80e379c..f84ac3b4 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -61,35 +61,35 @@ {{- if ($comment.valine.enable | and $comment.valine.visitor) | or ($comment.waline.enable | and $comment.waline.visitor) -}} {{- /* Warning: waline v2 will not be compatible with valine */ -}} -   {{ T "views" }} +  - {{ T "views" }}   {{- else if $comment.waline.enable | and $comment.waline.visitor -}} -   {{ T "views" }} +  - {{ T "views" }}   {{- else if $comment.twikoo.enable | and $comment.twikoo.visitor -}} -   {{ T "views" }} +  - {{ T "views" }}   {{- end -}} {{- else if .Site.Params.ibruce.enable | and .Site.Params.ibruce.enablePost -}} -   {{ T "views" }} +  - {{ T "views" }}   {{- end -}} {{- /* Comment Count */ -}} {{- if $comment.enable -}} {{- if $comment.valine.enable | and $comment.valine.commentCount -}} -   {{ T "comments" }} +  - {{ T "comments" }}   {{- else if $comment.waline.enable | and $comment.waline.commentCount -}} -   {{ T "comments" }} +  - {{ T "comments" }}   {{- else if $comment.twikoo.enable | and $comment.twikoo.commentCount -}} -   {{ T "comments" }} +  - {{ T "comments" }}   {{- end -}} {{- end -}}