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

output: Fix permalink in sitemap etc. when multiple permalinkable output formats #5919

Merged
merged 1 commit into from May 2, 2019

Conversation

bep
Copy link
Member

@bep bep commented May 2, 2019

In Hugo 0.55.0 we made AMP permalinkable. We also render the output formats in their natural sort order, meaning
AMP will be rendered before HTML. References in the sitemap would then point to the AMP version,
and this is normally not what you'd want.

This commit fixes that by making HTML by default sort before the others. If this is not you want, you can set weight on
the output format configuration.

Fixes #5910

@bep bep force-pushed the sitemap-outputformat branch 3 times, most recently from 0edbf59 to 1a8e170 Compare May 2, 2019 09:58
…put formats

In Hugo 0.55.0 we made AMP `permalinkable`. We also render the output formats in their natural sort order, meaning `AMP` will be rendered before `HTML`. References in the sitemap would then point to the AMP version, and this is normally not what you'd want.

This commit fixes that by making `HTML` by default sort before the others.

If this is not you want, you can set `weight` on the output format configuration.

Fixes gohugoio#5910
@bep bep merged commit 6b76841 into gohugoio:master May 2, 2019
@github-actions
Copy link

This pull request 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 Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permalinkable issue in sitemap.xml
1 participant