From 4456f521e7da5bee737838a94c089b45028ed89c Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 31 Oct 2021 10:12:19 +0100 Subject: [PATCH] refactor(comments/cusdis): avoid multiple if statement --- layouts/partials/comments/provider/cusdis.html | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/layouts/partials/comments/provider/cusdis.html b/layouts/partials/comments/provider/cusdis.html index 722454b..a89746c 100644 --- a/layouts/partials/comments/provider/cusdis.html +++ b/layouts/partials/comments/provider/cusdis.html @@ -1,18 +1,11 @@ +{{- $host := default "https://cusdis.com" .Site.Params.comments.cusdis.host -}}
-{{ if .Site.Params.comments.cusdis.host }} - -{{ else }} - -{{ end }} + \ No newline at end of file +