brevno-suite/hugo
3 years agotpl/time: Adjust tests to handle matching local time zones
Bjørn Erik Pedersen [Tue, 3 Aug 2021 04:58:25 +0000 (06:58 +0200)]
tpl/time: Adjust tests to handle matching local time zones

Closes #8843

3 years agomod: Remove superflous replace statement
Bjørn Erik Pedersen [Mon, 2 Aug 2021 18:33:13 +0000 (20:33 +0200)]
mod: Remove superflous replace statement

3 years agoReduce binary size vs locale, update to CLDR v36.1
Bjørn Erik Pedersen [Mon, 2 Aug 2021 14:24:04 +0000 (16:24 +0200)]
Reduce binary size vs locale, update to CLDR v36.1

Test building with `go build -ldflags="-s -w"`

Hugo 0.86.2: 46MB
Before this commit: 77MB
After this commit: 54MB

Fixes #8839
Fixes #8841

3 years agodeps: Update github.com/tdewolff/minify/v2 v2.9.20 => v2.9.21
Joe Mooring [Mon, 2 Aug 2021 14:35:12 +0000 (07:35 -0700)]
deps: Update github.com/tdewolff/minify/v2 v2.9.20 => v2.9.21

Closes #8831

3 years agoFix error handling for the time func alias
Bjørn Erik Pedersen [Sun, 1 Aug 2021 10:50:37 +0000 (12:50 +0200)]
Fix error handling for the time func alias

Fixes #8835

3 years agoFail on invalid time zone
Bjørn Erik Pedersen [Sun, 1 Aug 2021 09:50:12 +0000 (11:50 +0200)]
Fail on invalid time zone

Fixes #8832

3 years agoImprove handling of <nil> Params
Bjørn Erik Pedersen [Fri, 30 Jul 2021 08:56:45 +0000 (10:56 +0200)]
Improve handling of <nil> Params

Fixes #8825

3 years agoMerge branch 'release-0.86.1'
Bjørn Erik Pedersen [Fri, 30 Jul 2021 10:58:26 +0000 (12:58 +0200)]
Merge branch 'release-0.86.1'

3 years agoreleaser: Add release notes for 0.86.1
hugoreleaser [Fri, 30 Jul 2021 10:13:32 +0000 (10:13 +0000)]
releaser: Add release notes for 0.86.1
[ci skip]

3 years agoreleaser: Prepare repository for 0.87.0-DEV
hugoreleaser [Fri, 30 Jul 2021 10:54:50 +0000 (10:54 +0000)]
releaser: Prepare repository for 0.87.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.86.1 v0.86.1
hugoreleaser [Fri, 30 Jul 2021 10:13:32 +0000 (10:13 +0000)]
releaser: Add release notes to /docs for release of 0.86.1

[ci skip]

3 years agoreleaser: Bump versions for release of 0.86.1
hugoreleaser [Fri, 30 Jul 2021 10:13:32 +0000 (10:13 +0000)]
releaser: Bump versions for release of 0.86.1

[ci skip]

3 years agoreleaser: Add release notes for 0.86.1
hugoreleaser [Fri, 30 Jul 2021 10:13:32 +0000 (10:13 +0000)]
releaser: Add release notes for 0.86.1
[ci skip]

3 years agoconfig: Fix a potential deadlock in config reading
Bjørn Erik Pedersen [Fri, 30 Jul 2021 09:53:27 +0000 (11:53 +0200)]
config: Fix a potential deadlock in config reading

Note that the deadlock has not been seen earlier, in tests on in real Hugo sites.

Fixes #8791

3 years agobuild(deps): bump github.com/evanw/esbuild from 0.12.16 to 0.12.17
dependabot[bot] [Fri, 30 Jul 2021 08:16:58 +0000 (08:16 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.12.16 to 0.12.17

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.12.16 to 0.12.17.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.12.16...v0.12.17)

---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.67.0 to 0.68.0
dependabot[bot] [Fri, 30 Jul 2021 08:14:53 +0000 (08:14 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.67.0 to 0.68.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.67.0 to 0.68.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.67.0...v0.68.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>
3 years agotpl/lang: Add new localized versions of lang.FormatNumber etc.
Bjørn Erik Pedersen [Wed, 28 Jul 2021 10:28:52 +0000 (12:28 +0200)]
tpl/lang: Add new localized versions of lang.FormatNumber etc.

Fixes #8820

3 years agoGo back to WARNING for Page deprecations
Bjørn Erik Pedersen [Thu, 29 Jul 2021 14:18:38 +0000 (16:18 +0200)]
Go back to WARNING for Page deprecations

Do that in the next release, let's reduce the noise, we have enough changes as it is.

3 years agoHandle toml.LocalDate and toml.LocalDateTime in front matter
Bjørn Erik Pedersen [Wed, 28 Jul 2021 16:02:42 +0000 (18:02 +0200)]
Handle toml.LocalDate and toml.LocalDateTime in front matter

See #8801

3 years agodeps: Upgrade github.com/pelletier/go-toml/v2 v2.0.0-beta.3 => v2.0.0-beta.3.0.202107...
Bjørn Erik Pedersen [Wed, 28 Jul 2021 15:27:31 +0000 (17:27 +0200)]
deps: Upgrade github.com/pelletier/go-toml/v2 v2.0.0-beta.3 => v2.0.0-beta.3.0.20210727221244-fa0796069526

3 years agoSwitch to go-toml v2
Bjørn Erik Pedersen [Tue, 27 Jul 2021 17:07:10 +0000 (19:07 +0200)]
Switch to go-toml v2

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

3 years agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.9.19 to 2.9.20
dependabot[bot] [Wed, 28 Jul 2021 08:17:56 +0000 (08:17 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.19 to 2.9.20

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.9.19 to 2.9.20.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.19...v2.9.20)

---
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>
3 years agoAdd a TOML front matter benchmark
Bjørn Erik Pedersen [Tue, 27 Jul 2021 17:24:19 +0000 (19:24 +0200)]
Add a TOML front matter benchmark

3 years agoAdd timezone support for front matter dates without one
Bjørn Erik Pedersen [Tue, 27 Jul 2021 11:45:05 +0000 (13:45 +0200)]
Add timezone support for front matter dates without one

Fixes #8810

3 years agoLocalize time.Format
Bjørn Erik Pedersen [Mon, 26 Jul 2021 16:28:57 +0000 (18:28 +0200)]
Localize time.Format

Fixes #8797

3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.61.0 to 0.67.0
dependabot[bot] [Tue, 27 Jul 2021 13:17:35 +0000 (13:17 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.61.0 to 0.67.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.61.0 to 0.67.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.61.0...v0.67.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>
3 years agobuild(deps): bump github.com/spf13/cast from 1.3.1 to 1.4.0
dependabot[bot] [Tue, 27 Jul 2021 13:06:42 +0000 (13:06 +0000)]
build(deps): bump github.com/spf13/cast from 1.3.1 to 1.4.0

Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](https://github.com/spf13/cast/compare/v1.3.1...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump google.golang.org/api from 0.45.0 to 0.51.0
dependabot[bot] [Tue, 27 Jul 2021 12:19:06 +0000 (12:19 +0000)]
build(deps): bump google.golang.org/api from 0.45.0 to 0.51.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.45.0 to 0.51.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.45.0...v0.51.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>
3 years agobuild(deps): bump github.com/sanity-io/litter from 1.5.0 to 1.5.1
dependabot[bot] [Tue, 27 Jul 2021 12:13:37 +0000 (12:13 +0000)]
build(deps): bump github.com/sanity-io/litter from 1.5.0 to 1.5.1

Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/sanity-io/litter/releases)
- [Changelog](https://github.com/sanity-io/litter/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sanity-io/litter/compare/v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/sanity-io/litter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/mattn/go-isatty from 0.0.12 to 0.0.13
dependabot[bot] [Tue, 27 Jul 2021 12:16:48 +0000 (12:16 +0000)]
build(deps): bump github.com/mattn/go-isatty from 0.0.12 to 0.0.13

Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.12 to 0.0.13.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.12...v0.0.13)

---
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>
3 years agobuild(deps): bump github.com/spf13/cobra from 1.1.3 to 1.2.1
dependabot[bot] [Tue, 27 Jul 2021 11:24:26 +0000 (11:24 +0000)]
build(deps): bump github.com/spf13/cobra from 1.1.3 to 1.2.1

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.1.3 to 1.2.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.1.3...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/mitchellh/mapstructure from 1.3.3 to 1.4.1
dependabot[bot] [Tue, 27 Jul 2021 10:42:19 +0000 (10:42 +0000)]
build(deps): bump github.com/mitchellh/mapstructure from 1.3.3 to 1.4.1

Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) from 1.3.3 to 1.4.1.
- [Release notes](https://github.com/mitchellh/mapstructure/releases)
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.3.3...v1.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/google/go-cmp from 0.5.5 to 0.5.6
dependabot[bot] [Tue, 27 Jul 2021 08:12:00 +0000 (08:12 +0000)]
build(deps): bump github.com/google/go-cmp from 0.5.5 to 0.5.6

Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.5...v0.5.6)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/mitchellh/hashstructure from 1.0.0 to 1.1.0
dependabot[bot] [Fri, 18 Jun 2021 10:30:21 +0000 (10:30 +0000)]
build(deps): bump github.com/mitchellh/hashstructure from 1.0.0 to 1.1.0

Bumps [github.com/mitchellh/hashstructure](https://github.com/mitchellh/hashstructure) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/mitchellh/hashstructure/releases)
- [Commits](https://github.com/mitchellh/hashstructure/compare/v1.0.0...v1.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/gobuffalo/flect from 0.2.2 to 0.2.3
dependabot[bot] [Tue, 27 Jul 2021 07:43:17 +0000 (07:43 +0000)]
build(deps): bump github.com/gobuffalo/flect from 0.2.2 to 0.2.3

Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/gobuffalo/flect/releases)
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.2...v0.2.3)

---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/pelletier/go-toml from 1.9.0 to 1.9.3
dependabot[bot] [Mon, 26 Jul 2021 19:28:00 +0000 (19:28 +0000)]
build(deps): bump github.com/pelletier/go-toml from 1.9.0 to 1.9.3

Bumps [github.com/pelletier/go-toml](https://github.com/pelletier/go-toml) from 1.9.0 to 1.9.3.
- [Release notes](https://github.com/pelletier/go-toml/releases)
- [Commits](https://github.com/pelletier/go-toml/compare/v1.9.0...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/aws/aws-sdk-go from 1.38.23 to 1.40.8
dependabot[bot] [Mon, 26 Jul 2021 18:31:23 +0000 (18:31 +0000)]
build(deps): bump github.com/aws/aws-sdk-go from 1.38.23 to 1.40.8

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.38.23 to 1.40.8.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.23...v1.40.8)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.9.18 to 2.9.19
dependabot[bot] [Mon, 26 Jul 2021 13:01:24 +0000 (13:01 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.18 to 2.9.19

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.9.18 to 2.9.19.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.18...v2.9.19)

---
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>
3 years agodeps: Update github.com/evanw/esbuild v0.11.16 => v0.12.16
Bjørn Erik Pedersen [Mon, 26 Jul 2021 09:26:41 +0000 (11:26 +0200)]
deps: Update github.com/evanw/esbuild v0.11.16 => v0.12.16

3 years agoDeprecate Blackfriday and fix a potential deadlock in config
Bjørn Erik Pedersen [Mon, 26 Jul 2021 09:21:11 +0000 (11:21 +0200)]
Deprecate Blackfriday and fix a potential deadlock in config

Note that the deadlock has not been seen earlier, in tests on in real Hugo sites.

Fixes #8792
Fixes #8791

3 years agodeps: Update github.com/yuin/goldmark v1.3.9 => v1.4.0
Bjørn Erik Pedersen [Mon, 26 Jul 2021 09:29:06 +0000 (11:29 +0200)]
deps: Update github.com/yuin/goldmark v1.3.9 => v1.4.0

3 years agobuild(deps): bump github.com/frankban/quicktest from 1.12.0 to 1.13.0
dependabot[bot] [Fri, 18 Jun 2021 10:25:32 +0000 (10:25 +0000)]
build(deps): bump github.com/frankban/quicktest from 1.12.0 to 1.13.0

Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/frankban/quicktest/releases)
- [Commits](https://github.com/frankban/quicktest/compare/v1.12.0...v1.13.0)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoBump all long-living deprecations to ERRORs
Bjørn Erik Pedersen [Sun, 25 Jul 2021 11:34:00 +0000 (13:34 +0200)]
Bump all long-living deprecations to ERRORs

3 years agoFix theme count in release notes
Digitalcraftsman [Wed, 21 Jul 2021 13:07:31 +0000 (06:07 -0700)]
Fix theme count in release notes

3 years agoreleaser: Prepare repository for 0.87.0-DEV
hugoreleaser [Wed, 21 Jul 2021 11:13:04 +0000 (11:13 +0000)]
releaser: Prepare repository for 0.87.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.86.0 v0.86.0
hugoreleaser [Wed, 21 Jul 2021 09:53:11 +0000 (09:53 +0000)]
releaser: Add release notes to /docs for release of 0.86.0

[ci skip]

3 years agoreleaser: Bump versions for release of 0.86.0
hugoreleaser [Wed, 21 Jul 2021 09:53:11 +0000 (09:53 +0000)]
releaser: Bump versions for release of 0.86.0

[ci skip]

3 years agoRelease 0.86.0
Bjørn Erik Pedersen [Wed, 21 Jul 2021 09:37:16 +0000 (11:37 +0200)]
Release 0.86.0

3 years agonavigation: Check Page first in URL()
Bjørn Erik Pedersen [Wed, 21 Jul 2021 09:34:26 +0000 (11:34 +0200)]
navigation: Check Page first in URL()

 In Hugo #8776 we added `pageRef`, a way to connect menu items in site config to pages.

This means that you now can have both a Page and a configured URL.

Having the configured URL as a fallback if the Page isn't found is obviously more useful, especially in multilingual sites.

See #8776

3 years agoUpdate 0.86.0-relnotes.md
Bjørn Erik Pedersen [Wed, 21 Jul 2021 09:28:32 +0000 (11:28 +0200)]
Update 0.86.0-relnotes.md

[ci skip]

3 years agoreleaser: Add release notes for 0.86.0
hugoreleaser [Wed, 21 Jul 2021 09:04:02 +0000 (09:04 +0000)]
releaser: Add release notes for 0.86.0

Rename to *-ready.md to continue.
[ci skip]

3 years agoMerge commit '53a352795a69a9d4a373f50ec62138595948c6ea'
Bjørn Erik Pedersen [Wed, 21 Jul 2021 08:45:53 +0000 (10:45 +0200)]
Merge commit '53a352795a69a9d4a373f50ec62138595948c6ea'

3 years agoSquashed 'docs/' changes from 6ebb5dad9..60a58d123
Bjørn Erik Pedersen [Wed, 21 Jul 2021 08:45:05 +0000 (10:45 +0200)]
Squashed 'docs/' changes from 6ebb5dad9..60a58d123

60a58d123 Remove outdated references in scss-sass.md
225a03834 Revert "Update menus.md"
7d149dd1e Update menus.md
3694ecafc Fix theme submission process/repository
0277c202c Update index.md - fix typo (#1490)
8921f0462 Fix link to theme components in 0.42 release notes (#1489)
c948bd519 Release 0.85.0
ee5bc5be9 releaser: Add release notes to /docs for release of 0.85.0
f2f692c32 commands: Make the --poll flag a duration
13070337a docs: Regen CLI docs

git-subtree-dir: docs
git-subtree-split: 60a58d123d9f9d20ee7d09373812ce4428dffcdf

3 years agocommands: Fix panic on invalid config in "hugo mod get" and similar
Bjørn Erik Pedersen [Tue, 20 Jul 2021 16:23:09 +0000 (18:23 +0200)]
commands: Fix panic on invalid config in "hugo mod get" and similar

Fixes #8773

3 years agoSimplify "active menu" logic for section menus
Bjørn Erik Pedersen [Tue, 20 Jul 2021 10:10:22 +0000 (12:10 +0200)]
Simplify "active menu" logic for section menus

Fixes #8776

3 years agoFix Params case handling for menu items defined in site config
Bjørn Erik Pedersen [Tue, 20 Jul 2021 09:32:50 +0000 (11:32 +0200)]
Fix Params case handling for menu items defined in site config

Fixes #8775

3 years agominifiers: Make keepWhitespace = true default for HTML
Bjørn Erik Pedersen [Mon, 19 Jul 2021 09:32:47 +0000 (11:32 +0200)]
minifiers: Make keepWhitespace = true default for HTML

Fixes #8771

3 years agohugofs: Make FileMeta a struct
Bjørn Erik Pedersen [Tue, 13 Jul 2021 09:41:02 +0000 (11:41 +0200)]
hugofs: Make FileMeta a struct

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

3 years agomarkup: Add tabindex="0" to default <pre> wrapper
rhymes [Thu, 15 Jul 2021 14:48:39 +0000 (16:48 +0200)]
markup: Add tabindex="0" to default <pre> wrapper

Currently the generated `<pre>` element isn't fully accessible as it can't be focused by keyboard users.
To make this fully accessible, the attribute `tabindex="0"` should be added to the `<pre>` tag.

Closes #7194

3 years agoFix default values when loading from config dir
Bjørn Erik Pedersen [Thu, 15 Jul 2021 13:31:50 +0000 (15:31 +0200)]
Fix default values when loading from config dir

By waiting until we've loaded the config dir config before applying the default values.

Fixes #8763

3 years agoFix the deprecation error/warn log levels
Bjørn Erik Pedersen [Thu, 15 Jul 2021 10:24:20 +0000 (12:24 +0200)]
Fix the deprecation error/warn log levels

3 years agomarkup/goldmark: Rename/reorder the hook methods
Bjørn Erik Pedersen [Thu, 15 Jul 2021 07:05:13 +0000 (09:05 +0200)]
markup/goldmark: Rename/reorder the hook methods

To make them easier to follow.

See #8755

3 years agomarkup/goldmark: Support auto links in render hook
Bjørn Erik Pedersen [Thu, 15 Jul 2021 06:46:54 +0000 (08:46 +0200)]
markup/goldmark: Support auto links in render hook

Fixes #8755

3 years agoAdjust a test helper
Bjørn Erik Pedersen [Wed, 14 Jul 2021 19:47:26 +0000 (21:47 +0200)]
Adjust a test helper

3 years agoAdd config.cascade
Bjørn Erik Pedersen [Fri, 9 Jul 2021 09:52:03 +0000 (11:52 +0200)]
Add config.cascade

This commit adds support for using the `cascade` keyword in your configuration file(s), e.g. `config.toml`.

Note that

* Every feature of `cascade` is available, e.g. `_target` to target specific page sets.
* Pages, e.g. the home page, can overwrite the cascade defined in config.

Fixes #8741

3 years agoresources: Regenerate image golden testdata
Bjørn Erik Pedersen [Wed, 7 Jul 2021 08:24:47 +0000 (10:24 +0200)]
resources: Regenerate image golden testdata

Keep this as a separate commit as this isn't because the files have changed. The filenames have changed due to cache busting of PNG and Webp images.

See #8729

3 years agoFix transparency problem when converting 32-bit images to WebP
Bjørn Erik Pedersen [Wed, 7 Jul 2021 07:34:39 +0000 (09:34 +0200)]
Fix transparency problem when converting 32-bit images to WebP

Fixes #8729

3 years agoreleaser: Prepare repository for 0.86.0-DEV
hugoreleaser [Mon, 5 Jul 2021 11:37:38 +0000 (11:37 +0000)]
releaser: Prepare repository for 0.86.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.85.0 v0.85.0
hugoreleaser [Mon, 5 Jul 2021 10:46:25 +0000 (10:46 +0000)]
releaser: Add release notes to /docs for release of 0.85.0

[ci skip]

3 years agoreleaser: Bump versions for release of 0.85.0
hugoreleaser [Mon, 5 Jul 2021 10:46:25 +0000 (10:46 +0000)]
releaser: Bump versions for release of 0.85.0

[ci skip]

3 years agoUpdate 0.85.0-relnotes.md
Bjørn Erik Pedersen [Mon, 5 Jul 2021 10:37:25 +0000 (12:37 +0200)]
Update 0.85.0-relnotes.md

3 years agoreleaser: Add release notes for 0.85.0
hugoreleaser [Mon, 5 Jul 2021 10:27:32 +0000 (10:27 +0000)]
releaser: Add release notes for 0.85.0

Rename to *-ready.md to continue.
[ci skip]

3 years agocommands: Move time notification to after any build errors
John Hollowell [Mon, 5 Jul 2021 08:38:54 +0000 (04:38 -0400)]
commands: Move time notification to after any build errors

This allows error parsers (VSCode problemMatchers) to use the time notification as bounds for detecting errors.

Closes #8403

3 years agoexif: Log warning for metadata decode error
Brandon Woodford [Tue, 22 Jun 2021 01:41:41 +0000 (20:41 -0500)]
exif: Log warning for metadata decode error

see #8519

3 years agoFix tab selection of disabled items in internal pagination template
Raoul [Wed, 30 Jun 2021 01:34:45 +0000 (03:34 +0200)]
Fix tab selection of disabled items in internal pagination template

3 years agocommands: Make the --poll flag a duration
Bjørn Erik Pedersen [Mon, 5 Jul 2021 08:13:41 +0000 (10:13 +0200)]
commands: Make the --poll flag a duration

So you can do:

```
hugo server --poll 700ms
```

See #8720

3 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Sun, 4 Jul 2021 14:35:21 +0000 (16:35 +0200)]
docs: Regen CLI docs

3 years agoMerge commit '7eb0e10a80708c638554b8221a3120dc1168566c'
Bjørn Erik Pedersen [Sun, 4 Jul 2021 14:34:53 +0000 (16:34 +0200)]
Merge commit '7eb0e10a80708c638554b8221a3120dc1168566c'

3 years agoSquashed 'docs/' changes from 710856e5a..6ebb5dad9
Bjørn Erik Pedersen [Sun, 4 Jul 2021 14:34:26 +0000 (16:34 +0200)]
Squashed 'docs/' changes from 710856e5a..6ebb5dad9

6ebb5dad9 Remove file
27cc23ef4 Hugo 0.84.4
94dccbfa4 Merge branch 'tempv0.84.4'
e9d8b61fb releaser: Add release notes to /docs for release of 0.84.4
51e472005 Improve readability of examples on shortcode templates page
0aef26479 Fix lookup order typos (#1484)
534a527fe Fix two typos (#1483)
394aabd5a Higo "0.84.3
03ee92c1c Merge branch 'tempv0.84.3'
96a8be0f1 releaser: Add release notes to /docs for release of 0.84.3
9a770323f Update index.md
7f65cfcbe Hugo 0.84.2
444422515 releaser: Add release notes to /docs for release of 0.84.2
a2f29c5d8 modules: Add module.import.noMounts config
e00e4a7e7 releaser: Add release notes to /docs for release of 0.84.2
af04b53b3 modules: Add module.import.noMounts config
f7d5669c7 Remove Appernetic (#1481)
14f8d4029 Clarify interaction of sections and top-level leaf bundles
d140b6a62 Update lookup-order.md
399904959 Update shortcode-templates.md
e78aa4865 Hugo 0.84.1
35d7c1c22 Merge branch 'tempv0.84.1'
a6be65b0d releaser: Add release notes to /docs for release of 0.84.1
7b3b3ca45 Hugo 0.84.0 News Grammar fixes
cbc23bf5a Remove trailing newlines
69349198d Fix erroridf docs
dbc1157c1 Fix missing deep

git-subtree-dir: docs
git-subtree-split: 6ebb5dad9a87655196c0990d88d50a2248df5c54

3 years agoAdd polling as a fallback to native filesystem events in server watch
Bjørn Erik Pedersen [Fri, 2 Jul 2021 07:54:03 +0000 (09:54 +0200)]
Add polling as a fallback to native filesystem events in server watch

Fixes #8720
Fixes #6849
Fixes #7930

3 years agodeps: Bump github.com/yuin/goldmark v1.3.9
Bjørn Erik Pedersen [Sun, 4 Jul 2021 13:48:33 +0000 (15:48 +0200)]
deps: Bump github.com/yuin/goldmark v1.3.9

Closes #8727

3 years agoFix panic when theme has permalinks config
Bjørn Erik Pedersen [Sat, 3 Jul 2021 08:40:59 +0000 (10:40 +0200)]
Fix panic when theme has permalinks config

Fixes #8724

3 years agoreleaser: Prepare repository for 0.85.0-DEV
hugoreleaser [Thu, 1 Jul 2021 12:59:47 +0000 (12:59 +0000)]
releaser: Prepare repository for 0.85.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.84.4 v0.84.4
hugoreleaser [Thu, 1 Jul 2021 11:51:53 +0000 (11:51 +0000)]
releaser: Add release notes to /docs for release of 0.84.4

[ci skip]

3 years agoreleaser: Bump versions for release of 0.84.4
hugoreleaser [Thu, 1 Jul 2021 11:51:53 +0000 (11:51 +0000)]
releaser: Bump versions for release of 0.84.4

[ci skip]

3 years agoreleaser: Add release notes for 0.84.4
hugoreleaser [Thu, 1 Jul 2021 11:51:53 +0000 (11:51 +0000)]
releaser: Add release notes for 0.84.4
[ci skip]

3 years agoFix Cloudflare vs Netlify cache dir issue
Bjørn Erik Pedersen [Wed, 30 Jun 2021 10:55:29 +0000 (12:55 +0200)]
Fix Cloudflare vs Netlify cache dir issue

Re-add the additional environment checks to determine if its Netlify. Seems that Cloudflare also sets `NETLIFY=true`.

This makes it look, basically, like a variant of the conditional we had before we started fixing this, but I have checked this logic on Netlify now and it should work.

Fixes #8714

3 years agoFix date format in schema and opengraph templates
Joe Mooring [Sun, 20 Jun 2021 19:30:41 +0000 (12:30 -0700)]
Fix date format in schema and opengraph templates

Fixes #8671

3 years agoreleaser: Prepare repository for 0.85.0-DEV
hugoreleaser [Tue, 29 Jun 2021 12:27:15 +0000 (12:27 +0000)]
releaser: Prepare repository for 0.85.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.84.3 v0.84.3
hugoreleaser [Tue, 29 Jun 2021 11:40:19 +0000 (11:40 +0000)]
releaser: Add release notes to /docs for release of 0.84.3

[ci skip]

3 years agoreleaser: Bump versions for release of 0.84.3
hugoreleaser [Tue, 29 Jun 2021 11:40:19 +0000 (11:40 +0000)]
releaser: Bump versions for release of 0.84.3

[ci skip]

3 years agoreleaser: Add release notes for 0.84.3
hugoreleaser [Tue, 29 Jun 2021 11:40:19 +0000 (11:40 +0000)]
releaser: Add release notes for 0.84.3
[ci skip]

3 years agoconfig: Fix Netlify default cache dir logic
Bjørn Erik Pedersen [Tue, 29 Jun 2021 07:51:09 +0000 (09:51 +0200)]
config: Fix Netlify default cache dir logic

Fixes #8710

3 years agoconfig: Fix handling of invalid OS env config overrides
Bjørn Erik Pedersen [Tue, 29 Jun 2021 07:38:05 +0000 (09:38 +0200)]
config: Fix handling of invalid OS env config overrides

Fixes #8709

3 years agoreleaser: Prepare repository for 0.85.0-DEV
hugoreleaser [Mon, 28 Jun 2021 11:41:38 +0000 (11:41 +0000)]
releaser: Prepare repository for 0.85.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.84.2 v0.84.2
hugoreleaser [Mon, 28 Jun 2021 10:59:18 +0000 (10:59 +0000)]
releaser: Add release notes to /docs for release of 0.84.2

[ci skip]

3 years agoreleaser: Bump versions for release of 0.84.2
hugoreleaser [Mon, 28 Jun 2021 10:59:18 +0000 (10:59 +0000)]
releaser: Bump versions for release of 0.84.2

[ci skip]

3 years agoreleaser: Add release notes for 0.84.2
hugoreleaser [Mon, 28 Jun 2021 10:59:18 +0000 (10:59 +0000)]
releaser: Add release notes for 0.84.2
[ci skip]

3 years agomodules: Add module.import.noMounts config
Bjørn Erik Pedersen [Mon, 28 Jun 2021 08:39:52 +0000 (10:39 +0200)]
modules: Add module.import.noMounts config

Fixes #8708

3 years agomodules: Use value type for module.Time
Bjørn Erik Pedersen [Sun, 27 Jun 2021 16:06:52 +0000 (18:06 +0200)]
modules: Use value type for module.Time

Which is in line with how we do it elsewhere.