hugo/output
Bjørn Erik Pedersen 6b76841b05 output: Fix permalink in sitemap etc. when multiple permalinkable output 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 #5910
2019-05-02 14:23:16 +02:00
..
docshelper.go media: Allow multiple file suffixes per media type 2018-07-10 22:13:52 +02:00
layout.go media: Allow multiple file suffixes per media type 2018-07-10 22:13:52 +02:00
layout_base.go output: Fix golint godoc issues 2018-09-07 08:25:51 +02:00
layout_base_test.go output: Fix the shortcodes/partials vs base template detection 2018-07-02 10:34:38 +02:00
layout_test.go media: Allow multiple file suffixes per media type 2018-07-10 22:13:52 +02:00
outputFormat.go output: Fix permalink in sitemap etc. when multiple permalinkable output formats 2019-05-02 14:23:16 +02:00
outputFormat_test.go output: Fix permalink in sitemap etc. when multiple permalinkable output formats 2019-05-02 14:23:16 +02:00