Buy me a coffee (opens new window) DE · DeutschDA · Dansk

← Counterglow overview

Wiki links and embeds

Pages that point at each other — and a missing page is an offer, not a dead link.

Wiki links and embeds

Also new in 1.7.0: pages link to each other the way a wiki does. Write [[Page]] in any text field and it becomes a link, looked up by title, slug or path — case and accents folded, so [[größe]] finds “Größe”. A line that starts with ! pulls the other page in instead of linking it.

The whole syntax

[[Fluid type]]
the page with that title
[[notes/speed]]
by path, absolute or relative
[[Speed|how fast?]]
with your own link text
[[Speed#The audit]]
to a heading of that page
![[Speed]]
the page as a card with its excerpt
![[Speed#The audit]]
just that section
![[Speed^rule]]
one paragraph marked with ^rule
![[chart.png]]
a picture of this page
  • Embed a part, not a copy

    ![[Page]] shows a card with title, excerpt and cover, ![[Page#Heading]] exactly that section, ![[Page^note]] a single marked paragraph and ![[photo.jpg]] a picture. Each one keeps a link back to where it came from, headings inside step down a rank, loops stop with a note, and a draft or private page is never embedded for someone who may not see it.

  • Linked from

    $page->backlinks() and the snippet backlinks list the pages that point here. Notes show it by default; Handbook and Inkwell show it everywhere, because a handbook and a magazine live on their cross-references. The list comes from a cached link graph that renews itself from the content’s own timestamps.

  • Completion after [[

    The editor suggests pages while you type — arrow keys, ↵ to take one, Esc to leave it; after # it offers that page’s headings. The split preview renders links and embeds and marks a target that does not exist.

  • Missing pages are an offer

    A target that is not written yet stays visible as marked text instead of becoming a dead link, and the panel offers to create the page — on the page itself and in the overview’s Missing pages list.

  • Renaming takes the links along

    Change a title or a slug and Counterglow asks whether the wiki links that point at the old name should be rewritten. Every page it touches keeps a version in its history, and the old address keeps working either way.

  • In the theme’s own style

    The core styles follow the theme variables, and Handbook, Umbra, Salon, Murmur and Inkwell add their own touch. On a multilingual site every language resolves its own links; links, embeds and backlinks are plain HTML, so the static export carries all three.

A page with three kinds of embed: a marked paragraph, a section of another page as a table, and a page as a card — each with a link back; a link to a page that does not exist yet is marked, and “Linked from” lists who points here.
A page with three kinds of embed: a marked paragraph, a section of another page as a table, and a page as a card — each with a link back; a link to a page that does not exist yet is marked, and “Linked from” lists who points here.
The Wiki links card in the page editor: a small map of the connected pages, who links here, where this page points, and a broken link with a button to create the page.
The Wiki links card in the page editor: a small map of the connected pages, who links here, where this page points, and a broken link with a button to create the page.
Typing [[ in the editor: a list of matching pages with their addresses appears under the text field.
Typing [[ in the editor: a list of matching pages with their addresses appears under the text field.

Free, and it stays that way

Counterglow costs nothing and has no paid edition. If it saves you time, a coffee helps keep it going.

Buy me a coffee ↗ (opens new window)

Read the code, keep the folder.

Questions, ideas or bug reports? Write to me. hello@gerber.media