Card
Use th' card shortcode t' display rrrambl'n 'n a nice card.
-
Awesome AI accelerated code
Usage
If ye want t' show a set o' cards grouped together ye can wrap yer cards into th' cards shortcode.
Parameter
| Name | Default | Notes |
|---|---|---|
| href | <empty> | Either th' destinat'n URL fer th' card or JavaScript code t' be executed on click. If this parameter be set, th' card will hover on mouse over. - if start'n wit' javascript: all follow'n text will be executed 'n yer browser- every other str'n will be interpreted as URL, ye can use link effects as well. |
| image | <empty> | URL t' an image t' be displayed at th' start o' th' card. |
| title | <empty> | Arbitrary title fer th' card. |
| template | default |
Th' template t' be used t' display th' card. - default: Th' standard layout- debug: A debug layout help'n ye 'n developmentSee below how t' use yer own templates. |
| params | <empty> | Arbitrary additional parameter fer yer template as str'n (JSON, TOML, YAML) or 'n a dict.See example below. |
| <content> | <empty> | Arbitrary text t' be displayed on th' card. |
Card Templates
If ye have advanced requirements t' display yer cards, ye can place a card layout partial into layouts/partials/card that will be used fer each single card.
For example, if ye want t' see debug output display'n th' parameter th' partial receives, ye could set template=debug which will cause th' partial layouts/partials/debug.html t' be called. Th' debug card template be shipped wit' th' theme.
A card template will be called wit' all th' above parameter. href an' image be transformed into a form ready t' be consumed.
Examples
A Bit o' Everyth'n
-
Image, title an' a text
Just Text
Because th' text contains source code wit' th' copy-to-clipboard button, ye be not allowed t' use th' href parameter or yer layout may get messed up.
-
reallylongwordthatdoesnotwraparoundandbehaveslikeaprick
An' a bullet list
- blue
- red
- yellow
- marshmallow
- cardboard box
- sandals
- kumi ichi
- random stuff
- just made up
- i guess i reached th' end
- really?
- ye can stop now
Image Only
If only an image be displayed, th' full card will be used.
Debug Card Template wit' Arbitrary Parameter
Show all parameter fer th' card template wit' th' custom debug card template.
Adds additional params fer th' template.
-
All Parameter