links
On this page
Links
The links hook converts local content references into the destination Page or Section's output path. It is enabled by default, so you can refer to source files without knowing their custom output paths.
[Next article](./another.org) [Project documentation](@/docs/project.md)
Targets are looked up in the current language.
Supported Links
| Link | Meaning |
|---|---|
./another.md |
Relative to the current content file |
../intro.md |
Relative to its parent directory |
@/docs/index.md |
Relative to the content/ root |
./another.md#title |
Preserves the fragment |
./another.md?from=home |
Preserves the query string |
The following remain unchanged:
- Site-absolute paths starting with
/. - URLs with a scheme, including
http://,https://,mailto:, andtel:. - Images, attachments, static files, and other non-content references.
If no target is found, Snow logs a warning and leaves the link unchanged.