dependabot[bot]
91c0b0f76b
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.6 to 2.0.8
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.6 to 2.0.8.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.6...v2.0.8 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 12:58:44 +02:00
dependabot[bot]
baef235d50
build(deps): bump github.com/evanw/esbuild from 0.17.19 to 0.18.2
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.17.19 to 0.18.2.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.17.19...v0.18.2 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 12:57:46 +02:00
Bjørn Erik Pedersen
0541a1b57d
Fix handling of aliases (e.g. hugo serve)
...
Fixes #11090
2023-06-13 10:47:51 +02:00
dependabot[bot]
254c2b323c
build(deps): bump go.uber.org/atomic from 1.10.0 to 1.11.0
...
Bumps [go.uber.org/atomic](https://github.com/uber-go/atomic ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/uber-go/atomic/releases )
- [Changelog](https://github.com/uber-go/atomic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/atomic/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/atomic
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 21:02:49 +02:00
dependabot[bot]
84f71ba8ff
build(deps): bump github.com/hairyhenderson/go-codeowners
...
Bumps [github.com/hairyhenderson/go-codeowners](https://github.com/hairyhenderson/go-codeowners ) from 0.2.3-0.20201026200250-cdc7c0759690 to 0.3.0.
- [Release notes](https://github.com/hairyhenderson/go-codeowners/releases )
- [Commits](https://github.com/hairyhenderson/go-codeowners/commits/v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/hairyhenderson/go-codeowners
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 18:00:11 +02:00
dependabot[bot]
82adc972e8
build(deps): bump github.com/frankban/quicktest from 1.14.4 to 1.14.5
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.14.4 to 1.14.5.
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.4...v1.14.5 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 17:57:18 +02:00
dependabot[bot]
60533fdc06
build(deps): bump github.com/mattn/go-isatty from 0.0.17 to 0.0.19
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.17 to 0.0.19.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.17...v0.0.19 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 17:03:22 +02:00
dependabot[bot]
261143bbbc
build(deps): bump github.com/spf13/afero from 1.9.3 to 1.9.5
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.3 to 1.9.5.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.3...v1.9.5 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 17:03:04 +02:00
Bjørn Erik Pedersen
f210188da3
Upgrade to v2 of the Dart Sass Embedded Protocol
...
Fixes #11059
2023-06-12 13:47:38 +02:00
Bjørn Erik Pedersen
c782ebd89c
Fix indented SASS imports for Dart Sass
...
Fixes #11074
2023-06-12 13:47:38 +02:00
Bjørn Erik Pedersen
cf38c73f53
commands: Add TLS/HTTPS support to hugo server
...
* commands: Add TLS/HTTPS support to hugo server
The "auto cert" handling in this PR is backed by mkcert (see link below).
To get this up and running on a new PC, you can:
```
hugo server trust
hugo server --tlsAuto
```
When `--tlsAuto` (or `--tlsCertFile` and `--tlsKeyFile`) is set and no `--baseURL` is provided as a flag, the server is
started with TLS and `https` as the protocol.
Note that you only need to run `hugo server trust` once per PC.
If you already have the key and the cert file (e.g. by using mkcert directly), you can do:
```
hugo server --tlsCertFile mycert.pem --tlsKeyFile mykey.pem
```
See https://github.com/FiloSottile/mkcert
Fixes #11064
2023-06-05 09:53:53 +02:00
Joe Mooring
409c6c3fcd
deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.6
2023-05-31 08:08:26 +02:00
Bjørn Erik Pedersen
f014921159
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.29.0"
...
This reverts commit baa5569042
.
See #10993
2023-05-23 09:24:58 +02:00
Bjørn Erik Pedersen
288be1976d
Fix "unknown command" message when no suggestion
...
Updates #10953
2023-05-22 18:54:34 +02:00
dependabot[bot]
1292d5a26a
build(deps): bump github.com/tdewolff/parse/v2 from 2.6.5 to 2.6.6
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.6.5 to 2.6.6.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.6.5...v2.6.6 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 13:58:40 +02:00
dependabot[bot]
baa5569042
build(deps): bump gocloud.dev from 0.24.0 to 0.29.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.29.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: gocloud.dev
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 13:58:15 +02:00
dependabot[bot]
a5413c1f89
build(deps): bump github.com/gobuffalo/flect from 0.3.0 to 1.0.2
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.3.0 to 1.0.2.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.3.0...v1.0.2 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 12:28:49 +02:00
dependabot[bot]
9cea58a8a6
build(deps): bump golang.org/x/image from 0.5.0 to 0.7.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.5.0 to 0.7.0.
- [Commits](https://github.com/golang/image/compare/v0.5.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 12:28:08 +02:00
dependabot[bot]
1a5dce4cc5
build(deps): bump github.com/tdewolff/minify/v2 from 2.12.4 to 2.12.5
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.12.4 to 2.12.5.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.12.4...v2.12.5 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 12:27:50 +02:00
dependabot[bot]
065ae003a5
build(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1
...
Bumps [github.com/dustin/go-humanize](https://github.com/dustin/go-humanize ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dustin/go-humanize/releases )
- [Commits](https://github.com/dustin/go-humanize/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: github.com/dustin/go-humanize
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 20:04:32 +02:00
dependabot[bot]
1a7d57c0b6
build(deps): bump google.golang.org/api from 0.76.0 to 0.123.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.76.0 to 0.123.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.76.0...v0.123.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 20:03:46 +02:00
dependabot[bot]
bba54e6949
build(deps): bump golang.org/x/tools from 0.4.0 to 0.9.1
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.4.0 to 0.9.1.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.4.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 18:00:58 +02:00
dependabot[bot]
737054311a
build(deps): bump github.com/cli/safeexec from 1.0.0 to 1.0.1
...
Bumps [github.com/cli/safeexec](https://github.com/cli/safeexec ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/cli/safeexec/releases )
- [Commits](https://github.com/cli/safeexec/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: github.com/cli/safeexec
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 18:00:42 +02:00
dependabot[bot]
f6269ee928
build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.117.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.110.0 to 0.117.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.110.0...v0.117.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 18:00:28 +02:00
Bjørn Erik Pedersen
715d484045
deps: Update github.com/evanw/esbuild v0.17.0 => v0.17.19
2023-05-19 18:00:04 +02:00
Bjørn Erik Pedersen
c371171ab8
deps: Update github.com/alecthomas/chroma/v2 v2.7.0
2023-05-19 12:35:05 +02:00
Bjørn Erik Pedersen
24e7d0c174
deps: Update github.com/bep/golibsass v1.1.0 => v1.1.1
...
Fixes #10629
Fixes #10491
2023-05-18 21:24:33 +02:00
Benjamin Elder
008170c8a9
Make GOMAXPROCS to be CPU limit aware
...
Fixes #10950
2023-05-18 19:32:49 +02:00
Bjørn Erik Pedersen
8a69ccbb00
commands: Improve the common build flag handling
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
0106cf1a6d
Revert "Make GOMAXPROCS CPU limit aware"
...
I shouldn't have merged this without running the tests.
This libray logs to stderr on init, which is a no go for us.
Re. test failure:
```
[stderr]
2023/05/17 18:21:04 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
```
This reverts commit 59050f97f6
.
2023-05-17 21:01:52 +02:00
Benjamin Elder
59050f97f6
Make GOMAXPROCS CPU limit aware
...
Fixes #10950
2023-05-17 20:17:22 +02:00
Bjørn Erik Pedersen
241b21b0fd
Create a struct with all of Hugo's config options
...
Primary motivation is documentation, but it will also hopefully simplify the code.
Also,
* Lower case the default output format names; this is in line with the custom ones (map keys) and how
it's treated all the places. This avoids doing `stringds.EqualFold` everywhere.
Closes #10896
Closes #10620
2023-05-16 18:01:29 +02:00
Bjørn Erik Pedersen
6aededf6b4
Improve date parsing performance for the common case
...
```
name old time/op new time/op delta
Baseline/skiprender-10 24.5ms ±10% 22.3ms ± 4% -8.93% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
Baseline/skiprender-10 30.0MB ± 0% 26.2MB ± 0% -12.74% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
Baseline/skiprender-10 373k ± 0% 279k ± 0% -25.07% (p=0.029 n=4+4)
```
Fixes #10942
2023-05-15 11:25:24 +02:00
Niklas Fasching
1c841ec914
deps: Update go-org to v1.6.6
...
among other things, fixes a race condition in html writer and bug preventing
explicit line breaks immediately following emphasis
2023-03-12 12:38:12 +01:00
Bjørn Erik Pedersen
db9f74d24d
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.28.0 ( #10610 )"
...
This reverts commit c3a59a7d5a
.
See #10770
2023-03-01 21:55:47 +01:00
dependabot[bot]
4d36b99a4e
build(deps): bump github.com/tdewolff/parse/v2 from 2.6.4 to 2.6.5
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.6.4 to 2.6.5.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.6.4...v2.6.5 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-01 09:28:29 +01:00
dependabot[bot]
807237bc0e
build(deps): bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.16 to 0.0.17.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.16...v0.0.17 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 11:56:40 +01:00
dependabot[bot]
79b03b3f79
build(deps): bump golang.org/x/image
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.0.0-20211028202545-6944b10bf410 to 0.5.0.
- [Release notes](https://github.com/golang/image/releases )
- [Commits](https://github.com/golang/image/commits/v0.5.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 11:56:09 +01:00
dependabot[bot]
4bf91b9759
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23 09:58:21 +01:00
Bjørn Erik Pedersen
90da7664bf
Add page fragments support to Related
...
The main topic of this commit is that you can now index fragments (content heading identifiers) when calling `.Related`.
You can do this by:
* Configure one or more indices with type `fragments`
* The name of those index configurations maps to an (optional) front matter slice with fragment references. This allows you to link
page<->fragment and page<->page.
* This also will index all the fragments (heading identifiers) of the pages.
It's also possible to use type `fragments` indices in shortcode, e.g.:
```
{{ $related := site.RegularPages.Related .Page }}
```
But, and this is important, you need to include the shortcode using the `{{<` delimiter. Not doing so will create infinite loops and timeouts.
This commit also:
* Adds two new methods to Page: Fragments (can also be used to build ToC) and HeadingsFiltered (this is only used in Related Content with
index type `fragments` and `enableFilter` set to true.
* Consolidates all `.Related*` methods into one, which takes either a `Page` or an options map as its only argument.
* Add `context.Context` to all of the content related Page API. Turns out it wasn't strictly needed for this particular feature, but it will
soon become usefil, e.g. in #9339 .
Closes #10711
Updates #9339
Updates #10725
2023-02-21 17:56:41 +01:00
Bjørn Erik Pedersen
2a364cca64
Revert "build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.114.0"
...
This reverts commit 87c78bd3e9
.
There seem to be some breaking changes in the above that needs to be looked into.
2023-02-05 20:34:35 +01:00
Joe Mooring
3fb2417cb7
deps: Upgrade github.com/yuin/goldmark v1.5.3 => v1.5.4
...
Closes #10661
2023-02-05 20:09:06 +01:00
dependabot[bot]
87c78bd3e9
build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.114.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.110.0 to 0.114.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.110.0...v0.114.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-05 20:07:15 +01:00
Joe Mooring
69c369e114
deps: Upgrade github.com/alecthomas/chroma v2.4.0 => v2.5.0
...
Fixes #9890
Fixes #10692
2023-02-05 20:06:51 +01:00
dependabot[bot]
dd37163f5a
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.10 to 2.2.11
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.10 to 2.2.11.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.10...v2.2.11 )
---
updated-dependencies:
- dependency-name: github.com/kyokomi/emoji/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 09:41:13 +01:00
dependabot[bot]
c3a59a7d5a
build(deps): bump gocloud.dev from 0.24.0 to 0.28.0 ( #10610 )
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.28.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.28.0 )
---
updated-dependencies:
- dependency-name: gocloud.dev
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Closes #9778
2023-01-31 09:40:39 +01:00
Bjørn Erik Pedersen
4ef9baf5bd
Only invoke a given cached partial once
...
Note that this is backed by a LRU cache (which we soon shall see more usage of), so if you're a heavy user of cached partials it may be evicted and
refreshed if needed. But in most cases every partial is only invoked once.
This commit also adds a timeout (the global `timeout` config option) to make infinite recursion in partials
easier to reason about.
```
name old time/op new time/op delta
IncludeCached-10 8.92ms ± 0% 8.48ms ± 1% -4.87% (p=0.016 n=4+5)
name old alloc/op new alloc/op delta
IncludeCached-10 6.65MB ± 0% 5.17MB ± 0% -22.32% (p=0.002 n=6+6)
name old allocs/op new allocs/op delta
IncludeCached-10 117k ± 0% 71k ± 0% -39.44% (p=0.002 n=6+6)
```
Closes #4086
Updates #9588
2023-01-25 17:35:23 +01:00
Bjørn Erik Pedersen
6e9fa9e0fd
deps: Upgrade github.com/evanw/esbuild v0.15.18 => v0.17.0
...
Also add a test to make sure legal comments are preserved in JS bundles.
Closes #10536
2023-01-16 14:41:13 +01:00
dependabot[bot]
7874b96815
build(deps): bump golang.org/x/tools from 0.3.0 to 0.4.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-23 09:26:10 +01:00
Bjørn Erik Pedersen
f5b5b71c60
deps: Upgrade github.com/bep/godartsass v0.15.0 => v0.16.0
2022-12-06 13:37:08 +01:00