From 9d22841a4eb30cb64fef1e68ddda2f3ef9499e90 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..d0fe87e 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 or $val (eq $val false) -}} {{- $replaceKey := index $replaceKeys $key -}} {{- $k := default $key $replaceKey -}}