mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix(code): repeated initialization of the code tab in the encryption page
This commit is contained in:
@@ -71,12 +71,14 @@
|
||||
{{- $isFirst := not (.Page.Store.Get $groupKey) -}}
|
||||
{{- if $isFirst -}}
|
||||
{{- .Page.Store.Set $groupKey true -}}
|
||||
{{- else -}}
|
||||
{{- $targetClass = add $targetClass " d-none" -}}
|
||||
{{- end -}}
|
||||
{{- $hidden := cond $isFirst "" " data-hidden" -}}
|
||||
{{- $wrapper =
|
||||
replace $wrapper
|
||||
(printf `class="%s"` $class)
|
||||
(printf `class="%s" data-tab-group="%s" data-tab-title="%s"%s` $class $config.group $tabTitle $hidden) -}}
|
||||
(printf `class="%s" data-tab-title="%s"` $class $tabTitle)
|
||||
-}}
|
||||
{{- end -}}
|
||||
{{- if ne .Options.linenostart nil -}}
|
||||
{{- $wrapper =
|
||||
|
||||
Reference in New Issue
Block a user