fix: a waline config param with false value will be ignored (#812)

Co-authored-by: Jimmy Cai <hi@jimmycai.com>
This commit is contained in:
Alex Hua
2023-08-27 18:06:00 +02:00
committed by GitHub
co-authored by Jimmy Cai
parent 40712eb781
commit d11923f32b
@@ -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 -}}