hugo/helpers
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
..
content.go all: Add org-mode support 2017-02-21 08:46:03 +01:00
content_renderer.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
content_renderer_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
content_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
emoji.go helpers: Use iterate operator by int in Emojify 2016-11-23 09:13:00 +01:00
emoji_test.go
general.go Revert "helpers: Add a Debug method to DistinctLogger" 2017-03-19 10:24:12 +01:00
general_test.go all: Add org-mode support 2017-02-21 08:46:03 +01:00
hugo.go helpers: Remove unused arg 2017-03-01 23:49:24 +01:00
hugo_test.go Handle Hugo version strings with patch level 2017-03-01 15:49:07 +01:00
language.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
language_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
path.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
path_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pathspec.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
pathspec_test.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
pygments.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pygments_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
testhelpers_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
url.go hugolib: Refactor/-work the permalink/target path logic 2017-03-27 15:43:56 +02:00
url_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00