Add post: 暗黑能天使
This commit is contained in:
13
layouts/partials/utils/get-js-configs.html
Normal file
13
layouts/partials/utils/get-js-configs.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{- range $key, $value := . }}
|
||||
{{- if or $value (eq $value false) }}
|
||||
{{- $key = partial "utils/camelize" $key }}
|
||||
{{- $key }}:
|
||||
{{- if reflect.IsMap $value }}
|
||||
{
|
||||
{{ partial "utils/get-js-configs" . }}
|
||||
},
|
||||
{{- else -}}
|
||||
"{{ $value }}",
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user