hugo/hugolib
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
..
filesystems
paths
testdata
testsite
404_test.go
alias.go
alias_test.go
case_insensitive_test.go
collections.go
collections_test.go hugolib: Add some integration tests for in/uniq using Pages 2019-04-19 09:07:21 +02:00
config.go
config_test.go
configdir_test.go
datafiles_test.go
disableKinds_test.go
embedded_shortcodes_test.go
embedded_templates_test.go
fileInfo.go
fileInfo_test.go
gitinfo.go
hugo_sites.go hugolib: Fix panic for unused taxonomy content files 2019-04-15 13:36:05 +02:00
hugo_sites_build.go
hugo_sites_build_errors_test.go
hugo_sites_build_test.go
hugo_sites_multihost_test.go
hugo_sites_rebuild_test.go hugolib: Fix Pages reinitialization on rebuilds 2019-04-17 12:56:46 +02:00
hugo_smoke_test.go
hugo_themes_test.go
language_content_dir_test.go
menu_test.go Fix menu URL when multiple permalinkable output formats 2019-04-19 10:29:52 +02:00
minify_publisher_test.go
multilingual.go
page.go hugolib: Fix bundle resource publishing when multiple output formats 2019-04-15 17:01:39 +02:00
page__common.go hugolib: Fix Pages reinitialization on rebuilds 2019-04-17 12:56:46 +02:00
page__content.go hugolib: Fix shortcode version=1 logic 2019-04-24 15:35:04 +02:00
page__data.go
page__menus.go
page__meta.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
page__new.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
page__output.go
page__paginator.go
page__paths.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
page__per_output.go
page__position.go
page__ref.go
page__tree.go
page_kinds.go
page_permalink_test.go
page_test.go
page_unwrap.go
page_unwrap_test.go
pagebundler.go
pagebundler_capture.go
pagebundler_capture_test.go
pagebundler_handlers.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
pagebundler_test.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
pagecollections.go
pagecollections_test.go
pages_language_merge_test.go
paginator_test.go
permalinker.go
prune_resources.go
resource_chain_test.go
robotstxt_test.go
rss_test.go
shortcode.go hugolib: Fix shortcode version=1 logic 2019-04-24 15:35:04 +02:00
shortcode_page.go
shortcode_test.go hugolib: Fix shortcode version=1 logic 2019-04-24 15:35:04 +02:00
site.go hugolib: Fix PrevInSection/NextInSection for nested sections 2019-05-01 19:34:28 +02:00
site_benchmark_new_test.go hugolib: Avoid recloning of shortcode templates 2019-04-24 12:37:57 +02:00
site_benchmark_test.go
site_output.go
site_output_test.go Fix links for non-HTML output formats 2019-04-20 15:01:20 +02:00
site_render.go output: Fix permalink in sitemap etc. when multiple permalinkable output formats 2019-05-02 14:23:16 +02:00
site_sections.go
site_sections_test.go hugolib: Fix PrevInSection/NextInSection for nested sections 2019-05-01 19:34:28 +02:00
site_stats_test.go
site_test.go
site_url_test.go
siteJSONEncode_test.go
sitemap_test.go output: Fix permalink in sitemap etc. when multiple permalinkable output formats 2019-05-02 14:23:16 +02:00
taxonomy.go hugolib: Fix panic for unused taxonomy content files 2019-04-15 13:36:05 +02:00
taxonomy_test.go hugolib: Fix panic for unused taxonomy content files 2019-04-15 13:36:05 +02:00
template_engines_test.go
template_test.go
testhelpers_test.go hugolib: Avoid recloning of shortcode templates 2019-04-24 12:37:57 +02:00
translations.go