Bjørn Erik Pedersen
02b947eaa3
docs: Regenerate CLI docs
2019-07-31 12:11:22 +02:00
Bjørn Erik Pedersen
d7c233afee
commands: Add "hugo config mounts" command
...
This prints the effective file mounts in a project.
Fixes #6144
2019-07-31 12:10:05 +02:00
Bjørn Erik Pedersen
45ee8a7a52
commands: Cleanup the hugo config command
...
Most importantly filter out some keys not relevant for the end user.
See #6144
2019-07-31 12:10:05 +02:00
Bjørn Erik Pedersen
4b6c5eba30
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.
2019-07-31 12:10:05 +02:00
Bjørn Erik Pedersen
edf9f0a354
Allow overlap in module mounts
...
Fixes #6146
2019-07-31 12:10:05 +02:00
Bjørn Erik Pedersen
36220851e4
Fix self-mounts on the main project
...
Fixes #6143
2019-07-31 12:10:05 +02:00
hugoreleaser
53ade40ba4
releaser: Prepare repository for 0.57.0-DEV
...
[ci skip]
2019-07-30 09:12:29 +00:00
hugoreleaser
5f033a7fcc
releaser: Add release notes to /docs for release of 0.56.2
...
[ci skip]
2019-07-30 09:05:09 +00:00
hugoreleaser
2e6da00679
releaser: Bump versions for release of 0.56.2
...
[ci skip]
2019-07-30 09:05:09 +00:00
hugoreleaser
06f29068f8
releaser: Add release notes for 0.56.2
...
[ci skip]
2019-07-30 09:05:09 +00:00
Bjørn Erik Pedersen
84bc8d84e4
Add some more content language test assertions
...
See #6136
2019-07-30 09:58:58 +02:00
Bjørn Erik Pedersen
6eca0a3dee
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
2019-07-30 09:35:01 +02:00
Bjørn Erik Pedersen
e28bd4c0f8
Fix Jekyll import
...
Fixes #6131
2019-07-30 09:14:14 +02:00
Bjørn Erik Pedersen
2c7c361091
releaser: Create a proper automated title for patch releases
...
Fixes #6126
2019-07-30 09:02:03 +02:00
Bjørn Erik Pedersen
c62bbf7b11
Fix image format detection for upper case extensions, e.g. JPG
...
This regression was introduced in 0.56.0.
Fixes #6137
2019-07-30 08:53:50 +02:00
Bjørn Erik Pedersen
00a238e32c
Fix i18n project vs theme order
...
Fixes #6134
2019-07-29 19:10:15 +02:00
Bjørn Erik Pedersen
e5f9602459
Add proper error message when receiving nil in Resource transformation
...
Closes #6128
2019-07-29 09:59:39 +02:00
Bjørn Erik Pedersen
9f497e7b5f
Merge branch 'release-0.56.1'
2019-07-28 17:06:46 +02:00
hugoreleaser
3ad16af6f8
releaser: Prepare repository for 0.57.0-DEV
...
[ci skip]
2019-07-28 15:05:28 +00:00
Niklas Fasching
56908509eb
deps: Update go-org to v0.1.2
...
fixes superfluous whitespace around code blocks due to misuse of pre tag
2019-07-28 16:52:27 +02:00
hugoreleaser
0ad218afc5
releaser: Add release notes to /docs for release of 0.56.1
...
[ci skip]
2019-07-28 14:51:43 +00:00
hugoreleaser
b5fda703f9
releaser: Bump versions for release of 0.56.1
...
[ci skip]
2019-07-28 14:51:43 +00:00
hugoreleaser
447700228c
releaser: Add release notes for 0.56.1
...
[ci skip]
2019-07-28 14:51:43 +00:00
Bjørn Erik Pedersen
544f826dd6
releaser: Make it a one click release for patch releases
2019-07-28 15:05:15 +02:00
Bjørn Erik Pedersen
e393c6290e
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
2019-07-28 13:03:12 +02:00
Bjørn Erik Pedersen
93d02aabe6
resources: Fix image Width/Height regression
...
Fixes #6120
2019-07-28 12:34:18 +02:00
Bjørn Erik Pedersen
508db1906b
Revert "cache/filecache: Skip resource cache init if the fs is missing"
...
I need to revisit this.
This reverts commit da4c4a7789
.
2019-07-26 16:29:33 +02:00
Bjørn Erik Pedersen
e5fe378925
modules: Set GO111MODULE=on
...
Fixes #6114
2019-07-26 10:55:50 +02:00
Bjørn Erik Pedersen
da4c4a7789
cache/filecache: Skip resource cache init if the fs is missing
...
Fixes #6113
2019-07-26 10:45:07 +02:00
hugoreleaser
b4827fbb14
releaser: Prepare repository for 0.57.0-DEV
...
[ci skip]
2019-07-25 16:45:08 +00:00
hugoreleaser
45f4eb9846
releaser: Add release notes to /docs for release of 0.56.0
...
[ci skip]
2019-07-25 16:37:58 +00:00
hugoreleaser
263f86d456
releaser: Bump versions for release of 0.56.0
...
[ci skip]
2019-07-25 16:37:58 +00:00
Bjørn Erik Pedersen
bed75108e4
Update release notes
2019-07-25 18:29:55 +02:00
hugoreleaser
8d7006d853
releaser: Add release notes draft for 0.56.0
...
Rename to *-ready.md to continue. [ci skip]
2019-07-25 15:58:15 +00:00
Bjørn Erik Pedersen
e5b6e2085a
resources: Fix test on Windows
2019-07-25 16:54:05 +02:00
Bjørn Erik Pedersen
77bf2991b1
docs: Add Hugo Modules docs
2019-07-25 13:21:30 +02:00
Bjørn Erik Pedersen
e5f2299741
Block symlink dir traversal for /static
...
This is in line with how it behaved before, but it was lifted a little for the project mount for Hugo Modules,
but that could create hard-to-detect loops.
2019-07-25 11:27:25 +02:00
Bjørn Erik Pedersen
87a07282a2
modules: Gofmt
2019-07-24 23:31:30 +02:00
Bjørn Erik Pedersen
882d678bbf
modules: Rename disabled => disable in config
2019-07-24 21:46:24 +02:00
Bjørn Erik Pedersen
fa28df1058
hugolib: Fix broken test
2019-07-24 19:50:34 +02:00
Bjørn Erik Pedersen
072aa7f110
hugolib: Add a symdiff test
2019-07-24 10:05:09 +02:00
Bjørn Erik Pedersen
215d2ed883
docs: Regenerate CLI docs
2019-07-24 09:40:41 +02:00
Bjørn Erik Pedersen
23adc0c2d9
docs: Regenerate data helpers
2019-07-24 09:39:12 +02:00
Bjørn Erik Pedersen
461b0e066f
Merge commit '5cb4e46cfa65bddae8ac5344540e3dd1e4c266b2'
2019-07-24 09:36:50 +02:00
Bjørn Erik Pedersen
5cb4e46cfa
Squashed 'docs/' changes from 540aeddc7..41aae7abb
...
41aae7abb Better deploy script example
git-subtree-dir: docs
git-subtree-split: 41aae7abb37d43db3a38e09f2ef674cce2c98ce9
2019-07-24 09:36:50 +02:00
Bjørn Erik Pedersen
9f5a92078a
Add Hugo Modules
...
This commit implements Hugo Modules.
This is a broad subject, but some keywords include:
* A new `module` configuration section where you can import almost anything. You can configure both your own file mounts nd the file mounts of the modules you import. This is the new recommended way of configuring what you earlier put in `configDir`, `staticDir` etc. And it also allows you to mount folders in non-Hugo-projects, e.g. the `SCSS` folder in the Bootstrap GitHub project.
* A module consists of a set of mounts to the standard 7 component types in Hugo: `static`, `content`, `layouts`, `data`, `assets`, `i18n`, and `archetypes`. Yes, Theme Components can now include content, which should be very useful, especially in bigger multilingual projects.
* Modules not in your local file cache will be downloaded automatically and even "hot replaced" while the server is running.
* Hugo Modules supports and encourages semver versioned modules, and uses the minimal version selection algorithm to resolve versions.
* A new set of CLI commands are provided to manage all of this: `hugo mod init`, `hugo mod get`, `hugo mod graph`, `hugo mod tidy`, and `hugo mod vendor`.
All of the above is backed by Go Modules.
Fixes #5973
Fixes #5996
Fixes #6010
Fixes #5911
Fixes #5940
Fixes #6074
Fixes #6082
Fixes #6092
2019-07-24 09:35:53 +02:00
Bjørn Erik Pedersen
47953148b6
deps: Tidy
2019-07-23 00:13:46 +02:00
Bjørn Erik Pedersen
2fc0abd22a
Fix livereload for @import case
...
Fixes #6106
2019-07-22 13:54:24 +02:00
peaceiris
53da3881de
releaser: Remove unused function
...
gitLog function is not used
2019-07-20 12:33:30 +02:00
Bjørn Erik Pedersen
ac101aba4f
deps: Update xerrors
...
To get it to build on Go 1.13.
2019-07-19 09:09:04 +02:00