website-next/content/blogs/2026-05-09-linking-between-posts.md
This post exists to demonstrate how blog cross-references work in our docs system. The links below are written as plain relative markdown paths — they remain clickable on GitHub or in any raw markdown viewer, and the build-time remark plugin rewrites them to the canonical /blogs/YYYY/MM/DD/slug URLs when the page is rendered.
Both this post and the target are loose files at the root of blogs/, so the relative path is simply the target's filename:
When the target post lives in its own folder (so it can colocate images), the path goes through the folder name:
Append #heading-id to a relative reference to deep-link into a section:
The plugin keeps the hash fragment intact while rewriting the file part to the canonical URL.
For each .md/.mdx link the rewrite plugin:
docs/ or blogs/./docs/... for docs, /blogs/YYYY/MM/DD/slug for blogs).The result: GitHub-readable source, validated cross-links, and consistent canonical URLs without any manual maintenance.