From 9b26fc84190e1e7facad535b715367f37ab3de9a Mon Sep 17 00:00:00 2001 From: Alex Hua Date: Thu, 6 Apr 2023 15:50:32 +0800 Subject: [PATCH] fix: a waline config param with false value will be ignored --- 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 -}}