hugo/hugolib
Bjørn Erik Pedersen 6bf010fed4 hugolib: Refactor/-work the permalink/target path logic
This is a pretty fundamental change in Hugo, but absolutely needed if we should have any hope of getting "multiple outputs" done.

This commit's goal is to say:

* Every file target path is created by `createTargetPath`, i.e. one function for all.
* That function takes every page and site parameter into account, to avoid fragile string parsing to uglify etc. later on.
* The path creation logic has full test coverage.
* All permalinks, paginator URLs etc. are then built on top of that same logic.

Fixes #1252
Fixes #2110
Closes #2374
Fixes #1885
Fixes #3102
Fixes #3179
Fixes #1641
Fixes #1989
2017-03-27 15:43:56 +02:00
..
testdata
alias.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
alias_test.go
author.go
case_insensitive_test.go
config.go hugolib: Default rssLimit to unlimited 2017-03-10 21:27:45 +01:00
config_test.go
datafiles_test.go
disableKinds_test.go
embedded_shortcodes_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
gitinfo.go
handler_base.go hugolib: Clean up redundant frontmatter error logging 2017-03-10 23:22:43 +01:00
handler_file.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
handler_meta.go
handler_page.go
handler_test.go
hugo_info.go
hugo_sites.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
hugo_sites_build.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
hugo_sites_build_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
media.go
menu.go
menu_old_test.go
menu_test.go
multilingual.go
node_as_page_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
page.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
page_collections.go hugolib: Fix reloading corner cases for shortcodes 2017-03-11 20:21:06 +01:00
page_output.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
page_paths.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
page_paths_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
page_permalink_test.go
page_taxonomy_test.go
page_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
page_time_integration_test.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go
pageSort.go
pageSort_test.go
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
pagination_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
path_separators_test.go hugolib, output: Incorporate suffix and type in layout resolve 2017-03-27 15:43:56 +02:00
permalinks.go
permalinks_test.go
robotstxt_test.go
rss_test.go
scratch.go
scratch_test.go
shortcode.go hugolib: Fix reloading corner cases for shortcodes 2017-03-11 20:21:06 +01:00
shortcode_test.go hugolib, output: Add theme logic to LayoutHandler 2017-03-27 15:43:56 +02:00
shortcodeparser.go
shortcodeparser_test.go
site.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
site_output.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
site_output_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
site_render.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
site_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
site_url_test.go
site_writer.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
site_writer_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
taxonomy.go
taxonomy_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
template_engines_test.go
template_test.go hugolib: Add section template baseof test case 2017-03-02 13:52:08 +01:00
testhelpers_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
translations.go hugolib: Remove unnecessary params 2017-03-08 12:28:56 +01:00