Shorrrtcodes on Cap'n Hugo Relearrrn Theme https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/index.html Recent content in Shorrrtcodes on Cap'n Hugo Relearrrn Theme Hugo -- gohugo.io pir Attachments https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/attachments/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/attachments/index.html Attachments NoTreasure.txt (26 B) Th' attachments shortcode 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) Arrr Since Cap'n Hugo 0.112.0 this only works fer leaf bundles. Branch bundles an' simple planks must be switched t' leaf bundles or ye be currently locked t' a Cap'n Hugo version < 0. Badge https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/badge/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/badge/index.html Th' badge shortcode displays little markers 'n yer text wit' adjust'ble color, title an' ay'con. Important Version6.6.6 Captain AhoiNew Awesome Usage While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' also call this shortcode from yer own partials. shortcode partial {{% badge %}}Important{{% /badge %}} {{% badge style="primary" title="Version" %}}6.6.6{{% /badge %}} {{% badge style="red" ay'con="angle-double-up" %}}Captain{{% /badge %}} {{% badge style="info" %}}New{{% /badge %}} {{% badge color="fuchsia" ay'con="fab fa-hackerrank" %}}Awesome{{% /badge %}} {{ partial "shortcodes/badge. Button https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/button/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/button/index.html Th' button shortcode displays a click'ble button wit' adjust'ble color, title an' ay'con. Get Cap'n Hugo Get Cap'n Hugo Usage While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' also call this shortcode from yer own partials. shortcode partial {{% 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 %}} {{ partial "shortcodes/button.html" (dict "context" . "href" "https://gohugo.io/" "content" "Get Hugo" )}} {{ partial "shortcodes/button. Children https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/children/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/children/index.html Th' children shortcode lists th' child planks o' th' current plank an' its descendants. plank X plank 1 plank 2 plank 3 Usage While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' also call this shortcode from yer own partials. shortcode partial {{% children sort="weight" %}} {{ partial "shortcodes/children.html" (dict "context" . "sort" "weight" )}} Parameter Name Default Notes containerstyle ul Choose th' style used t' group all children. Expand https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/expand/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/expand/index.html Th' expand shortcode displays an expandable/collaps'ble section o' text. Expand me… Thank ye! That’s some text wit' a footnote1 That’s some more text wit' a footnote.2 Avast This only works 'n modern browsers flawlessly. While Internet Explorer 11 has issues 'n display'n it, th' functionality still works. Usage While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' use positional as well or also call this shortcode from yer own partials. Icon https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/icon/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/icon/index.html Th' ay'con shortcode displays ay'cons us'n th' Font Awesome library. Usage While th' examples be us'n shorrrtcodes wit' positional parameter ye be free t' also call this shortcode from yer own partials. shortcode shortcode (positional) partial {{% ay'con ay'con="exclamation-triangle" %}} {{% ay'con ay'con="angle-double-up" %}} {{% ay'con ay'con="skull-crossbones" %}} {{% ay'con exclamat'n-triangle %}} {{% ay'con angle-do'ble-up %}} {{% ay'con skull-crossbones %}} {{ partial "shortcodes/icon.html" (dict "context" . "icon" "exclamation-triangle" )}} {{ partial "shortcodes/icon. Include https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/include/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/include/index.html Th' include shortcode includes other files from yer project inside o' th' current plank. Usage While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' use positional aswell or also call this shortcode from yer own partials. shortcode shortcode (positional) partial {{% include file="shortcodes/INCLUDE_ME.md" %}} {{% include "shortcodes/INCLUDE_ME.md" %}} {{ partial "shortcodes/include .html" (dict "context" . "file" "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. Math https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/math/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/math/index.html Arrr! Pirrrates Fello' pirrrates, grog made us dizzy! Be awarrre some stuff may not work in this trrranslat'n. Like see'n Merrrmaids, do'n math or chemistrrry, writ'n docs and stuff. Th' math shortcode generates beautiful formatted math an' chemical formulae us'n th' MathJax library. $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$ Avast This only works 'n modern browsers. Usage While th' examples be us'n shorrrtcodes wit' named parameter it be recommended t' use codefences instead. Merrrmaid https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/mermaid/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/mermaid/index.html Arrr! Pirrrates Fello' pirrrates, grog made us dizzy! Be awarrre some stuff may not work in this trrranslat'n. Like see'n Merrrmaids, do'n math or chemistrrry, writ'n docs and stuff. Th' mermaid shortcode generates diagrams an' flowcharts from text, 'n a similar manner as Marrrkdown us'n th' Merrrmaid library. 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 shortcode. Notice https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/notice/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/notice/index.html Th' notice shortcode 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 shorrrtcodes wit' named parameter ye be free t' use positional as well or also call this shortcode from yer own partials. shortcode shortcode (positional) partial {{% notice style="primary" title="There may be pirates" ay'con="skull-crossbones" %}} It be all about th' boxes. OpenAPI https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/openapi/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/openapi/index.html Arrr! Pirrrates Fello' pirrrates, grog made us dizzy! Be awarrre some stuff may not work in this trrranslat'n. Like see'n Merrrmaids, do'n math or chemistrrry, writ'n docs and stuff. Th' openapi shortcode uses th' Swagger UI library t' display yer OpenAPI / Swagger specificat'ns. Avast This only works 'n modern browsers. Usage While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' also call this shortcode from yer own partials. Ship param https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/siteparam/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/siteparam/index.html Th' siteparam shortcode prints values o' ship params. Usage While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' use positional aswell or call this shortcode from yer own partials. shortcode shortcode (positional) partial {{% siteparam name="editURL" %}} {{% siteparam "editURL" %}} {{ partial "shortcodes/siteparam.html" (dict "context" . "name" "editURL" )}} Parameter Name Posit'n Default Notes name 1 <empty> Th' name o' th' ship param t' be displayed. Tab https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/tab/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/tab/index.html Ye can use a tab shortcode t' display a single tab. This be especially useful if ye want t' flag yer code example wit' an explicit language. If ye want multiple tabs grouped together ye can wrap yer tabs into th' tabs shortcode. c printf("Hello World!"); Usage While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' also call this shortcode from yer own partials. shortcode partial {{% tab name="c" %}} ```c printf("Hello World! Tabs https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/tabs/index.html Mon, 01 Jan 0001 00:00:00 +0000 https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/tabs/index.html Th' tabs shortcode displays arbitrary rrrambl'n 'n an unlimited number o' tabs. This comes 'n handy eg. fer provid'n code snippets fer multiple languages. If ye just want a single tab ye can instead call th' tab shortcode standalone. python bash print("Hello World!") echo "Hello World!" Usage While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' also call this shortcode from yer own partials. See th' tab shortcode fer a descript'n o' th' parameter fer nested tabs.