From d367a443f1c7c93071b5f4ca2f522d07a888dc74 Mon Sep 17 00:00:00 2001 From: icannotfly Date: Mon, 23 Sep 2024 14:10:38 -0700 Subject: [PATCH] docs: add cols parameter for cards shortcode (#459) documentation was missing --- .../content/docs/guide/shortcodes/cards.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/exampleSite/content/docs/guide/shortcodes/cards.md b/exampleSite/content/docs/guide/shortcodes/cards.md index fcf61e00..e369f7a4 100644 --- a/exampleSite/content/docs/guide/shortcodes/cards.md +++ b/exampleSite/content/docs/guide/shortcodes/cards.md @@ -87,3 +87,30 @@ Card supports adding tags which could be useful to show extra status information {{}} {{}} ``` + +## Columns + +You can specify the maximum number of columns for cards to span by passing the `cols` parameter to the `cards` shortcode. Note that columns will still be collapsed on smaller screens. + +{{< cards cols="1" >}} + {{< card link="/" title="Top Card" >}} + {{< card link="/" title="Bottom Card" >}} +{{< /cards >}} + +{{< cards cols="2" >}} + {{< card link="/" title="Left Card" >}} + {{< card link="/" title="Right Card" >}} +{{< /cards >}} + +``` +{{}} + {{}} + {{}} +{{}} + +{{}} + {{}} + {{}} +{{}} +``` +