mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
docs: clarifications for tabs #538
This commit is contained in:
parent
7e92610184
commit
69a5aa5b58
2 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,8 @@ You can use a `tab` shortcode to display a single tab.
|
|||
|
||||
This is especially useful if you want to flag your code example with an explicit language.
|
||||
|
||||
If you want multiple tabs grouped together you can wrap your tabs into the [`tabs` shortcode]({{% relref "shortcodes/tabs" %}}).
|
||||
|
||||
{{% tab name="c" %}}
|
||||
|
||||
```python
|
||||
|
|
|
@ -7,7 +7,7 @@ The `tabs` shortcode displays arbitrary content in an unlimited number of tabs.
|
|||
|
||||
This comes in handy eg. for providing code snippets for multiple languages.
|
||||
|
||||
If you only want a single tab in your group, you can instead call the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) standalone.
|
||||
If you just want a single tab you can instead call the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) standalone.
|
||||
|
||||
{{< tabs >}}
|
||||
{{% tab name="python" %}}
|
||||
|
@ -30,6 +30,8 @@ echo "Hello World!"
|
|||
|
||||
While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.
|
||||
|
||||
See the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) for a description of the parameter for nested tabs.
|
||||
|
||||
{{< tabs groupid="shortcode-parameter">}}
|
||||
{{% tab name="shortcode" %}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue