forked from drowl87/hextra_mirror
fix: class name in render-data
This commit is contained in:
@ -5,14 +5,14 @@
|
||||
*/}}
|
||||
{{ $data := "" }}
|
||||
{{ $section := .Section | default "" }}
|
||||
{{ $sidebarKey := "sidebar" }}
|
||||
{{ $filename := "sidebar" }}
|
||||
|
||||
{{ if hugo.IsMultilingual }}
|
||||
{{ with (index site.Data site.Language.Lang $sidebarKey $section) }}
|
||||
{{ with (index site.Data site.Language.Lang $filename $section) }}
|
||||
{{ $data = . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ with (index site.Data $sidebarKey $section) }}
|
||||
{{ with (index site.Data $filename $section) }}
|
||||
{{ $data = . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user