Add Lotusdocs theme
This commit is contained in:
11
themes/lotusdocs/layouts/shortcodes/tab.html
Normal file
11
themes/lotusdocs/layouts/shortcodes/tab.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- https://github.com/rvanhorn/hugo-dynamic-tabs -->
|
||||
{{ $tabName := .Get "tabName" }}
|
||||
{{ $tabID := delimit (shuffle (slice "a" "b" "c" "d" "e" "f")) "" }}
|
||||
{{ .Parent.Scratch.Add "tabName" (slice $tabName) }}
|
||||
{{ .Parent.Scratch.Add "tabID" (slice $tabID) }}
|
||||
|
||||
<div class="tab-pane fade{{ if eq .Ordinal 0 }} show active{{ end }}" id="{{ $tabID }}" role="tabpanel" aria-labelledby="nav-1">
|
||||
|
||||
{{ $.Inner }}
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user