Implement support for alias templates
authorNate Finch <nate.finch@gmail.com>
Sat, 15 Oct 2016 11:35:32 +0000 (07:35 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 15 Oct 2016 13:25:05 +0000 (15:25 +0200)
commit10a773cde7a7d5860512917ae2aa14b683318000
tree2210c46781c6040a8fdc2783eda7b9957f53e167
parent8b43d39ef312e5b9e3549aa8fa75a1464a467ae8
Implement support for alias templates

This change adds a canonical alias.html template that is used for page
redirects, and passes the page as data to the template under .Page

Fixes #2533
Closes #2576
docs/content/extras/aliases.md
docs/content/templates/overview.md
hugolib/alias_test.go [new file with mode: 0644]
hugolib/site.go
target/htmlredirect.go