mirror of
https://github.com/imfing/hextra.git
synced 2025-07-02 19:37:16 -04:00
Move tabs sync setting under page params
This commit is contained in:
@ -1,10 +1,7 @@
|
||||
{{- $items := split (.Get "items") "," -}}
|
||||
{{- $defaultIndex := int ((.Get "defaultIndex") | default "0") -}}
|
||||
|
||||
{{- $enableSync := site.Params.tabs.sync | default false -}}
|
||||
{{- with .Page.Params.tabsSync }}
|
||||
{{- $enableSync = . -}}
|
||||
{{- end -}}
|
||||
{{- $enableSync := site.Params.page.tabs.sync | default false -}}
|
||||
|
||||
{{- if not $items -}}
|
||||
{{ errorf "no items provided" }}
|
||||
|
Reference in New Issue
Block a user