mirror of
https://github.com/distribution/distribution.git
synced 2025-09-05 00:41:19 +00:00
docs: add hugo site
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
22
docs/themes/hugo-geekdoc/layouts/shortcodes/tabs.html
vendored
Normal file
22
docs/themes/hugo-geekdoc/layouts/shortcodes/tabs.html
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{{- if .Inner }}{{ end }}
|
||||
{{- $id := .Get 0 }}
|
||||
{{- $group := printf "tabs-%s" $id }}
|
||||
|
||||
|
||||
<div class="gdoc-tabs">
|
||||
{{- range $index, $tab := .Scratch.Get $group }}
|
||||
<input
|
||||
type="radio"
|
||||
class="gdoc-tabs__control hidden"
|
||||
name="{{ $group }}"
|
||||
id="{{ printf "%s-%d" $group $index }}"
|
||||
{{ if not $index }}checked="checked"{{ end }}
|
||||
/>
|
||||
<label for="{{ printf "%s-%d" $group $index }}" class="gdoc-tabs__label">
|
||||
{{ $tab.Name }}
|
||||
</label>
|
||||
<div class="gdoc-markdown--nested gdoc-tabs__content">
|
||||
{{ .Content | $.Page.RenderString }}
|
||||
</div>
|
||||
{{- end }}
|
||||
</div>
|
Reference in New Issue
Block a user