Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow alias page to be templated #2533

Closed
natefinch opened this issue Oct 7, 2016 · 3 comments
Closed

Allow alias page to be templated #2533

natefinch opened this issue Oct 7, 2016 · 3 comments

Comments

@natefinch
Copy link
Contributor

This is a bug to track work I'm doing to allow the redirect page created for aliases to have templated information in it. This will function similarly to the 404 page template, i.e. one template for the whole site. The template should be given the metadata from the page it is aliasing, so you can customize the redirect per-aliased page.

@bep bep changed the title allow alias page to be templated Allow alias page to be templated Oct 7, 2016
@bep bep added the Enhancement label Oct 7, 2016
@bep bep added this to the v0.18 milestone Oct 7, 2016
@bep
Copy link
Member

bep commented Oct 7, 2016

Note that the template will not always have a Page context (it is used for other redirects as well).

@natefinch
Copy link
Contributor Author

Being worked on in #2576

@bep bep closed this as completed in 10a773c Oct 15, 2016
tychoish pushed a commit to tychoish/hugo that referenced this issue Aug 13, 2017
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 gohugoio#2533
Closes gohugoio#2576
@github-actions
Copy link

github-actions bot commented Apr 1, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants