mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-05-30 05:24:08 +00:00
docs: #850
This commit is contained in:
parent
d11139ac93
commit
08d2484fa5
2 changed files with 15 additions and 1 deletions
docs/content/authoring/linking
|
@ -4,3 +4,17 @@ description = "How to link to pages and resources"
|
|||
title = "Pages & Resources"
|
||||
weight = 1
|
||||
+++
|
||||
|
||||
## Standard Links
|
||||
|
||||
The usual way to link to a page or a resource is to use a Markdown link in the form of `[some page](a-page)` or ``.
|
||||
|
||||
Images are searched in the resources of the current page and your global `assets` directory.
|
||||
|
||||
## Links to Other Page Translations
|
||||
|
||||
By giving the query parameter `lang`, containing the language code, you can link to pages of other translations of your site, e.g. `[some translated page](my-page?lang=pir)`.
|
||||
|
||||
## Links to Other Page Output Formats
|
||||
|
||||
You can link to different output formats of a page by adding the query parameter `format`. For example to link to the print format of a page, write `[a printable page](my-page?format=print)`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue