Delete exampleSite Add initial content, images & docker-compose.yml Use extend-head.html for analytics Set remote url to gitea.novicelab.io
9 lines
412 B
HTML
9 lines
412 B
HTML
{{- $label := .Get "label" -}}
|
|
{{- $icon := .Get "icon" -}}
|
|
{{- $index := .Parent.Store.Get "tab-index" | default 0 -}}
|
|
{{- $content := .InnerDeindent | strings.TrimSpace | .Page.RenderString -}}
|
|
|
|
{{- $tabs := .Parent.Store.Get "tabs" | default slice -}}
|
|
{{- .Parent.Store.Set "tabs" ($tabs | append (dict "label" $label "icon" $icon "content" $content)) -}}
|
|
{{- .Parent.Store.Set "tab-index" (add 1 $index) -}}
|