Move tabs sync setting under page params

This commit is contained in:
Xin
2025-06-08 11:51:57 +01:00
parent cf4d334da3
commit 54032eb238
3 changed files with 10 additions and 22 deletions

View File

@ -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" }}