Niklas Fasching [Sat, 24 Aug 2019 10:20:40 +0000 (12:20 +0200)]
deps: Update go-org (fix footnotes in headlines)
Christian Oliff [Fri, 23 Aug 2019 15:21:37 +0000 (00:21 +0900)]
Discrepancy typo fix
Bjørn Erik Pedersen [Fri, 23 Aug 2019 05:37:56 +0000 (07:37 +0200)]
source: Remove debug check left during development
Fixes #6249
Vazrupe (HyeonGyu Lee) [Mon, 19 Aug 2019 14:26:53 +0000 (23:26 +0900)]
hugolib: Change to output non-panic error message if missing shortcode template
A panic occurred when the `nested` variable was nil.
Changed to check if the `nested` variable is nil.
Fixes #6075
hugoreleaser [Sat, 17 Aug 2019 17:59:28 +0000 (17:59 +0000)]
releaser: Prepare repository for 0.58.0-DEV
[ci skip]
hugoreleaser [Sat, 17 Aug 2019 17:51:54 +0000 (17:51 +0000)]
releaser: Add release notes to /docs for release of 0.57.2
[ci skip]
hugoreleaser [Sat, 17 Aug 2019 17:51:54 +0000 (17:51 +0000)]
releaser: Bump versions for release of 0.57.2
[ci skip]
hugoreleaser [Sat, 17 Aug 2019 17:51:54 +0000 (17:51 +0000)]
releaser: Add release notes for 0.57.2
[ci skip]
Bjørn Erik Pedersen [Sat, 17 Aug 2019 17:38:12 +0000 (19:38 +0200)]
Revert "Update to Go 1.11.13 and 1.12.9"
This reverts commit
f28efd35820dc4909832c14dfd8ea6812ecead31.
Bjørn Erik Pedersen [Sat, 17 Aug 2019 17:37:14 +0000 (19:37 +0200)]
tpl: Use RegularPages for RSS template
This is in line with how it was in Hugo 0.56.
See #6238
Bjørn Erik Pedersen [Sat, 17 Aug 2019 15:13:33 +0000 (17:13 +0200)]
hugolib: Don't use the global warning logger
See #6238
Bjørn Erik Pedersen [Sat, 17 Aug 2019 15:11:41 +0000 (17:11 +0200)]
tpl: Avoid "home page warning" in RSS template
See #6238
Bjørn Erik Pedersen [Sat, 17 Aug 2019 14:22:24 +0000 (16:22 +0200)]
hugolib: Allow index.md inside bundles
Fixes #6208
Bjørn Erik Pedersen [Sat, 17 Aug 2019 11:08:03 +0000 (13:08 +0200)]
Adjust the default paginator for sections
To make it in line with 0.56 for sections; only paginate regular pages.
Fixes #6231
Bjørn Erik Pedersen [Sat, 17 Aug 2019 10:59:41 +0000 (12:59 +0200)]
Revert the 0.57 home.Pages change
In 0.57 we change the behaviour of home.Pages to be in line with the other sections. This has created a lot noise and breakage in the wild.
This commit reverts that change, but adds a warning that we will change this in 0.58 and that you should consider using .Site.RegularPages if that is what you want.
Bjørn Erik Pedersen [Fri, 16 Aug 2019 14:21:03 +0000 (16:21 +0200)]
hugolib: Add a site benchmark
Bjørn Erik Pedersen [Fri, 16 Aug 2019 08:46:34 +0000 (10:46 +0200)]
Update to Go 1.11.13 and 1.12.9
Fixes #6228
hugoreleaser [Thu, 15 Aug 2019 19:00:12 +0000 (19:00 +0000)]
releaser: Prepare repository for 0.58.0-DEV
[ci skip]
hugoreleaser [Thu, 15 Aug 2019 18:52:49 +0000 (18:52 +0000)]
releaser: Add release notes to /docs for release of 0.57.1
[ci skip]
hugoreleaser [Thu, 15 Aug 2019 18:52:49 +0000 (18:52 +0000)]
releaser: Bump versions for release of 0.57.1
[ci skip]
hugoreleaser [Thu, 15 Aug 2019 18:52:49 +0000 (18:52 +0000)]
releaser: Add release notes for 0.57.1
[ci skip]
Bjørn Erik Pedersen [Thu, 15 Aug 2019 16:25:21 +0000 (18:25 +0200)]
hugolib: Fix draft etc. handling of _index.md pages
We will need to revisit this with a proper spec, but this commit makes sure that draft/expiryDate etc. set in front matter on _index.md content files that should disable the page will:
* Not crash
* Make the rendered page not render any `.Content`.
Fixes #6222
Fixes #6210
Bjørn Erik Pedersen [Thu, 15 Aug 2019 10:11:49 +0000 (12:11 +0200)]
Fix mainSections logic
Fixes #6217
Bjørn Erik Pedersen [Thu, 15 Aug 2019 14:44:44 +0000 (16:44 +0200)]
Fix live reload mount logic with sub paths
Fixes #6209
Bjørn Erik Pedersen [Thu, 15 Aug 2019 14:50:02 +0000 (16:50 +0200)]
modules: Disable "auto tidy" for now
See #6115
Bjørn Erik Pedersen [Thu, 15 Aug 2019 08:56:49 +0000 (10:56 +0200)]
hugolib: Recover and log panics in content init
See #6210
Bjørn Erik Pedersen [Thu, 15 Aug 2019 08:30:37 +0000 (10:30 +0200)]
hugolib: Add some outputs tests
See #6210
Bjørn Erik Pedersen [Thu, 15 Aug 2019 07:47:25 +0000 (09:47 +0200)]
hugolib: Fix taxonomies vs expired
In Hugo 0.57 we needed to delay the page metadata initialization until we had built the page graph.
This introduced a regression in that we now created taxonomy entries for expired pages.
This fixes that by moving the "should not build" filter before we assemble the taxonomies.
Fixes #6213
HyeonGyu Lee [Thu, 15 Aug 2019 07:33:47 +0000 (16:33 +0900)]
commands: Make sure the hugo field is always initialized before it's used
Wrap the field to make it accessible after initialization.
Fixes #6193
hugoreleaser [Wed, 14 Aug 2019 08:13:53 +0000 (08:13 +0000)]
releaser: Prepare repository for 0.58.0-DEV
[ci skip]
hugoreleaser [Wed, 14 Aug 2019 08:05:33 +0000 (08:05 +0000)]
releaser: Add release notes to /docs for release of 0.57.0
[ci skip]
hugoreleaser [Wed, 14 Aug 2019 08:05:33 +0000 (08:05 +0000)]
releaser: Bump versions for release of 0.57.0
[ci skip]
hugoreleaser [Wed, 14 Aug 2019 06:47:27 +0000 (06:47 +0000)]
Add release notes for 0.57.0
Bjørn Erik Pedersen [Wed, 14 Aug 2019 06:11:39 +0000 (08:11 +0200)]
hugolib: Remove temporary warning
Bjørn Erik Pedersen [Tue, 13 Aug 2019 16:45:08 +0000 (18:45 +0200)]
Add FileInfo to resources created with resources.Match etc.
Without it, image resize fails.
See #6190
Bjørn Erik Pedersen [Tue, 13 Aug 2019 10:35:04 +0000 (12:35 +0200)]
Improve the server assets cache invalidation logic
Fixes #6199
Bjørn Erik Pedersen [Tue, 13 Aug 2019 15:15:52 +0000 (17:15 +0200)]
modules: Do not fail build on errors in theme.toml
Fixes #6162
Bjørn Erik Pedersen [Mon, 12 Aug 2019 14:43:37 +0000 (16:43 +0200)]
Add resources.Match and resources.GetMatch
Fix #6190
Bjørn Erik Pedersen [Tue, 13 Aug 2019 09:17:19 +0000 (11:17 +0200)]
commands: Fix faulty -h logic in hugo mod get
Fixes #6197
Bjørn Erik Pedersen [Sat, 10 Aug 2019 19:05:17 +0000 (21:05 +0200)]
tests: Convert from testify to quicktest
Christian Muehlhaeuser [Fri, 2 Aug 2019 15:32:23 +0000 (15:32 +0000)]
Avoid unnecessary conversions
No need to convert these types.
Christian Muehlhaeuser [Fri, 2 Aug 2019 15:28:43 +0000 (15:28 +0000)]
Fixed ineffectual assignments
Dropped/fixed ineffectual assignments after static code analysis.
Christian Muehlhaeuser [Fri, 2 Aug 2019 14:37:28 +0000 (14:37 +0000)]
Simplify code
- Use bytes.Equal instead of bytes.Compare
- Omit range's value where it's unused
Bjørn Erik Pedersen [Fri, 9 Aug 2019 08:05:22 +0000 (10:05 +0200)]
Implement cascading front matter
Fixes #6041
Christian Muehlhaeuser [Fri, 2 Aug 2019 15:20:36 +0000 (15:20 +0000)]
Fixed tautological error conditions
Drop error & nil checks where the value can not have changed.
XhmikosR [Fri, 9 Aug 2019 14:46:26 +0000 (17:46 +0300)]
Use the SVG logo in README.md
Bjørn Erik Pedersen [Fri, 9 Aug 2019 06:09:15 +0000 (08:09 +0200)]
Fix static sync issue with virtual mounts
Fixes #6165
Bjørn Erik Pedersen [Thu, 8 Aug 2019 18:22:34 +0000 (20:22 +0200)]
Add a branch bundle test case
See #6173
Bjørn Erik Pedersen [Sat, 3 Aug 2019 15:27:40 +0000 (17:27 +0200)]
Simplify page tree logic
This is preparation for #6041.
For historic reasons, the code for bulding the section tree and the taxonomies were very much separate.
This works, but makes it hard to extend, maintain, and possibly not so fast as it could be.
This simplification also introduces 3 slightly breaking changes, which I suspect most people will be pleased about. See referenced issues:
This commit also switches the radix tree dependency to a mutable implementation: github.com/armon/go-radix.
Fixes #6154
Fixes #6153
Fixes #6152
Bjørn Erik Pedersen [Thu, 8 Aug 2019 08:53:54 +0000 (10:53 +0200)]
hugolib: Add some more site benchmarks
HyeonGyu Lee [Tue, 6 Aug 2019 15:46:20 +0000 (00:46 +0900)]
transform/urlreplacers: Cache the next position of `urlreplacer.prefix`
Improved performance due to `bytes.Index` repeated calls
Fixes #5942
Bjørn Erik Pedersen [Mon, 5 Aug 2019 11:48:58 +0000 (13:48 +0200)]
postcss: Fix no-map vs noMap discrepancy
Fixes #6166
Bjørn Erik Pedersen [Mon, 5 Aug 2019 08:19:55 +0000 (10:19 +0200)]
hugolib: Fix output format handling of mix cased page kinds
Fixes #4528
Bjørn Erik Pedersen [Thu, 1 Aug 2019 20:09:58 +0000 (22:09 +0200)]
hugolib: Fix broken test
Bjørn Erik Pedersen [Thu, 1 Aug 2019 12:05:20 +0000 (14:05 +0200)]
tpl: Regenerate templates
Christian Oliff [Thu, 1 Aug 2019 11:57:41 +0000 (20:57 +0900)]
tpl: Always load GitHub Gists over HTTPS
XhmikosR [Wed, 31 Jul 2019 12:36:36 +0000 (15:36 +0300)]
Fix assorted typos
Shawn Smith [Thu, 1 Aug 2019 11:52:05 +0000 (20:52 +0900)]
common/collections: Fix typo
Robin Andersson [Thu, 1 Aug 2019 11:49:07 +0000 (13:49 +0200)]
examples: Fix multilingual example compatibility with latest version
Bjørn Erik Pedersen [Thu, 1 Aug 2019 08:19:19 +0000 (10:19 +0200)]
Merge pull request #6149 from bep/sort-caseinsensitive
Implement lexicographically string sorting
hugoreleaser [Wed, 31 Jul 2019 12:56:14 +0000 (12:56 +0000)]
releaser: Prepare repository for 0.57.0-DEV
[ci skip]
hugoreleaser [Wed, 31 Jul 2019 12:48:33 +0000 (12:48 +0000)]
releaser: Add release notes to /docs for release of 0.56.3
[ci skip]
hugoreleaser [Wed, 31 Jul 2019 12:48:33 +0000 (12:48 +0000)]
releaser: Bump versions for release of 0.56.3
[ci skip]
hugoreleaser [Wed, 31 Jul 2019 12:48:33 +0000 (12:48 +0000)]
releaser: Add release notes for 0.56.3
[ci skip]
Bjørn Erik Pedersen [Wed, 31 Jul 2019 10:31:31 +0000 (12:31 +0200)]
hugolib: Fix bundle header clone logic
Fixes #6136
Bjørn Erik Pedersen [Wed, 31 Jul 2019 10:11:22 +0000 (12:11 +0200)]
docs: Regenerate CLI docs
Bjørn Erik Pedersen [Wed, 31 Jul 2019 08:31:26 +0000 (10:31 +0200)]
commands: Add "hugo config mounts" command
This prints the effective file mounts in a project.
Fixes #6144
Bjørn Erik Pedersen [Wed, 31 Jul 2019 07:59:32 +0000 (09:59 +0200)]
commands: Cleanup the hugo config command
Most importantly filter out some keys not relevant for the end user.
See #6144
Bjørn Erik Pedersen [Wed, 31 Jul 2019 06:21:17 +0000 (08:21 +0200)]
Move the mount duplicate filter to the modules package
Also simplify the mount validation logic. There are plenty of ways a user can create mount configs that behaves oddly.
Bjørn Erik Pedersen [Tue, 30 Jul 2019 16:34:41 +0000 (18:34 +0200)]
Allow overlap in module mounts
Fixes #6146
Bjørn Erik Pedersen [Tue, 30 Jul 2019 11:35:16 +0000 (13:35 +0200)]
Fix self-mounts on the main project
Fixes #6143
hugoreleaser [Tue, 30 Jul 2019 09:12:29 +0000 (09:12 +0000)]
releaser: Prepare repository for 0.57.0-DEV
[ci skip]
hugoreleaser [Tue, 30 Jul 2019 09:05:09 +0000 (09:05 +0000)]
releaser: Add release notes to /docs for release of 0.56.2
[ci skip]
hugoreleaser [Tue, 30 Jul 2019 09:05:09 +0000 (09:05 +0000)]
releaser: Bump versions for release of 0.56.2
[ci skip]
hugoreleaser [Tue, 30 Jul 2019 09:05:09 +0000 (09:05 +0000)]
releaser: Add release notes for 0.56.2
[ci skip]
Bjørn Erik Pedersen [Tue, 30 Jul 2019 07:58:58 +0000 (09:58 +0200)]
Add some more content language test assertions
See #6136
Bjørn Erik Pedersen [Tue, 30 Jul 2019 07:35:01 +0000 (09:35 +0200)]
commands: Fix config reloading in Vim and similar
The config path was simplified in Hugo 0.56.0 to support more config dirs/files (go.mod etc.),
and the new code path assumed that every file change would trigger a `Write` event.
This is not true for Vim etc. which triggers a `Chmod` and then a `Rename`.
Lesson learned: Be really careful changing Os/editor specific code without proper tests.
Fixes #6139
Bjørn Erik Pedersen [Tue, 30 Jul 2019 07:14:14 +0000 (09:14 +0200)]
Fix Jekyll import
Fixes #6131
Bjørn Erik Pedersen [Tue, 30 Jul 2019 07:02:03 +0000 (09:02 +0200)]
releaser: Create a proper automated title for patch releases
Fixes #6126
Bjørn Erik Pedersen [Tue, 30 Jul 2019 06:53:50 +0000 (08:53 +0200)]
Fix image format detection for upper case extensions, e.g. JPG
This regression was introduced in 0.56.0.
Fixes #6137
Bjørn Erik Pedersen [Mon, 29 Jul 2019 15:23:10 +0000 (17:23 +0200)]
Fix i18n project vs theme order
Fixes #6134
Bjørn Erik Pedersen [Mon, 29 Jul 2019 07:36:48 +0000 (09:36 +0200)]
Add proper error message when receiving nil in Resource transformation
Closes #6128
Bjørn Erik Pedersen [Sun, 28 Jul 2019 15:06:46 +0000 (17:06 +0200)]
Merge branch 'release-0.56.1'
hugoreleaser [Sun, 28 Jul 2019 15:05:28 +0000 (15:05 +0000)]
releaser: Prepare repository for 0.57.0-DEV
[ci skip]
Niklas Fasching [Sun, 28 Jul 2019 14:48:06 +0000 (16:48 +0200)]
deps: Update go-org to v0.1.2
fixes superfluous whitespace around code blocks due to misuse of pre tag
hugoreleaser [Sun, 28 Jul 2019 14:51:43 +0000 (14:51 +0000)]
releaser: Add release notes to /docs for release of 0.56.1
[ci skip]
hugoreleaser [Sun, 28 Jul 2019 14:51:43 +0000 (14:51 +0000)]
releaser: Bump versions for release of 0.56.1
[ci skip]
hugoreleaser [Sun, 28 Jul 2019 14:51:43 +0000 (14:51 +0000)]
releaser: Add release notes for 0.56.1
[ci skip]
Bjørn Erik Pedersen [Sun, 28 Jul 2019 12:33:56 +0000 (14:33 +0200)]
releaser: Make it a one click release for patch releases
Bjørn Erik Pedersen [Sun, 28 Jul 2019 10:31:32 +0000 (12:31 +0200)]
common/maps: Do not return error on params dot access on incompatible types
This error was introduced in 0.56 and has shown some site breakage in the wild.
Fixes #6121
Bjørn Erik Pedersen [Sat, 27 Jul 2019 16:16:13 +0000 (18:16 +0200)]
resources: Fix image Width/Height regression
Fixes #6120
Bjørn Erik Pedersen [Fri, 26 Jul 2019 14:29:33 +0000 (16:29 +0200)]
Revert "cache/filecache: Skip resource cache init if the fs is missing"
I need to revisit this.
This reverts commit
da4c4a7789d403af3f4f4fdd5dfd3327535e4050.
Bjørn Erik Pedersen [Fri, 26 Jul 2019 08:55:50 +0000 (10:55 +0200)]
modules: Set GO111MODULE=on
Fixes #6114
Bjørn Erik Pedersen [Fri, 26 Jul 2019 08:45:07 +0000 (10:45 +0200)]
cache/filecache: Skip resource cache init if the fs is missing
Fixes #6113
hugoreleaser [Thu, 25 Jul 2019 16:45:08 +0000 (16:45 +0000)]
releaser: Prepare repository for 0.57.0-DEV
[ci skip]
hugoreleaser [Thu, 25 Jul 2019 16:37:58 +0000 (16:37 +0000)]
releaser: Add release notes to /docs for release of 0.56.0
[ci skip]
hugoreleaser [Thu, 25 Jul 2019 16:37:58 +0000 (16:37 +0000)]
releaser: Bump versions for release of 0.56.0
[ci skip]
Bjørn Erik Pedersen [Thu, 25 Jul 2019 16:09:57 +0000 (18:09 +0200)]
Update release notes
hugoreleaser [Thu, 25 Jul 2019 15:58:15 +0000 (15:58 +0000)]
releaser: Add release notes draft for 0.56.0
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Thu, 25 Jul 2019 14:54:05 +0000 (16:54 +0200)]
resources: Fix test on Windows