mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
variant: renamr var #188
This commit is contained in:
parent
442a4f4832
commit
269ccf7eea
1 changed files with 3 additions and 3 deletions
|
@ -101,12 +101,12 @@
|
||||||
{{- $firsttheme := true }}
|
{{- $firsttheme := true }}
|
||||||
{{- range $themevariants }}
|
{{- range $themevariants }}
|
||||||
{{- $themevariant := . }}
|
{{- $themevariant := . }}
|
||||||
{{- $themename := replaceRE "[-_]+" " " $themevariant }}
|
{{- $variantname := replaceRE "[-_]+" " " $themevariant }}
|
||||||
{{- if $firsttheme }}
|
{{- if $firsttheme }}
|
||||||
{{- $firsttheme = false }}
|
{{- $firsttheme = false }}
|
||||||
<option id="{{ $themevariant }}" value="{{ $themevariant }}" selected>{{ $themename | title }}</option>
|
<option id="{{ $themevariant }}" value="{{ $themevariant }}" selected>{{ $variantname | title }}</option>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
<option id="{{ $themevariant }}" value="{{ $themevariant }}">{{ $themename | title }}</option>
|
<option id="{{ $themevariant }}" value="{{ $themevariant }}">{{ $variantname | title }}</option>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in a new issue