Age | Commit message (Collapse) | Author |
|
We cannot (also, it doesn't add any value) use that when the `clock` is set,
* To measure time (before that global is set)
* To compare file timestamps re cache eviction
Fixes #9868
|
|
And some other related adjustments.
Updates #8787
|
|
Close #8787
|
|
* Add file context to minifier errors when publishing
* Misc fixes (see issues)
* Allow custom server error template in layouts/server/error.html
To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of https://github.com/pkg/errors/issues/223 -- but also because most of this is now built-in to Go.
Fixes #9852
Fixes #9857
Fixes #9863
|
|
As introduced in Hugo `v0.76.1`.
And add a proper test for it.
Fixes #9794
Closes #9788
|
|
This reverts commit 6c35a1a9eacf2aa86a11ecd31c4022ce330b2f16.
Updates #9794
|
|
This reverts commit 4deb5c60661bdb1d686664f0207f45517a086f29.
|
|
Fixes #9788
|
|
See #9626
|
|
This reverts commit 5ef8a9f32c25a9b4cc821393c58733e57a7ad234.
|
|
in server mode""
This reverts commit 64b7b7a89753a39661219b2fcb92d7f185a03f63.
|
|
|
|
Do this by announcing/listen on the local address before we start the server.
|
|
Updates #9687
|
|
Closes #9671
|
|
Updates #9647
|
|
mode"
This reverts commit 7d8011ed63d587b87a7c182748914fe146590093.
Updates #9647
|
|
This reverts commit 63bb2a5b18193602fd442ebafdc85bc36fe05ad2.
|
|
Closes #9625
|
|
Updates #9625
|
|
Fixes #9474
|
|
And now with a proper server test.
Fixes #9518
Fixes #9530
Fixes #9539
|
|
Fixes #9502
|
|
To get it in line with the others.
|
|
--printMemoryUsage
To get it in line with the others.
|
|
Fixes #9486
|
|
Closes #9454
|
|
Closes #8862
|
|
Updates #9363
|
|
Fixes #9357
Fixes #9359
|
|
* Deprecate .Page.Path when backed by a file
* site.Permalinks
* --ignoreVendor (use --ignoreVendorPaths)
Closes #9348
Closes #9349
|
|
Fixes #9165
|
|
Fixes #9162
|
|
Fixes #9051
|
|
Fixes #9048
|
|
The old implementation had some issues, mostly related to the context (e.g. name, file paths) passed to the template.
This new implementation is using the exact same code path for evaluating the pages as in a regular build.
This also makes it more robust and easier to reason about in a multilingual setup.
Now, if you are explicit about the target path, Hugo will now always pick the correct mount and language:
```bash
hugo new content/en/posts/my-first-post.md
```
Fixes #9032
Fixes #7589
Fixes #9043
Fixes #9046
Fixes #9047
|
|
So it at least is possible to do a `hugo mod clean --all` if the cache is in a funky state.
|
|
Fixes #8942
|
|
Fixes #8940
|
|
fail to start"
This reverts commit 3f38c785b7208440e2a9dd9a80cb39d4ae23e676.
|
|
|
|
Fixes #8904
|
|
Updates #8892
|
|
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.
|