mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 18:04:29 +00:00
b59dd163ec
* Add link to https://travis-ci.org/spf13/hugo * Correct heading levels in docs/content/community/mailing-list.md * Mention RFC 3339 as the `date` format set by `hugo new` * Mention that `hugo new` does not add `draft = true` when the user provides an archetype * List short examples of TOML and YAML side by side * Compact the Math template functions into a table * Put some notes into a blockquote
1.1 KiB
1.1 KiB
aliases | date | menu | next | prev | title | weight | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
2013-07-09 |
|
/extras/builders | /taxonomies/ordering | Aliases | 10 |
For people migrating existing published content to Hugo, there's a good chance you need a mechanism to handle redirecting old URLs.
Luckily, this can be handled easily with aliases in Hugo.
Example
content/posts/my-awesome-blog-post.md
TOML | YAML |
---|---|
|
|
Now when you go to any of the aliases locations, they will redirect to the page.
Important Behaviors
-
Hugo makes no assumptions about aliases. They also don't change based on your UglyUrls setting. You need to provide absolute path to your webroot and the complete filename or directory.
-
Aliases are rendered prior to any content and will be overwritten by any content with the same location.