mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
- layouts/partials/ → layouts/_partials/ - layouts/shortcodes/ → layouts/_shortcodes/ - layouts/_default/_markup/ → layouts/_markup/ - layouts/_default/*.html → layouts/*.html (flatten _default/) - layouts/index.html → layouts/home.html - layouts/index.*.json/txt → layouts/home.*.json/txt - layouts/_default/index.llms.txt → layouts/home.llms.txt - layouts/tag/ → layouts/tags/ (match /tags/ URL path)
13 lines
339 B
HTML
13 lines
339 B
HTML
{{ if ne .Parent.Name "tabs" }}
|
|
{{- errorf "tab shortcode missing its 'tabs' parent: %s" .Position -}}
|
|
{{ end }}
|
|
|
|
{{ $name := trim (.Get "name") " " }}
|
|
|
|
{{ if not (.Parent.Store.Get "tabs") }}
|
|
{{ .Parent.Store.Set "tabs" slice }}
|
|
{{ end }}
|
|
{{ with .Inner }}
|
|
{{ $.Parent.Store.Add "tabs" (dict "name" $name "content" . ) }}
|
|
{{ end }}
|