Welcome to mirror list, hosted at ThFree Co, Russian Federation.

get-js-configs.html « utils « partials « layouts - github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bb45a256d625e7be6cf7195da72faf85ae00585c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{- range $key, $value := . }}
  {{- if or $value (eq $value false) }}
    {{- $key = partial "partials/camelize" $key }}
    {{- $key }}: 
    {{- if reflect.IsMap $value }}
      {
        {{ partial "utils/get-js-configs" . }}
      },
    {{- else -}}
      "{{ $value }}",
    {{- end }}
  {{- end }}
{{- end }}