From d11923f32b063c67c72d6bdb1c8ce32ac0fe7c01 Mon Sep 17 00:00:00 2001 From: Alex Hua Date: Mon, 28 Aug 2023 00:06:00 +0800 Subject: [PATCH] fix: a waline config param with false value will be ignored (#812) Co-authored-by: Jimmy Cai --- layouts/partials/comments/provider/waline.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/comments/provider/waline.html b/layouts/partials/comments/provider/waline.html index 21b6507..9d1a2a0 100644 --- a/layouts/partials/comments/provider/waline.html +++ b/layouts/partials/comments/provider/waline.html @@ -19,7 +19,7 @@ {{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "imageuploader" "imageUploader" "texrenderer" "texRenderer" -}} {{- range $key, $val := . -}} - {{- if $val -}} + {{- if ne $val nil -}} {{- $replaceKey := index $replaceKeys $key -}} {{- $k := default $key $replaceKey -}}