mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-10 00:42:04 +08:00
variant: renamr var #188
This commit is contained in:
parent
442a4f4832
commit
269ccf7eea
@ -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…
x
Reference in New Issue
Block a user