1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-01 02:27:17 +01:00

Adjusted documentation for redirects

This commit is contained in:
squidfunk 2018-12-28 15:11:54 +01:00
parent 976d67e5f2
commit c3ec0b956e

View File

@ -48,21 +48,6 @@ see on the current page when you scroll to the top. It's as simple as:
``` markdown ``` markdown
hero: Metadata enables hero teaser texts hero: Metadata enables hero teaser texts
``` ```
### Redirects
It's sometimes necessary to move documents around in the navigation tree and
redirect user from the old URL to the new one. The `redirect:` meta-tag allows
to create a redirection from the current document to the address specified in
the tag.
For instance, if your document contains:
``` markdown
redirect: /new/url
```
accessing that document's URL will automatically redirect to `/new/url`.
### Linking sources ### Linking sources
@ -90,6 +75,21 @@ See the [source][2] section for the resulting output.
[2]: #__source [2]: #__source
### Redirecting to another page
It's sometimes necessary to move documents around in the navigation tree and
redirect user from the old URL to the new one. The `redirect` meta-tag allows
to create a redirection from the current document to the address specified in
the tag.
For instance, if your document contains:
``` markdown
redirect: /new/url
```
accessing that document's URL will automatically redirect to `/new/url`.
### Overrides ### Overrides
#### Page title #### Page title