mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
docs: avoid empty tabs using groupId
This commit is contained in:
parent
0efceeb8c6
commit
d42b1b04ed
2 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ It is all about the boxes.
|
|||
|
||||
While the examples are using named parameter you are free to use positional aswell.
|
||||
|
||||
{{< tabs >}}
|
||||
{{< tabs groupId="shortcode-parameter">}}
|
||||
{{% tab name="named" %}}
|
||||
|
||||
````go
|
||||
|
|
|
@ -30,7 +30,7 @@ echo "Hello World!"
|
|||
|
||||
Renders as:
|
||||
|
||||
{{< tabs >}}
|
||||
{{< tabs groupId="tabs-example-language" >}}
|
||||
{{% tab name="python" %}}
|
||||
```python
|
||||
print("Hello World!")
|
||||
|
@ -50,7 +50,7 @@ echo "Hello World!"
|
|||
|
||||
Tab views with the same tabs that belong to the same group sychronize their selection:
|
||||
|
||||
{{< tabs >}}
|
||||
{{< tabs groupId="tabs-example-language" >}}
|
||||
{{% tab name="python" %}}
|
||||
```python
|
||||
print("Hello World!")
|
||||
|
@ -94,7 +94,7 @@ Hello = World
|
|||
|
||||
Renders as:
|
||||
|
||||
{{< tabs groupId="config" >}}
|
||||
{{< tabs groupId="tabs-example-config" >}}
|
||||
{{% tab name="json" %}}
|
||||
```json
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue