mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 11:56:48 -04:00
docs: add documentation on all shortcodes (#753)
This commit is contained in:

committed by
GitHub

parent
80ada64da0
commit
2033d50005
@@ -1,3 +1,12 @@
|
||||
{{- /*
|
||||
Create a tabbed interface with the given items.
|
||||
|
||||
@param {string} items The items to display in the tabs.
|
||||
@param {string} defaultIndex The index of the default tab.
|
||||
|
||||
@example {{< tabs items="JSON,YAML,TOML" >}}{{< /tabs >}}
|
||||
*/ -}}
|
||||
|
||||
{{- $items := split (.Get "items") "," -}}
|
||||
{{- $defaultIndex := int ((.Get "defaultIndex") | default "0") -}}
|
||||
|
||||
|
Reference in New Issue
Block a user