diff --git a/exampleSite/content/shortcodes/attachments/index.en.md b/exampleSite/content/shortcodes/attachments/index.en.md index 50c282d5275..db5e08106b3 100644 --- a/exampleSite/content/shortcodes/attachments/index.en.md +++ b/exampleSite/content/shortcodes/attachments/index.en.md @@ -16,14 +16,14 @@ Since Hugo {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.112 While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{%/* attachments sort="asc" /*/%}} ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/attachments.html" (dict diff --git a/exampleSite/content/shortcodes/badge.en.md b/exampleSite/content/shortcodes/badge.en.md index deb94906151..81178cb6b62 100644 --- a/exampleSite/content/shortcodes/badge.en.md +++ b/exampleSite/content/shortcodes/badge.en.md @@ -16,7 +16,7 @@ The `badge` shortcode displays little markers in your text with adjustable color While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{%/* badge %}}Important{{% /badge */%}} @@ -27,7 +27,7 @@ While the examples are using shortcodes with named parameter you are free to als ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/badge.html" (dict diff --git a/exampleSite/content/shortcodes/button.en.md b/exampleSite/content/shortcodes/button.en.md index 3a29bf45a77..85b26e0b369 100644 --- a/exampleSite/content/shortcodes/button.en.md +++ b/exampleSite/content/shortcodes/button.en.md @@ -13,7 +13,7 @@ The `button` shortcode displays a clickable button with adjustable color, title While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{%/* button href="https://gohugo.io/" %}}Get Hugo{{% /button */%}} @@ -21,7 +21,7 @@ While the examples are using shortcodes with named parameter you are free to als ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/button.html" (dict diff --git a/exampleSite/content/shortcodes/children/_index.en.md b/exampleSite/content/shortcodes/children/_index.en.md index a96fd55ed92..ba7fd580156 100644 --- a/exampleSite/content/shortcodes/children/_index.en.md +++ b/exampleSite/content/shortcodes/children/_index.en.md @@ -13,14 +13,14 @@ The `children` shortcode lists the child pages of the current page and its desce While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{%/* children sort="weight" */%}} ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/children.html" (dict diff --git a/exampleSite/content/shortcodes/expand.en.md b/exampleSite/content/shortcodes/expand.en.md index 71b33737c34..e2f9a198dbc 100644 --- a/exampleSite/content/shortcodes/expand.en.md +++ b/exampleSite/content/shortcodes/expand.en.md @@ -28,21 +28,21 @@ This only works in modern browsers flawlessly. While Internet Explorer 11 has is While the examples are using shortcodes with named parameter you are free to use positional as well or also call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{%/* expand title="Expand me..." */%}}Thank you!{{%/* /expand */%}} ```` {{% /tab %}} -{{% tab name="shortcode (positional)" %}} +{{% tab title="shortcode (positional)" %}} ````go {{%/* expand "Expand me..." */%}}Thank you!{{%/* /expand */%}} ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/expand.html" (dict diff --git a/exampleSite/content/shortcodes/icon.en.md b/exampleSite/content/shortcodes/icon.en.md index cbf8e71742c..498a28bc43c 100644 --- a/exampleSite/content/shortcodes/icon.en.md +++ b/exampleSite/content/shortcodes/icon.en.md @@ -15,7 +15,7 @@ The `icon` shortcode displays icons using the [Font Awesome](https://fontawesome While the examples are using shortcodes with positional parameter you are free to also call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{%/* icon icon="exclamation-triangle" */%}} @@ -24,7 +24,7 @@ While the examples are using shortcodes with positional parameter you are free t ```` {{% /tab %}} -{{% tab name="shortcode (positional)" %}} +{{% tab title="shortcode (positional)" %}} ````go {{%/* icon exclamation-triangle */%}} @@ -33,7 +33,7 @@ While the examples are using shortcodes with positional parameter you are free t ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/icon.html" (dict diff --git a/exampleSite/content/shortcodes/include.en.md b/exampleSite/content/shortcodes/include.en.md index c60abc1910d..1fa9a2e9e4e 100644 --- a/exampleSite/content/shortcodes/include.en.md +++ b/exampleSite/content/shortcodes/include.en.md @@ -10,21 +10,21 @@ The `include` shortcode includes other files from your project inside of the cur While the examples are using shortcodes with named parameter you are free to use positional aswell or also call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{%/* include file="shortcodes/INCLUDE_ME.md" */%}} ```` {{% /tab %}} -{{% tab name="shortcode (positional)" %}} +{{% tab title="shortcode (positional)" %}} ````go {{%/* include "shortcodes/INCLUDE_ME.md" */%}} ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/include .html" (dict diff --git a/exampleSite/content/shortcodes/math.en.md b/exampleSite/content/shortcodes/math.en.md index 8c1f7d52b4d..b16bd1f63f5 100644 --- a/exampleSite/content/shortcodes/math.en.md +++ b/exampleSite/content/shortcodes/math.en.md @@ -24,7 +24,7 @@ To use codefence syntax you have to turn off `guessSyntax` for the `markup.highl {{% /notice %}} {{< tabs groupId="shortcode-parameter">}} -{{% tab name="codefence" %}} +{{% tab title="codefence" %}} ````md ```math { align="center" } @@ -33,7 +33,7 @@ $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \ ```` {{% /tab %}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{}} @@ -42,7 +42,7 @@ $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \ ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/math.html" (dict diff --git a/exampleSite/content/shortcodes/mermaid.en.md b/exampleSite/content/shortcodes/mermaid.en.md index 23b4d22bfae..63c8c289dad 100644 --- a/exampleSite/content/shortcodes/mermaid.en.md +++ b/exampleSite/content/shortcodes/mermaid.en.md @@ -30,7 +30,7 @@ To use codefence syntax you have to turn off `guessSyntax` for the `markup.highl {{% /notice %}} {{< tabs groupId="shortcode-parameter">}} -{{% tab name="codefence" %}} +{{% tab title="codefence" %}} ````md ```mermaid { align="center" zoom="true" } @@ -41,7 +41,7 @@ graph LR; ```` {{% /tab %}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{}} @@ -52,7 +52,7 @@ graph LR; ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/mermaid.html" (dict diff --git a/exampleSite/content/shortcodes/notice.en.md b/exampleSite/content/shortcodes/notice.en.md index 96fe19d24e8..53dd4025ba0 100644 --- a/exampleSite/content/shortcodes/notice.en.md +++ b/exampleSite/content/shortcodes/notice.en.md @@ -14,7 +14,7 @@ It is all about the boxes. While the examples are using shortcodes with named parameter you are free to use positional as well or also call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{%/* notice style="primary" title="There may be pirates" icon="skull-crossbones" */%}} @@ -23,7 +23,7 @@ It is all about the boxes. ```` {{% /tab %}} -{{% tab name="shortcode (positional)" %}} +{{% tab title="shortcode (positional)" %}} ````go {{%/* notice primary "There may be pirates" "skull-crossbones" */%}} @@ -32,7 +32,7 @@ It is all about the boxes. ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/notice.html" (dict diff --git a/exampleSite/content/shortcodes/openapi/_index.en.md b/exampleSite/content/shortcodes/openapi/_index.en.md index c00359b9bc8..59a20a1736b 100644 --- a/exampleSite/content/shortcodes/openapi/_index.en.md +++ b/exampleSite/content/shortcodes/openapi/_index.en.md @@ -14,14 +14,14 @@ This only works in modern browsers. While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{}} ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/openapi.html" (dict diff --git a/exampleSite/content/shortcodes/siteparam.en.md b/exampleSite/content/shortcodes/siteparam.en.md index 8e6839e0da9..d4da4eb143d 100644 --- a/exampleSite/content/shortcodes/siteparam.en.md +++ b/exampleSite/content/shortcodes/siteparam.en.md @@ -10,7 +10,7 @@ The `siteparam` shortcode prints values of site params. While the examples are using shortcodes with named parameter you are free to use positional aswell or call this shortcode from your own partials. {{< tabs groupId="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go @@ -18,14 +18,14 @@ While the examples are using shortcodes with named parameter you are free to use ```` {{% /tab %}} -{{% tab name="shortcode (positional)" %}} +{{% tab title="shortcode (positional)" %}} ````go {{%/* siteparam "editURL" */%}} ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/siteparam.html" (dict diff --git a/exampleSite/content/shortcodes/tab.en.md b/exampleSite/content/shortcodes/tab.en.md index 147d23812c7..c1f21a89d57 100644 --- a/exampleSite/content/shortcodes/tab.en.md +++ b/exampleSite/content/shortcodes/tab.en.md @@ -9,7 +9,7 @@ This is especially useful if you want to flag your code example with an explicit If you want multiple tabs grouped together you can wrap your tabs into the [`tabs` shortcode]({{% relref "shortcodes/tabs" %}}). -{{% tab name="c" %}} +{{% tab title="c" %}} ```python printf("Hello World!"); @@ -22,10 +22,10 @@ printf("Hello World!"); While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials. {{< tabs groupid="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go -{{%/* tab name="c" */%}} +{{%/* tab title="c" */%}} ```c printf("Hello World!"); ``` @@ -33,12 +33,12 @@ printf("Hello World!"); ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/tab.html" (dict "context" . - "name" "c" + "title" "c" "content" ("```c\nprintf(\"Hello World!\")\n```" | .RenderString) )}} ```` @@ -57,7 +57,7 @@ printf("Hello World!"); ### Code with collapsed margins -{{% tab name="Code" %}} +{{% tab title="Code" %}} ```python printf("Hello World!"); @@ -67,7 +67,7 @@ printf("Hello World!"); ### Mixed content -{{% tab name="_**Mixed**_" %}} +{{% tab title="_**Mixed**_" %}} A tab can not only contain code but arbitrary text. In this case text and code will get a margin. diff --git a/exampleSite/content/shortcodes/tabs.en.md b/exampleSite/content/shortcodes/tabs.en.md index cd7cbd8f94f..522df4c5a6a 100644 --- a/exampleSite/content/shortcodes/tabs.en.md +++ b/exampleSite/content/shortcodes/tabs.en.md @@ -10,14 +10,14 @@ This comes in handy eg. for providing code snippets for multiple languages. If you just want a single tab you can instead call the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) standalone. {{< tabs >}} -{{% tab name="python" %}} +{{% tab title="python" %}} ```python print("Hello World!") ``` {{% /tab %}} -{{% tab name="bash" %}} +{{% tab title="bash" %}} ```bash echo "Hello World!" @@ -33,16 +33,16 @@ While the examples are using shortcodes with named parameter you are free to als See the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) for a description of the parameter for nested tabs. {{< tabs groupid="shortcode-parameter">}} -{{% tab name="shortcode" %}} +{{% tab title="shortcode" %}} ````go {{}} -{{%/* tab name="python" */%}} +{{%/* tab title="python" */%}} ```python print("Hello World!") ``` {{%/* /tab */%}} -{{%/* tab name="bash" */%}} +{{%/* tab title="bash" */%}} ```bash echo "Hello World!" ``` @@ -51,18 +51,18 @@ echo "Hello World!" ```` {{% /tab %}} -{{% tab name="partial" %}} +{{% tab title="partial" %}} ````go {{ partial "shortcodes/tabs.html" (dict "context" . "content" (slice (dict - "name" "python" + "title" "python" "content" ("```python\nprint(\"Hello World!\")\n```" | .RenderString) ) (dict - "name" "bash" + "title" "bash" "content" ("```bash\necho \"Hello World!\"\n```" | .RenderString) ) ) @@ -88,20 +88,20 @@ See what happens to the tab views while you select different tabs. While pressing a tab of group A switches all tab views of group A in sync (if the tab is available), the tabs of group B are left untouched. {{< tabs >}} -{{% tab name="Group A, Tab View 1" %}} +{{% tab title="Group A, Tab View 1" %}} ````go {{}} -{{%/* tab name="json" */%}} +{{%/* tab title="json" */%}} ```json { "Hello": "World" } ``` {{%/* /tab */%}} -{{%/* tab name="_**XML**_ stuff" */%}} +{{%/* tab title="_**XML**_ stuff" */%}} ```xml World ``` {{%/* /tab */%}} -{{%/* tab name="properties" */%}} +{{%/* tab title="properties" */%}} ```properties Hello = World ``` @@ -109,15 +109,15 @@ Hello = World {{}} ```` {{% /tab %}} -{{% tab name="Group A, Tab View 2" %}} +{{% tab title="Group A, Tab View 2" %}} ````go {{}} -{{%/* tab name="json" */%}} +{{%/* tab title="json" */%}} ```json { "Hello": "World" } ``` {{%/* /tab */%}} -{{%/* tab name="XML stuff" */%}} +{{%/* tab title="XML stuff" */%}} ```xml World ``` @@ -125,15 +125,15 @@ Hello = World {{}} ```` {{% /tab %}} -{{% tab name="Group B" %}} +{{% tab title="Group B" %}} ````go {{}} -{{%/* tab name="json" */%}} +{{%/* tab title="json" */%}} ```json { "Hello": "World" } ``` {{%/* /tab */%}} -{{%/* tab name="XML stuff" */%}} +{{%/* tab title="XML stuff" */%}} ```xml World ``` @@ -147,17 +147,17 @@ Hello = World #### Group A, Tab View 1 {{< tabs groupid="tab-example-a" >}} -{{% tab name="json" %}} +{{% tab title="json" %}} ```json { "Hello": "World" } ``` {{% /tab %}} -{{% tab name="_**XML**_ stuff" %}} +{{% tab title="_**XML**_ stuff" %}} ```xml World ``` {{% /tab %}} -{{% tab name="properties" %}} +{{% tab title="properties" %}} ```ini Hello = World ``` @@ -167,12 +167,12 @@ Hello = World #### Group A, Tab View 2 {{< tabs groupid="tab-example-a" >}} -{{% tab name="json" %}} +{{% tab title="json" %}} ```json { "Hello": "World" } ``` {{% /tab %}} -{{% tab name="XML stuff" %}} +{{% tab title="XML stuff" %}} ```xml World ``` @@ -182,12 +182,12 @@ Hello = World #### Group B {{< tabs groupid="tab-example-b" >}} -{{% tab name="json" %}} +{{% tab title="json" %}} ```json { "Hello": "World" } ``` {{% /tab %}} -{{% tab name="XML stuff" %}} +{{% tab title="XML stuff" %}} ```xml World ``` @@ -200,30 +200,30 @@ In case you want to nest tabs, the parent tab that contains the subtabs needs to ````go {{}} -{{}} +{{}} Simple text is possible here... {{}} - {{%/* tab name="python" */%}} + {{%/* tab title="python" */%}} Python is **super** easy. - most of the time. - if you don't want to output unicode {{%/* /tab */%}} - {{%/* tab name="bash" */%}} + {{%/* tab title="bash" */%}} Bash is for **hackers**. {{%/* /tab */%}} {{}} {{}} -{{}} +{{}} ...but no markdown {{}} - {{%/* tab name="python" */%}} + {{%/* tab title="python" */%}} ```python print("Hello World!") ``` {{%/* /tab */%}} - {{%/* tab name="bash" */%}} + {{%/* tab title="bash" */%}} ```bash echo "Hello World!" ``` @@ -234,30 +234,30 @@ In case you want to nest tabs, the parent tab that contains the subtabs needs to ```` {{< tabs groupid="main" >}} -{{< tab name="Text" >}} +{{< tab title="Text" >}} Simple text is possible here... {{< tabs groupid="tabs-example-language" >}} - {{% tab name="python" %}} + {{% tab title="python" %}} Python is **super** easy. - most of the time. - if you don't want to output unicode {{% /tab %}} - {{% tab name="bash" %}} + {{% tab title="bash" %}} Bash is for **hackers**. {{% /tab %}} {{< /tabs >}} {{< /tab >}} -{{< tab name="Code" >}} +{{< tab title="Code" >}} ...but no markdown {{< tabs groupid="tabs-example-language" >}} - {{% tab name="python" %}} + {{% tab title="python" %}} ```python print("Hello World!") ``` {{% /tab %}} - {{% tab name="bash" %}} + {{% tab title="bash" %}} ```bash echo "Hello World!" ``` diff --git a/exampleSite/content/tests/lists/_index.en.md b/exampleSite/content/tests/lists/_index.en.md index 11d271ea9c2..b0ac769d916 100644 --- a/exampleSite/content/tests/lists/_index.en.md +++ b/exampleSite/content/tests/lists/_index.en.md @@ -144,12 +144,12 @@ title = "Lists" - one - two - {{< tabs >}} - {{% tab name="python" %}} + {{% tab title="python" %}} ```python print("Hello World!") ``` {{% /tab %}} - {{% tab name="bash" %}} + {{% tab title="bash" %}} ```bash echo "Hello World!" ``` @@ -157,12 +157,12 @@ title = "Lists" {{< /tabs >}} {{< tabs >}} - {{% tab name="python" %}} + {{% tab title="python" %}} ```python print("Hello World!") ``` {{% /tab %}} - {{% tab name="bash" %}} + {{% tab title="bash" %}} ```bash echo "Hello World!" ``` diff --git a/exampleSite/content/tests/tables/_index.en.md b/exampleSite/content/tests/tables/_index.en.md index 1b5c6a5b9da..e7d63e39232 100644 --- a/exampleSite/content/tests/tables/_index.en.md +++ b/exampleSite/content/tests/tables/_index.en.md @@ -144,12 +144,12 @@ graph LR; | i | |---| | {{< tabs >}} -{{% tab name="python" %}} +{{% tab title="python" %}} ```python print("Hello World!") ``` {{% /tab %}} -{{% tab name="bash" %}} +{{% tab title="bash" %}} ```bash echo "Hello World!" ```