lego/docs/layouts/shortcodes/clihelp.html

25 lines
765 B
HTML
Raw Permalink Normal View History

2023-01-08 13:53:15 +00:00
<div class="tab-panel">
<div class="tab-nav">
{{ $commands := index $.Site.Data.zz_cli_help "command" }}
{{ range $idx, $tab := $commands }}
<button
data-tab-item="{{ .title }}"
data-tab-group="cli-help"
class="tab-nav-button btn {{ cond (eq $idx 0) "active" ""}}"
onclick="switchTab('cli-help','{{ .title }}')"
>{{ .title }}</button>
{{ end }}
</div>
<div class="tab-content">
{{ range $idx, $tab := $commands }}
<div
data-tab-item="{{ .title }}"
data-tab-group="cli-help"
class="tab-item {{ cond (eq $idx 0) "active" ""}}"
>
<pre>{{ .content }}</pre>
</div>
{{ end }}
</div>
</div>