# Update

> Write a changelog, a "What's new" page or weekly notes as ordinary headings marked `{.update}`, with an optional date and tags under each entry.

---

LLMS index: [llms.txt](/llms.txt)

---

An update is a changelog entry written as an ordinary Markdown heading with
`{.update}` at the end. Each entry gets extra space and a separator rule above
it, which gives a long stream of entries its rhythm, and optional `date` and
`tags` attributes add a metadata line under the heading. Use updates for a
one-page changelog, a "What's new" page, weekly notes or a log of policy
changes.

Because the entry is still a heading, it keeps everything a heading has: its
table-of-contents entry, anchor, search section and print ID. No script loads.
When each version needs a page of its own, use [release pages](#which)
instead.

## Shortest form {#minimal}

Put `{.update}` at the end of the heading, with `date` and `tags` inside the
same braces. Write an explicit `#id` first for version entries: Goldmark strips
dots when building an anchor from heading text (`v1.6.0 — …` becomes
`#v160--…`, and `v1.10` collides with `v11.0`), while `{#v1-6-0 .update …}`
keeps a clean, stable link even if the title changes.

```markdown {title="Source"}
### v1.6.0 — PostgreSQL 18 by default {#v1-6-0 .update date="2026-11-23" tags="Breaking, Performance"}

New clusters get PostgreSQL 18, with asynchronous I/O turned on.
```

### v1.6.0 — PostgreSQL 18 by default {#v1-6-0 .update date="2026-11-23" tags="Breaking, Performance"}

New clusters get PostgreSQL 18, with asynchronous I/O turned on.

A changelog page usually writes each entry as `##`. The examples here use
`###` so that they nest under this page's own sections in the table of
contents.

## Date {#date}

`date` takes a year, a month or a day (`YYYY`, `YYYY-MM` or `YYYY-MM-DD`). It
renders as `<time datetime="…">` and shows exactly as written, so `2026-11`
stays `2026-11`.

```markdown
## 2026 in review {.update date="2026"}
## November notes {.update date="2026-11"}
## v1.6.0 {.update date="2026-11-23"}
```

Any other value — including an impossible calendar date such as `2026-02-30` or
`2025-02-29`, a timestamp with a time or time zone, or an unquoted number such
as `date=2026` — warns, naming the heading and the page. The date is dropped
while the heading, any valid `tags` and the rest of the entry stay. Leap days
such as `2024-02-29` pass.

An unquoted full date such as `{.update date=2026-11-01}` goes further wrong:
Goldmark cannot parse it, drops the whole attribute block and leaves it in the
heading text. The build warns whenever a heading ends in an unparsed `{…}`
block containing `.update`, with or without a leading `#id`, as in
`{.update date=2026-11-01}` or `{#v1-6-0 .update date=2026-11-01}`. Quote
every value.

## Tags {#tags}

`tags` is a comma-separated string of plain text (both `,` and full-width `，`
separate items). Each item is trimmed and empty items are skipped, so
`tags=" Fix ,, Docs "` gives two chips, Fix and Docs. A non-string value such
as `tags=true` warns and is dropped. Every chip looks the same whatever it
says, in a color set by the preset, and Markdown inside a tag shows literally.

These are not Hugo taxonomy tags: they create no term pages and link nowhere.
The theme does not translate them, so write them in the page's language.

## Entries without metadata {#no-metadata}

Both attributes are optional. `## Unreleased {.update}` is a valid entry with
the entry spacing and separator rule but no metadata line, and the line is
also left out when there is no date and `tags` holds only commas and spaces.

The text under an entry is ordinary Markdown, and lower headings inside an
entry are ordinary headings that nest under it in the TOC without a marker.

## Still a heading {#heading}

The marker changes nothing a heading already does:

- The TOC shows the heading text only, without the date or tags.
- The anchor and the self-link that appears on hover work as usual.
- [Keyboard navigation](/docs/customize/keyboard/#reading) stops at each entry with <kbd>J</kbd> and <kbd>K</kbd>.
- Local search indexes the entry as a section titled with the heading text; when `offline_search_index` is `content` (the theme default), the date and tags are indexed as separated tokens inside that section's text.
- Multi-page Print namespaces the heading ID as it does for any heading.

The metadata line follows the heading rather than sitting inside it, so the
heading text, its accessible name and its search title stay exactly as
written. Without an explicit `#id` the anchor comes from the heading text (dots
removed and titles turned into long slugs), and renaming the entry changes its
link, so give an `#id` to every version entry and any entry that other pages
link to.

## A changelog on one page {#demo}

A stream of entries, newest first. The three entries and the subsection below
appear in the table of contents under this section.

```markdown {title="Source"}
### Unreleased {#demo-unreleased .update}

One command sets up logical replication between two clusters.

### v1.6.0 {#demo-v1-6-0 .update date="2026-11-23" tags="Breaking"}

PostgreSQL 18 is the default version for new clusters.

#### Upgrade notes {#demo-v1-6-0-upgrade}

- Set `pg_version: 17` in the inventory to keep creating PostgreSQL 17 clusters.
- Rename `pg_backup_dir` to `backup_dir`.

### v1.5.1 {#demo-v1-5-1 .update date="2026-11" tags="Changed, Fixed"}

Failover no longer times out on clusters with more than three replicas.
```

### Unreleased {#demo-unreleased .update}

One command sets up logical replication between two clusters.

### v1.6.0 {#demo-v1-6-0 .update date="2026-11-23" tags="Breaking"}

PostgreSQL 18 is the default version for new clusters.

#### Upgrade notes {#demo-v1-6-0-upgrade}

- Set `pg_version: 17` in the inventory to keep creating PostgreSQL 17 clusters.
- Rename `pg_backup_dir` to `backup_dir`.

### v1.5.1 {#demo-v1-5-1 .update date="2026-11" tags="Changed, Fixed"}

Failover no longer times out on clusters with more than three replicas.

## Update or release pages {#which}

| Need | Use |
| --- | --- |
| One readable stream of entries on one page | `.update` headings |
| One page per version, with its own URL, feed item, release assets or GitHub release | [release pages](/docs/write/releases/#release-index) collected by `layout: releases` |
| A short dated sequence inside other prose | [Timeline](/docs/components/timeline/) |

Choose one model as the source of truth for a product's release notes — either
a single `.update` changelog page or per-version release pages collected by
`layout: releases` — rather than maintaining the same version in both places.
If a separate "What's new" page highlights a milestone that already has a
release page, link to that release page instead of repeating its notes.

## Output {#outputs}

Updates load no JavaScript. In HTML the heading gets `class="update"` and is
followed by `<div class="td-update-meta">`, which holds the `<time datetime>`
and one `<span class="td-update-tag">` per tag. A comma that takes no space on
screen sits between the items, so copied text, local search and feed readers
get `2026-11-23, Breaking, Performance` instead of
`2026-11-23BreakingPerformance`. Print uses the light paper colors in either
color mode and keeps each heading on the same page as its metadata line.
Markdown and LLMS output keep the heading line with its attribute block (raw
Markdown viewers such as GitHub show `{…}` literally), and the page stays one
page with one URL, so entries never become separate feed items.

## Parameter reference {#reference}

The attribute block at the end of the heading:

| Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| `.update` | marker | — | Makes the heading an entry; any level, usually `##` |
| `date` | string (`YYYY`, `YYYY-MM` or valid calendar `YYYY-MM-DD`) | — | Rendered as `<time datetime>` and shown as written; non-strings and invalid dates warn and are dropped |
| `tags` | string (`,` or `，` separated plain text) | — | One neutral chip per non-empty item, trimmed; non-strings warn and are dropped |
| `id` | anchor | from the heading text | Recommended for version entries, written first: `{#v1-6-0 .update …}` |
{.fields meta="type default"}

`date` and `tags` work only together with `.update`; on any other heading they
warn as unknown attributes and are dropped.

## Limits {#limits}

- There is no sticky label rail or two-column layout; the table of contents
  already tracks the entries.
- Entries get no URLs or feed items of their own. Use
  [release pages](/docs/write/releases/) when each version needs one.
- The TOC shows the heading text only, so put the date in the heading text
  when readers should see it there.
- Tags are not translated, colored or linked.
- Entries appear in source order, with no sorting, filtering or generation
  from data.

## Related {#related}

- [Timeline](/docs/components/timeline/) — a short dated sequence inside prose
- [Releases and downloads](/docs/write/releases/) — one page per version, release cards and assets
- [Keyboard navigation](/docs/customize/keyboard/) — jumping between entries as between headings

---

Backlinks:

- [Timeline](/docs/components/timeline/)
- [Print](/docs/customize/print/)
- [Update component](/docs/design/proposals/component-update/)
- [Writing pages](/docs/write/pages/)
- [OINK v1.7.0](/release/1.7.0/)
