mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
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:
parent
40712eb781
commit
d11923f32b
1 changed files with 1 additions and 1 deletions
|
@ -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 -}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue