mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +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 }}
|
||||
{{- 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>
|
||||
|
|
Loading…
Reference in a new issue