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-28 00:06:00 +08:00 committed by GitHub
parent 40712eb781
commit d11923f32b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 -}}