Columns
The Column component creates side-by-side equal-width columns using the||| fence syntax. Each column requires a title.
A title is required for each column. Separate the title from
||| with one space: ||| Column 1.Code column
When a column contains only a fenced code block, it renders as a special code column layout. This is useful for side-by-side source/demo examples.Custom column titles
Column titles support Markdown formatting, including emoji shortcodes and Octicons.Tabs
The Tab component groups content into a tabbed interface using the+++ fence syntax.
The tab title must be separated from
+++ by one space. +++ Tab 1 works; +++Tab 1 does not.Anchors
Each tab generates an anchor. You can link directly to a tab by passing the anchor in the URL, and the page will scroll to and activate that tab on load.Custom attributes
Apply a customid or CSS class to a tab using the {#id .class} syntax.
[Go to getting started](#getting-started)
Panels
The Panel component creates collapsible accordion sections using the=== fence syntax.
The title must be separated from
=== by one space. === My Panel works; ===My Panel does not.Collapsed panels
Use==- to render a panel in its collapsed state by default.
==- — both opening-only and both-side ==- configurations work.
Stacking panels
Stack multiple panels by repeating the panel syntax. Individual panels in a stack can have different expanded/collapsed states.Accordion
A stack of collapsed panels forms an accordion — useful for FAQs or progressive disclosure.Inner content
Panels can contain any Markdown content or other Retype components, including code blocks and tables.Custom attributes
Apply a customid or CSS class using the {#id .class} syntax.
[Go to features](#features-panel)
Card
The Card component renders a linked preview for another page or external URL. For local pages, Retype automatically resolves the title, description, image, and other metadata.Layouts
Cards support three layout modes:| Layout | Description |
|---|---|
| Horizontal (default) | Image beside content. Best for a single prominent card. |
Vertical (vert) | Image above content. Consecutive vertical cards form a responsive group. |
| Compact | Small inline card. Does not render image, kicker, or footer. |
Property overrides
Any combination of card fields can be overridden. Unoverridden fields fall back to page metadata.| Property | Description |
|---|---|
layout | vert, vertical, or compact. Default is horizontal. |
title | Overrides the card title. |
text | Overrides the description. |
icon | Overrides the icon (compact cards only). |
image | Overrides the image (horizontal and vertical only). |
kicker | Overrides the kicker above the title. |
footer | Overrides the footer below the content. |
List pair cards
Create compact cards from a Markdown list of wikilinks with nested description items.Container
The Container component wraps any content in a<div> element, enabling custom CSS styling.
Custom CSS class
Append a class name directly to the opening::: to apply it to the container.
content-center and text-center. You can also define your own classes.
Defining custom styles
Add an inline<style> block on the page, or place global styles in /_includes/head.html.
/_includes/head.html or a linked .css file referenced from that file.
Custom attributes
Apply a customid or CSS class using the {#id .class} syntax.
