Cards

Th' cards shortcode displays yer rrrambl'n 'n a grouped set o' cards.

  • Terminal Example

    For guys who like t' tinker around.

    echo "Hello World!"
  • C Example

    For th' connoisseur o' programm'n.

    printf("Hello World!");

Usage

{{< cards >}}
{{% card href="https://example.com" title="Python Example" %}}
Th' AI native programm'n language.

```python
print("Hello World!")
```
{{% /card %}}
{{% card title="Terminal Example" %}}
For guys who like t' tinker around.

```bash
echo "Hello World!"
```
{{% /card %}}
{{% card title="C Example" %}}
For th' connoisseur o' programm'n.

```c
printf("Hello World!");
```
{{% /card %}}
{{< /cards >}}
{{ partial "shortcodes/cards.html" (dict
  "page" .
  "content" (slice
    (dict
      "content" "The AI native programm'n language.\n\n```python\nprint(\"Hello World!\")\n```"
      "href" "https://example.com"
      "title" "Python Example"
    )
    (dict
      "content" "For guys who like t' tinker around.\n\n```bash\necho \"Hello World!\"\n```"
      "title" "Terminal Example"
    )
    (dict
      "content" "For th' connoisseur o' programm'n.\n\n```c\nprintf(\"Hello World!\");\n```"
      "title" "C Example"
    )
  )
)}}

If ye just want a single card ye can instead call th' card shortcode standalone.

Also follow th' above link t' see th' parameter fer each nested card.

Parameters

Name Default Notes
template default Th' template t' be used t' display all cards 'n th' set. Can be overridden fer each card.

- default: Th' standard layout
- debug: A debug layout help'n ye 'n development

See th' card shortcode how t' use yer own templates.
<content> <empty> Arbitrary number o' cards defined wit' th' card sub-shortcode.

Examples

Lots o' Cards

{{< cards >}}
{{% card title="Python" %}}Th' AI native programm'n language.{{% /card %}}
{{% card title="Terminal" %}}For guys who like t' tinker around.{{% /card %}}
{{% card title="C" %}}For th' connoisseur o' programm'n.{{% /card %}}
{{% card title="C++" %}}For th' guys that can cope wit' rules.{{% /card %}}
{{% card title="C#" %}}For guys that need two destructors.{{% /card %}}
{{< /cards >}}
{{ partial "shortcodes/cards.html" (dict
  "page" .
  "content" (slice
    (dict
      "content" "The AI native programm'n language."
      "title" "Python"
    )
    (dict
      "content" "For guys who like t' tinker around."
      "title" "Terminal"
    )
    (dict
      "content" "For th' connoisseur o' programm'n."
      "title" "C"
    )
    (dict
      "content" "For th' guys that can cope wit' rules."
      "title" "C++"
    )
    (dict
      "content" "For guys that need two destructors."
      "title" "C#"
    )
  )
)}}
  • Python
    Th' AI native programm'n language.
  • Terminal
    For guys who like t' tinker around.
  • C
    For th' connoisseur o' programm'n.
  • C++
    For th' guys that can cope wit' rules.
  • C#
    For guys that need two destructors.

Lots o' Cards wit' Templates

{{< cards template="debug" >}}
{{% card title="Python" %}}Th' AI native programm'n language.{{% /card %}}
{{% card template="default" title="Terminal" %}}For guys who like t' tinker around.{{% /card %}}
{{% card title="C" %}}For th' connoisseur o' programm'n.{{% /card %}}
{{% card title="C++" %}}For th' guys that can cope wit' rules.{{% /card %}}
{{% card title="C#" %}}For guys that need two destructors.{{% /card %}}
{{< /cards >}}
{{ partial "shortcodes/cards.html" (dict
  "page" .
  "content" (slice
    (dict
      "content" "The AI native programm'n language."
      "title" "Python"
    )
    (dict
      "content" "For guys who like t' tinker around."
      "template" "default"
      "title" "Terminal"
    )
    (dict
      "content" "For th' connoisseur o' programm'n."
      "title" "C"
    )
    (dict
      "content" "For th' guys that can cope wit' rules."
      "title" "C++"
    )
    (dict
      "content" "For guys that need two destructors."
      "title" "C#"
    )
  )
  "template" "debug"
)}}
  • Python

    All Parameter

    {
      "color": "",
      "content": "The AI native programm'n language.",
      "href": "",
      "hrefattributes": {},
      "icon": "",
      "image": null,
      "imageattributes": {},
      "page": {
        "PageWithoutContent": {
          "Date": "0001-01-01T00:00:00Z",
          "Lastmod": "0001-01-01T00:00:00Z",
          "PublishDate": "0001-01-01T00:00:00Z",
          "ExpiryDate": "0001-01-01T00:00:00Z",
          "Aliases": [],
          "BundleType": "branch",
          "Description": "Show rrrambl'n 'n a set o' cards",
          "Draft": false,
          "IsHome": false,
          "Keywords": null,
          "Kind": "section",
          "Layout": "",
          "LinkTitle": "Cards",
          "IsNode": true,
          "IsPage": false,
          "Path": "/shortcodes/cards",
          "Slug": "",
          "Lang": "en",
          "IsSection": true,
          "Section": "shortcodes",
          "Sitemap": {
            "ChangeFreq": "",
            "Priority": -1,
            "Filename": "sitemap.xml",
            "Disable": false
          },
          "Type": "shortcodes",
          "Weight": 0
        },
        "TableOfContentsProvider": {
          "Date": "0001-01-01T00:00:00Z",
          "Lastmod": "0001-01-01T00:00:00Z",
          "PublishDate": "0001-01-01T00:00:00Z",
          "ExpiryDate": "0001-01-01T00:00:00Z",
          "Aliases": [],
          "BundleType": "branch",
          "Description": "Show rrrambl'n 'n a set o' cards",
          "Draft": false,
          "IsHome": false,
          "Keywords": null,
          "Kind": "section",
          "Layout": "",
          "LinkTitle": "Cards",
          "IsNode": true,
          "IsPage": false,
          "Path": "/shortcodes/cards",
          "Slug": "",
          "Lang": "en",
          "IsSection": true,
          "Section": "shortcodes",
          "Sitemap": {
            "ChangeFreq": "",
            "Priority": -1,
            "Filename": "sitemap.xml",
            "Disable": false
          },
          "Type": "shortcodes",
          "Weight": 0
        },
        "MarkupProvider": 0,
        "ContentProvider": 0
      },
      "params": null,
      "style": "filled",
      "template": "debug",
      "title": "Python"
    }
      </div>
    </div>
    
  • Terminal
    For guys who like t' tinker around.
  • C

    All Parameter

    {
      "color": "",
      "content": "For th' connoisseur o' programm'n.",
      "href": "",
      "hrefattributes": {},
      "icon": "",
      "image": null,
      "imageattributes": {},
      "page": {
        "PageWithoutContent": {
          "Date": "0001-01-01T00:00:00Z",
          "Lastmod": "0001-01-01T00:00:00Z",
          "PublishDate": "0001-01-01T00:00:00Z",
          "ExpiryDate": "0001-01-01T00:00:00Z",
          "Aliases": [],
          "BundleType": "branch",
          "Description": "Show rrrambl'n 'n a set o' cards",
          "Draft": false,
          "IsHome": false,
          "Keywords": null,
          "Kind": "section",
          "Layout": "",
          "LinkTitle": "Cards",
          "IsNode": true,
          "IsPage": false,
          "Path": "/shortcodes/cards",
          "Slug": "",
          "Lang": "en",
          "IsSection": true,
          "Section": "shortcodes",
          "Sitemap": {
            "ChangeFreq": "",
            "Priority": -1,
            "Filename": "sitemap.xml",
            "Disable": false
          },
          "Type": "shortcodes",
          "Weight": 0
        },
        "TableOfContentsProvider": {
          "Date": "0001-01-01T00:00:00Z",
          "Lastmod": "0001-01-01T00:00:00Z",
          "PublishDate": "0001-01-01T00:00:00Z",
          "ExpiryDate": "0001-01-01T00:00:00Z",
          "Aliases": [],
          "BundleType": "branch",
          "Description": "Show rrrambl'n 'n a set o' cards",
          "Draft": false,
          "IsHome": false,
          "Keywords": null,
          "Kind": "section",
          "Layout": "",
          "LinkTitle": "Cards",
          "IsNode": true,
          "IsPage": false,
          "Path": "/shortcodes/cards",
          "Slug": "",
          "Lang": "en",
          "IsSection": true,
          "Section": "shortcodes",
          "Sitemap": {
            "ChangeFreq": "",
            "Priority": -1,
            "Filename": "sitemap.xml",
            "Disable": false
          },
          "Type": "shortcodes",
          "Weight": 0
        },
        "MarkupProvider": 0,
        "ContentProvider": 0
      },
      "params": null,
      "style": "filled",
      "template": "debug",
      "title": "C"
    }
      </div>
    </div>
    
  • C++

    All Parameter

    {
      "color": "",
      "content": "For th' guys that can cope wit' rules.",
      "href": "",
      "hrefattributes": {},
      "icon": "",
      "image": null,
      "imageattributes": {},
      "page": {
        "PageWithoutContent": {
          "Date": "0001-01-01T00:00:00Z",
          "Lastmod": "0001-01-01T00:00:00Z",
          "PublishDate": "0001-01-01T00:00:00Z",
          "ExpiryDate": "0001-01-01T00:00:00Z",
          "Aliases": [],
          "BundleType": "branch",
          "Description": "Show rrrambl'n 'n a set o' cards",
          "Draft": false,
          "IsHome": false,
          "Keywords": null,
          "Kind": "section",
          "Layout": "",
          "LinkTitle": "Cards",
          "IsNode": true,
          "IsPage": false,
          "Path": "/shortcodes/cards",
          "Slug": "",
          "Lang": "en",
          "IsSection": true,
          "Section": "shortcodes",
          "Sitemap": {
            "ChangeFreq": "",
            "Priority": -1,
            "Filename": "sitemap.xml",
            "Disable": false
          },
          "Type": "shortcodes",
          "Weight": 0
        },
        "TableOfContentsProvider": {
          "Date": "0001-01-01T00:00:00Z",
          "Lastmod": "0001-01-01T00:00:00Z",
          "PublishDate": "0001-01-01T00:00:00Z",
          "ExpiryDate": "0001-01-01T00:00:00Z",
          "Aliases": [],
          "BundleType": "branch",
          "Description": "Show rrrambl'n 'n a set o' cards",
          "Draft": false,
          "IsHome": false,
          "Keywords": null,
          "Kind": "section",
          "Layout": "",
          "LinkTitle": "Cards",
          "IsNode": true,
          "IsPage": false,
          "Path": "/shortcodes/cards",
          "Slug": "",
          "Lang": "en",
          "IsSection": true,
          "Section": "shortcodes",
          "Sitemap": {
            "ChangeFreq": "",
            "Priority": -1,
            "Filename": "sitemap.xml",
            "Disable": false
          },
          "Type": "shortcodes",
          "Weight": 0
        },
        "MarkupProvider": 0,
        "ContentProvider": 0
      },
      "params": null,
      "style": "filled",
      "template": "debug",
      "title": "C++"
    }
      </div>
    </div>
    
  • C#

    All Parameter

    {
      "color": "",
      "content": "For guys that need two destructors.",
      "href": "",
      "hrefattributes": {},
      "icon": "",
      "image": null,
      "imageattributes": {},
      "page": {
        "PageWithoutContent": {
          "Date": "0001-01-01T00:00:00Z",
          "Lastmod": "0001-01-01T00:00:00Z",
          "PublishDate": "0001-01-01T00:00:00Z",
          "ExpiryDate": "0001-01-01T00:00:00Z",
          "Aliases": [],
          "BundleType": "branch",
          "Description": "Show rrrambl'n 'n a set o' cards",
          "Draft": false,
          "IsHome": false,
          "Keywords": null,
          "Kind": "section",
          "Layout": "",
          "LinkTitle": "Cards",
          "IsNode": true,
          "IsPage": false,
          "Path": "/shortcodes/cards",
          "Slug": "",
          "Lang": "en",
          "IsSection": true,
          "Section": "shortcodes",
          "Sitemap": {
            "ChangeFreq": "",
            "Priority": -1,
            "Filename": "sitemap.xml",
            "Disable": false
          },
          "Type": "shortcodes",
          "Weight": 0
        },
        "TableOfContentsProvider": {
          "Date": "0001-01-01T00:00:00Z",
          "Lastmod": "0001-01-01T00:00:00Z",
          "PublishDate": "0001-01-01T00:00:00Z",
          "ExpiryDate": "0001-01-01T00:00:00Z",
          "Aliases": [],
          "BundleType": "branch",
          "Description": "Show rrrambl'n 'n a set o' cards",
          "Draft": false,
          "IsHome": false,
          "Keywords": null,
          "Kind": "section",
          "Layout": "",
          "LinkTitle": "Cards",
          "IsNode": true,
          "IsPage": false,
          "Path": "/shortcodes/cards",
          "Slug": "",
          "Lang": "en",
          "IsSection": true,
          "Section": "shortcodes",
          "Sitemap": {
            "ChangeFreq": "",
            "Priority": -1,
            "Filename": "sitemap.xml",
            "Disable": false
          },
          "Type": "shortcodes",
          "Weight": 0
        },
        "MarkupProvider": 0,
        "ContentProvider": 0
      },
      "params": null,
      "style": "filled",
      "template": "debug",
      "title": "C#"
    }
      </div>
    </div>