Shorrrtcodes on Cap'n Hugo Relearrrn Theme https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/ Recent content in Shorrrtcodes on Cap'n Hugo Relearrrn Theme Hugo -- gohugo.io en Children https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/children/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/children/ Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. Th' children shorrrtcode lists th' child planks o' a plank an' its descendants . Usage {{% children %}} Parameter Name Default Notes plank <current> Specify th' plank name (section name) t' display children fer. containerstyle ul Choose th' style used t' group all children. It could be any HTML tag name. Swaggerrr https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/swagger/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/swagger/ Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. This shorrrtcode uses th' RapiDoc library t' display yer Swagger / OpenAPI Specificat'ns. Avast This only works 'n modern browsers. Usage {{< swagger src="https://petstore3.swagger.io/api/v3/openapi.json" >}} Parameter Name Default Notes src <empty> Th' URL t' th' OpenAPI Specificat'n file. This can be relative t' th' URL o' yer plank if it be a leaf or branch bundle. Attachments https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/attachments/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/attachments/ Attachments NoTreasure.txt (26 B) Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. Th' attachments shorrrtcode displays a list o' files attached t' a plank wit' adjust'ble color, title an' ay'con. Attachments adivorciarsetoca00cape.pdf (361 KB) BachGavotteShort.mp3 (357 KB) Carroll_AliceAuPaysDesMerveilles.pdf (175 KB) hugo.png (17 KB) hugo.txt (20 B) movieselectricsheep-flock-244-32500-2.mp4 (340 KB) Usage {{% attachments /%}} Th' shortcurt lists files found 'n a specific folder. Button https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/button/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/button/ Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. Th' button shorrrtcode displays a click'ble button wit' adjust'ble color, title an' ay'con. Get Cap'n Hugo Get Cap'n Hugo Usage {{% button href="https://gohugo.io/" %}}Get Cap'n Hugo{{% /button %}} {{% button href="https://gohugo.io/" style="warning" ay'con="dragon" %}}Get Cap'n Hugo{{% /button %}} Once th' button be clicked, it opens another browser tab fer th' given URL. Expand https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/expand/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/expand/ Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. Th' expand shorrrtcode displays an expandable/collaps'ble section o' text. Expand me... Thank ye! Usage While th' examples be us'n named parameter ye be free t' use positional aswell. named positional {{% expand title="Expand me..." %}}Thank ye!{{% /expand %}} {{% expand "Expand me..." %}}Thank ye!{{% /expand %}} Parameter Name Posit'n Default Notes title 1 "Expand me. Include https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/include/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/include/ Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. Th' include shorrrtcode includes other files from yer project inside o' th' current plank. Usage While th' examples be us'n named parameter ye be free t' use positional aswell. named positional {{% include file="shortcodes/INCLUDE_ME.md" %}} {{% include "shortcodes/INCLUDE_ME.md" %}} Th' included files can even contain Marrrkdown an' will be taken into account when generat'n th' t'ble o' contents. Merrrmaid https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/mermaid/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/mermaid/ Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. Wit' th' Merrrmaid library an' shorrrtcode, ye can generate diagrams an' flowcharts from text, 'n a similar manner as Marrrkdown. graph LR; If --> Then Then --> Else Avast This only works 'n modern browsers. Arrr Due t' limitat'ns wit' Merrrmaid, it be currently not poss'ble t' use Merrrmaid code fences 'n an initially collapsed expand shorrrtcode. Notice https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/notice/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/notice/ Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. Th' notice shorrrtcode shows various types o' disclaimers wit' adjust'ble color, title an' ay'con t' help ye structure yer plank. There may be pirates It be all about th' boxes. Usage While th' examples be us'n named parameter ye be free t' use positional aswell. Ship param https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/siteparam/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/siteparam/ Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. Th' siteparam shorrrtcode prints values o' ship params. Usage While th' examples be us'n named parameter ye be free t' use positional aswell. named positional {{% siteparam name="editURL" %}} {{% siteparam "editURL" %}} Parameter Name Posit'n Default Notes name 1 <empty> Th' name o' th' ship param t' be displayed. Tabbed views https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/tabs/ Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/tabs/ Arrr! Pirrrates Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff. Th' tabs shorrrtcode displays arbitrary rrrambl'n 'n unlimited number o' tabs. This comes 'n handy eg. fer provid'n code snippets fer multiple languages or provid'n configurat'n 'n different formats. python bash print("Hello World!") echo "Hello World!" Usage {{< tabs >}} {{% tab name="python" %}} ```python print("Hello World!