Age | Commit message (Collapse) | Author |
|
We have been using `go-toml` for language files only. This commit makes it the only TOML library.
It's spec compliant and very fast.
A benchark building a site with 200 pages with TOML front matter:
```bash
name old time/op new time/op delta
SiteNew/Regular_TOML_front_matter-16 48.5ms ± 1% 47.1ms ± 1% -2.85% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_TOML_front_matter-16 16.9MB ± 0% 16.7MB ± 0% -1.56% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_TOML_front_matter-16 302k ± 0% 296k ± 0% -2.20% (p=0.029 n=4+4)
```
Note that the front matter unmarshaling is only a small part of building a site, so the above is very good.
Fixes #8801
|
|
Fixes #8773
|
|
This commit started out investigating a `concurrent map read write` issue, ending by replacing the map with a struct.
This is easier to reason about, and it's more effective:
```
name old time/op new time/op delta
SiteNew/Regular_Deep_content_tree-16 71.5ms ± 3% 69.4ms ± 5% ~ (p=0.200 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Deep_content_tree-16 29.7MB ± 0% 27.9MB ± 0% -5.82% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Deep_content_tree-16 313k ± 0% 303k ± 0% -3.35% (p=0.029 n=4+4)
```
See #8749
|
|
This allows error parsers (VSCode problemMatchers) to use the time notification as bounds for detecting errors.
Closes #8403
|
|
So you can do:
```
hugo server --poll 700ms
```
See #8720
|
|
Fixes #8720
Fixes #6849
Fixes #7930
|
|
Which is in line with how we do it elsewhere.
|
|
|
|
* Add owner path and version.
* Also add thme meta info and Hugo version when run with -v flag
|
|
So they can be used from the config package without cyclic troubles.
Updates #8654
|
|
Fixes #8655
|
|
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster:
```
BenchmarkDefaultConfigProvider/Viper-16 252418 4546 ns/op 2720 B/op 30 allocs/op
BenchmarkDefaultConfigProvider/Custom-16 450756 2651 ns/op 1008 B/op 6 allocs/op
```
Fixes #8633
Fixes #8618
Fixes #8630
Updates #8591
Closes #6680
Closes #5192
|
|
Fixes #8613
|
|
Closes #8531
|
|
It creates lots of diffs even if there are no changes.
|
|
Fixes #8400
|
|
`hugo new theme foo` creates theme `foo` in `./themes` and not in current directory.
|
|
|
|
Revert "Refactor: Remove powershell support" with fixes
Thanks to Ben Mezger (@benmezger) for the original code.
See #8122
This reverts commit a7c515e1b56e8cab34ca2647b4116904df9c8250.
|
|
|
|
|
|
See issue #4296
|
|
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021.
Fixes #7380
Fixes #8102
|
|
The substring match in TestExecute deploy test is adjusted accordingly.
|
|
See https://github.com/mvdan/gofumpt
|
|
Fixes #6595
|
|
This commit fixes some issues where modules in /assets share the same name as in node_modules.
This was not intended, and with this commit the node_modules-components should be isolated. If you want to redefine something inside node_modules, use the `defines` option.
Fixes #7948
|
|
Fixes #7816
Fixes #7777
Fixes #7916
|
|
Fixes #7826
|
|
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing).
Fixes #7866
|
|
Fixes #7778
|
|
|
|
This commit also introduces a convention where these common JS config files, including `package.hugo.json`, gets mounted into:
```
assets/_jsconfig
´``
These files mapped to their real filename will be added to the environment when running PostCSS, Babel etc., so you can do `process.env.HUGO_FILE_TAILWIND_CONFIG_JS` to resolve the real filename.
But do note that `assets` is a composite/union filesystem, so if your config file is not meant to be overridden, name them something specific.
This commit also adds adds `workDir/node_modules` to `NODE_PATH` and `HUGO_WORKDIR` to the env when running the JS tools above.
Fixes #7644
Fixes #7656
Fixes #7675
|
|
Fixes #7642
|
|
Append newline to the message instead.
Fixes #7579
|
|
|
|
Use it with `hugo --print-mem
|
|
Fixes #7357
|
|
Fixes #7323
|
|
Fixes #7285
|
|
Chroma was updated to include a new function to output all CSS
classes without skipping any considered redundant with the current
style.
This will modify the `hugo gen chromastyles` command to use this new
function by default, which avoids potential problems if the style is
later modified.
Also includes requires the updated Chroma (v0.7.2).
Resolves #7167
|
|
There may be a simpler way to get to the raw path, but this will have to do for now.
Fixes #7163
|
|
See https://github.com/gohugoio/hugoThemes#themetoml
|
|
|
|
Fixes #7041
Fixes #7042
|
|
Fixes #7031
|
|
|
|
* Only clean project modules
* Optional glob pattern of module paths to clean
Closes #6907
|
|
See #6907
|
|
Fixes #6828
|