variant: renamr var #188

This commit is contained in:
Sören Weber 2022-02-21 00:01:23 +01:00
parent 442a4f4832
commit 269ccf7eea
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -101,12 +101,12 @@
{{- $firsttheme := true }}
{{- range $themevariants }}
{{- $themevariant := . }}
{{- $themename := replaceRE "[-_]+" " " $themevariant }}
{{- $variantname := replaceRE "[-_]+" " " $themevariant }}
{{- if $firsttheme }}
{{- $firsttheme = false }}
<option id="{{ $themevariant }}" value="{{ $themevariant }}" selected>{{ $themename | title }}</option>
<option id="{{ $themevariant }}" value="{{ $themevariant }}" selected>{{ $variantname | title }}</option>
{{- else }}
<option id="{{ $themevariant }}" value="{{ $themevariant }}">{{ $themename | title }}</option>
<option id="{{ $themevariant }}" value="{{ $themevariant }}">{{ $variantname | title }}</option>
{{- end }}
{{- end }}
</select>