mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 16:54:49 +08:00
docs: avoid empty tabs using groupId
This commit is contained in:
parent
0efceeb8c6
commit
d42b1b04ed
@ -13,7 +13,7 @@ It is all about the boxes.
|
|||||||
|
|
||||||
While the examples are using named parameter you are free to use positional aswell.
|
While the examples are using named parameter you are free to use positional aswell.
|
||||||
|
|
||||||
{{< tabs >}}
|
{{< tabs groupId="shortcode-parameter">}}
|
||||||
{{% tab name="named" %}}
|
{{% tab name="named" %}}
|
||||||
|
|
||||||
````go
|
````go
|
||||||
|
@ -30,7 +30,7 @@ echo "Hello World!"
|
|||||||
|
|
||||||
Renders as:
|
Renders as:
|
||||||
|
|
||||||
{{< tabs >}}
|
{{< tabs groupId="tabs-example-language" >}}
|
||||||
{{% tab name="python" %}}
|
{{% tab name="python" %}}
|
||||||
```python
|
```python
|
||||||
print("Hello World!")
|
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:
|
Tab views with the same tabs that belong to the same group sychronize their selection:
|
||||||
|
|
||||||
{{< tabs >}}
|
{{< tabs groupId="tabs-example-language" >}}
|
||||||
{{% tab name="python" %}}
|
{{% tab name="python" %}}
|
||||||
```python
|
```python
|
||||||
print("Hello World!")
|
print("Hello World!")
|
||||||
@ -94,7 +94,7 @@ Hello = World
|
|||||||
|
|
||||||
Renders as:
|
Renders as:
|
||||||
|
|
||||||
{{< tabs groupId="config" >}}
|
{{< tabs groupId="tabs-example-config" >}}
|
||||||
{{% tab name="json" %}}
|
{{% tab name="json" %}}
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user