---
title: Frontmatter
order: 2
description: 'Set a note title, dates, tags, links, and publishing rules in its header.'
---

# Frontmatter

Put YAML between `---` lines at the top of a note. Svartz also reads TOML between `+++` lines.

```yaml
title: Wiring the sensor
description: Connect the sensor to a power supply and read its first measurement.
tags: [hardware, sensors]
aliases: [Sensor setup]
created_at: 2026-04-01
```

| Field | Use |
| --- | --- |
| `title` | Page title. Defaults to the filename, or the folder name for a folder note. |
| `description` | Summary in metadata and listings. |
| `tags` | List of strings for tag listings and search. |
| `created_at`, `updated_at` | Note dates. See [Feeds, sitemaps, and llms.txt](https://svartz.dev/writing/discovery.md). |
| `published_at` | Publication override and feed date. It does not schedule publication. |
| `draft`, `private` | Boolean [publication switches](https://svartz.dev/writing/publication.md). |
| `slug` | Final segment of the canonical URL. |
| `aliases`, `alias`, `permalink` | Alternate names or URLs. See [Links and routes](https://svartz.dev/writing/links-and-routes.md). |
| `socialImage`, `image`, `cover` | Preview image fields, in priority order. |
| `password_group`, `hide_locked` | [Encrypted notes](https://svartz.dev/writing/encrypted-notes.md) settings. |
| `theme` | [Theme selection](https://svartz.dev/themes/choosing-and-composing.md) for this note or folder. |
| `toc: false`, `enableToc: false` | Hide the table of contents on this note. |
| `comments: false` | Hide Giscus for this note when the vault enables it. |
| `versions: true` | Opt a note into [Git post versions](https://svartz.dev/writing/post-versions.md). |

Rename the standard title, description, tags, aliases, and date keys with [vault frontmatter settings](https://svartz.dev/reference/configuration.md). Themes can read their own fields. Check the [theme reference](https://svartz.dev/themes.md) before adding those fields.
