Docs LATEST

Velvet Blocks (.vlt)

Mixed content with block switches.

Content & Data

VelvetCMS supports .vlt files with block switches for mixed content types.


Syntax #

@markdown
# Title

Paragraph with **bold** text.

@html
<div class="custom">Raw HTML</div>

@text
Plain text is escaped automatically.

If no block is defined, Markdown is assumed - which allows easier migration from .md to .vlt.


Supported blocks #

Directive Alias Description
@markdown @md Parsed markdown
@html - Raw HTML (no processing)
@text - Escaped plain text

Frontmatter #

Frontmatter works the same as Markdown files:

---
title: My Page
layout: custom
---

@markdown
# {{ title }}