Welcome Showcase Blog

Table of Contents

Slate Token Reference

This document provides a comprehensive list of all supported featured and custom tokens available in Slate templates and Markdown content.

Standard Template Variables

Note

All variables below must be wrapped in double curly braces when used in templates, for example: ``.

These variables can be used in your Jinja2 templates (e.g., templates/default.html) or within your Markdown content if enabled.

Content & Metadata

VariableDescription
contentThe rendered HTML content of the page.
titleThe title of the page (from frontmatter or first heading).
descriptionThe page description (from frontmatter).
versionThe current version of Slate being used to build the site.
site_rootThe root URL of the site (useful for absolute linking).

Dates & Times

VariableDescription
creation_dateThe creation date of the file (DD/MM/YYYY).
creation_timeThe creation time of the file (HH:MM).
modify_dateThe last modification date.
modify_timeThe last modification time.
datetimeCombined creation date and time.
VariableDescription
nav_headerHTML links to all collection root pages (for the top navigation).
nav_collectionHTML list of entries for the current collection (shows on collection root pages).
collection_nameThe name of the collection the current page belongs to.
breadcrumbsBreadcrumb navigation HTML.
tocAuto-generated Table of Contents for the current page.
entriesA list of entry objects for the current collection (allows custom iteration in templates).
Note

Some older templates may reference nav_category. This is an alias/legacy name for nav_collection.

Custom Markdown Tokens ([!TOKEN])

Slate supports custom syntax extensions to enhance your Markdown content. These are processed before HTML rendering.

Formatting & Layout

TokenSyntaxDescription
MD-PAGE[!MD-PAGE] [Label](path/to/file.md)Smart link to another Markdown file. Automatically converts .md extension to .html in output.
BUTTON[!BUTTON] [Label](URL)Renders a styled button element linking to the URL.
EXTERNAL[!EXTERNAL] [Label](URL)Renders a link styled as an external resource (often with an icon). Auto-detects protocols like gemini://, gopher://, etc.

Special Features

TokenSyntaxDescription
TIP[!TIP]Renders a "Support" section with donation links defined in your page's frontmatter (under tipping).

Examples

Syntax:

[!MD-PAGE] [Read the Guide](guide.md)

Result: Read the Guide

Action Button

Syntax:

[!BUTTON] [Download Now](https://example.com/download)

Result:

Syntax:

[!EXTERNAL] [Visit GitHub](https://github.com)

Result: Visit GitHub

Tipping Section

(Requires tipping frontmatter) Syntax:

[!TIP]

Result:

Support: ETH: h41l33.uni.eth

Callouts

Syntax:

> [!NOTE]
> This is a note callout.

Result:

Note

This is a note callout.