summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo_sites_build_test.go
AgeCommit message (Collapse)Author
2017-07-04output: Support templates per site/languageBjørn Erik Pedersen
This applies to both regular templates and shortcodes. So, if the site language is French and the output format is AMP, this is the (start) of the lookup order for the home page: 1. index.fr.amp.html 2. index.amp.html 3. index.fr.html 4. index.html 5. ... Fixes #3360
2017-06-26Support open "current content page" in browserBjørn Erik Pedersen
This commit adds a new `--navigateToChanged` and config setting with the same name, that, when running the Hugo server with live reload enabled, will navigate to the current content file's URL on save. This is really useful for site-wide content changes (copyedits etc.). Fixes #3643
2017-06-13hugolib: Disable shaky leaktest on CIBjørn Erik Pedersen
2017-06-13Run gofmt to get imports in line vs gohugoio/hugoBjørn Erik Pedersen
2017-06-13all: Update import paths to gohugoio/hugoBjørn Erik Pedersen
2017-06-02hugolib: Bump leaktest timeout to 30 secondsBjørn Erik Pedersen
To try to make it less flaky.
2017-05-31hugolib: Increase leaktest timeoutBjørn Erik Pedersen
To try to less flaky test.
2017-05-30hugolib: Adjust timeout for leaktestBjørn Erik Pedersen
2017-05-23hugolib: Enable leaktestBjørn Erik Pedersen
See #3082
2017-04-02hugolib, i18n: Update tests with flat format and TOML filesAlbert Nigmatzianov
2017-03-27Remove the now superflous defaultExtensionBjørn Erik Pedersen
And some other unsed fields and methods.
2017-03-27hugolib, tplimpl: Use OutputFormats to create atom linksBjørn Erik Pedersen
2017-03-27hugolib, output: Fix RSSLink vs output formatsBjørn Erik Pedersen
And remove the now superflous setPageURLs method.
2017-03-27hugolib: Refactor/-work the permalink/target path logicBjørn Erik Pedersen
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-27Implement the first generic JSON output testcaseBjørn Erik Pedersen
2017-03-01hugolib: Only return RSSLink when RSS is availableBjørn Erik Pedersen
Fixes #1302
2017-02-28hugolib: Only consider regular pages in Prev/NextBjørn Erik Pedersen
Fixes #3108
2017-02-22hugolib: Temporarily disable leaktestBjørn Erik Pedersen
See #3082
2017-02-20hugolib: Finish menu vs section content pagesBjørn Erik Pedersen
This commit also fixes the default menu sort when the weight is 0. Closes #2974
2017-02-18hugolib: Add disableKinds optionBjørn Erik Pedersen
Fixes #2534
2017-02-18hugolib: More test helper cleanupBjørn Erik Pedersen
2017-02-17hugolib: Test helper cleanupBjørn Erik Pedersen
2017-02-17hugolib: Add test case for empty Pages in regular pagesBjørn Erik Pedersen
Fixes #2947
2017-02-17all: Refactor to nonglobal Viper, i18n etc.Bjørn Erik Pedersen
This is a final rewrite that removes all the global state in Hugo, which also enables the use if `t.Parallel` in tests. Updates #2701 Fixes #3016
2017-02-04all: Refactor to nonglobal file systemsBjørn Erik Pedersen
Updates #2701 Fixes #2951
2017-01-08hugolib: Avoid double-encoding of paginator URLsBjørn Erik Pedersen
Fixes #2177
2017-01-07all: Refactor to non-global loggerBjørn Erik Pedersen
Note that this looks like overkill for just the logger, and that is correct, but this will make sense once we start with the template handling etc. Updates #2701
2016-12-27hugolib: Fix IsTranslated for "old" node typesBjørn Erik Pedersen
The new logic for creating Page objects from old node types didn't include itself in the translation logic, so `IsTranslated` returned falsely false for sites with only two languages. The `AllTranslations` method also returned too few pages in that case. This commit fixes that. Fixes #2812
2016-12-21hugolib: Add a test assertion for IsTranslatedBjørn Erik Pedersen
See #2812
2016-12-01hugolib: Make RawContent raw againBjørn Erik Pedersen
This was a regression introduced in Hugo 0.17. Fixes #2601
2016-11-22node to page: Handle URLsBjørn Erik Pedersen
This includes removing the error return value from Permalink and RelPermalink. We ignore that error all over the place, so we might as well remove it. Updates #2297
2016-11-22node to page: Remove NodeBjørn Erik Pedersen
And misc. TODO-fixes Updates #2297
2016-11-22node to page: Rename PageType to KindBjørn Erik Pedersen
And embed that on Page. Updates #2297
2016-11-22node to page: Handle Date and LastmodBjørn Erik Pedersen
Updates #2297