Graphic cards

Last modified: 2026-11-18 21:07by Erik Hagen ID: 5ca83efe-276a-4600-bd19-a2ff92deae32 SAMT-X/solution-samt-bu-docs

Graphic cards show a few options or parts side by side, with an icon, a short text and a link. Cards are a good fit when a page should guide the reader on to two to six subpages. For comparing many properties, a table is still better.

Example in use: About Simpl, with the three parts of the programme.

What it looks like

First option

A short text about the option, preferably one or two sentences.

StatusOptional status line.

Second option

A card without a link and without a status line.

How to write it

Cards are written in the page’s Markdown file, either in the built-in editor, with «Edit in GitHub» (see Editing on GitHub) or in a local setup.

{{< kortrad >}}
{{< kort tittel="Simpl-Labs" ikon="flask" lenke="simpl-labs/" status="Being built." >}}
A sandbox for trying out a data space.
{{< /kort >}}
{{< kort tittel="Simpl-Live" ikon="rocket" lenke="simpl-live/" >}}
Support for selected European data spaces.
{{< /kort >}}
{{< /kortrad >}}
  • kortrad (card row) groups the cards. They sit side by side on wide screens and stack on mobile.
  • kort (card) is a single card. The text between the start and end tags is ordinary Markdown.

The field names are Norwegian, as in the example above.

FieldRequiredWhat it does
tittel (title)yesThe heading of the card. The build stops if it is missing
ikon (icon)noThe name of an icon from Font Awesome 4.7, with or without «fa-», for example flask, code, rocket, users, book
lenke (link)noThe address the card points to. Relative (simpl-labs/) for a subpage, or a full address. The whole card becomes clickable
statusnoA short status line at the bottom of the card
etikett (label)noThe text above the status line. The default is «Status». Use for example «Status November 2026» when the information depends on time

The cards use the site’s own colours and icons, also when they describe a programme or an organisation with its own brand.

Editing in the browser

In the built-in editor, the cards are shown as a grey code block containing the text above. You can change the text in the block, and the block is saved as it stands. The same applies to other shortcodes on a line of their own, such as the figures on the «Tasks and progress» pages.

Shortcodes in the middle of a line of text are not protected and may be broken if you save the page in the browser. Put them on a line of their own, or edit the page with «Edit in GitHub».