brevno-suite/hugo
2 years agoreleaser: Prepare repository for 0.98.0-DEV master vanilla/HEAD vanilla/master vanilla/release-0.97.3
hugoreleaser [Mon, 18 Apr 2022 18:01:38 +0000 (18:01 +0000)]
releaser: Prepare repository for 0.98.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.97.3 vanilla/stable v0.97.3
hugoreleaser [Mon, 18 Apr 2022 17:22:19 +0000 (17:22 +0000)]
releaser: Bump versions for release of 0.97.3

[ci skip]

2 years agoreleaser: Add release notes for 0.97.3
hugoreleaser [Mon, 18 Apr 2022 17:22:19 +0000 (17:22 +0000)]
releaser: Add release notes for 0.97.3
[ci skip]

2 years agoFix syncing of /static regression
Bjørn Erik Pedersen [Mon, 18 Apr 2022 08:37:58 +0000 (10:37 +0200)]
Fix syncing of /static regression

As introduced in Hugo `v0.76.1`.

And add a proper test for it.

Fixes  #9794
Closes #9788

2 years agoRevert "Revert "Fix PostProcess regression for hugo server""
Bjørn Erik Pedersen [Mon, 18 Apr 2022 08:28:54 +0000 (10:28 +0200)]
Revert "Revert "Fix PostProcess regression for hugo server""

This reverts commit 6c35a1a9eacf2aa86a11ecd31c4022ce330b2f16.

Updates #9794

2 years agoreleaser: Prepare repository for 0.98.0-DEV vanilla/release-0.97.2
hugoreleaser [Sun, 17 Apr 2022 09:16:40 +0000 (09:16 +0000)]
releaser: Prepare repository for 0.98.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.97.2 v0.97.2
hugoreleaser [Sun, 17 Apr 2022 08:39:27 +0000 (08:39 +0000)]
releaser: Bump versions for release of 0.97.2

[ci skip]

2 years agoreleaser: Add release notes for 0.97.2
hugoreleaser [Sun, 17 Apr 2022 08:39:27 +0000 (08:39 +0000)]
releaser: Add release notes for 0.97.2
[ci skip]

2 years agoRevert "Fix PostProcess regression for hugo server"
Bjørn Erik Pedersen [Sun, 17 Apr 2022 08:35:01 +0000 (10:35 +0200)]
Revert "Fix PostProcess regression for hugo server"

This reverts commit 4deb5c60661bdb1d686664f0207f45517a086f29.

2 years agoreleaser: Prepare repository for 0.98.0-DEV vanilla/release-0.97.1
hugoreleaser [Sat, 16 Apr 2022 17:35:04 +0000 (17:35 +0000)]
releaser: Prepare repository for 0.98.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.97.1 v0.97.1
hugoreleaser [Sat, 16 Apr 2022 16:57:30 +0000 (16:57 +0000)]
releaser: Bump versions for release of 0.97.1

[ci skip]

2 years agoreleaser: Add release notes for 0.97.1
hugoreleaser [Sat, 16 Apr 2022 16:57:30 +0000 (16:57 +0000)]
releaser: Add release notes for 0.97.1
[ci skip]

2 years agoFix PostProcess regression for hugo server
Bjørn Erik Pedersen [Sat, 16 Apr 2022 15:50:50 +0000 (17:50 +0200)]
Fix PostProcess regression for hugo server

Fixes #9788

2 years agoFix MediaType when reading images from cache
Bjørn Erik Pedersen [Sat, 16 Apr 2022 08:40:21 +0000 (10:40 +0200)]
Fix MediaType when reading images from cache

Fixes #8931

2 years agodeps: Upgrade github.com/bep/overlayfs v0.4.0 => v0.5.0
Bjørn Erik Pedersen [Thu, 14 Apr 2022 16:30:50 +0000 (18:30 +0200)]
deps: Upgrade github.com/bep/overlayfs v0.4.0 => v0.5.0

That version implement file.Readdir/Readdirnames for n > 0.

Closes #9783

2 years agoreleaser: Prepare repository for 0.98.0-DEV vanilla/release-0.97.0
hugoreleaser [Thu, 14 Apr 2022 09:24:30 +0000 (09:24 +0000)]
releaser: Prepare repository for 0.98.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.97.0 v0.97.0
hugoreleaser [Thu, 14 Apr 2022 08:45:07 +0000 (08:45 +0000)]
releaser: Bump versions for release of 0.97.0

[ci skip]

2 years agoreleaser: Add release notes for 0.97.0
hugoreleaser [Thu, 14 Apr 2022 08:45:07 +0000 (08:45 +0000)]
releaser: Add release notes for 0.97.0
[ci skip]

2 years agoreleaser: Reduce parallelism
Bjørn Erik Pedersen [Thu, 14 Apr 2022 08:38:31 +0000 (10:38 +0200)]
releaser: Reduce parallelism

2 years agoRevert "build(deps): bump gocloud.dev from 0.20.0 to 0.25.0"
Bjørn Erik Pedersen [Wed, 13 Apr 2022 15:28:54 +0000 (17:28 +0200)]
Revert "build(deps): bump gocloud.dev from 0.20.0 to 0.25.0"

This reverts commit 20162518c450770ebfd54e0e987f34a5cccf236b.

Updates #9778

2 years agoresources: Add `key` to reources.GetRemote options map
Bjørn Erik Pedersen [Mon, 11 Apr 2022 08:34:08 +0000 (10:34 +0200)]
resources: Add `key` to reources.GetRemote options map

If set, `key` will be used as the only cache key element for the resource.

The default behaviour is to calculate the key based on the URL and all the options.

This means that you can now do:

```
{{ $cacheKey := print $url (now.Format "2006-01-02") }}
{{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }}
```

Fixes #9755

2 years agobuild(deps): bump github.com/evanw/esbuild from 0.14.34 to 0.14.36
dependabot[bot] [Tue, 12 Apr 2022 11:41:34 +0000 (11:41 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.14.34 to 0.14.36

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.34 to 0.14.36.
- [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.14.34...v0.14.36)

---
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>
2 years agoMake string sorting (e.g. ByTitle, ByLinkTitle and ByParam) language aware
Bjørn Erik Pedersen [Sun, 10 Apr 2022 18:30:52 +0000 (20:30 +0200)]
Make string sorting (e.g. ByTitle, ByLinkTitle and ByParam) language aware

Fixes #2180

2 years agoFix gosum checksum errors
Bjørn Erik Pedersen [Mon, 11 Apr 2022 16:37:13 +0000 (18:37 +0200)]
Fix gosum checksum errors

Both of the 2 libraries in question have had known "double releases" -- same tag pushed twice with different commits.

Note that this will not resolve itself in Hugo "fully" before we do a new release (which should happen in a day or two).

Fixes #9771

2 years agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.11.0 to 2.11.1
dependabot[bot] [Mon, 11 Apr 2022 08:11:10 +0000 (08:11 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.11.0 to 2.11.1

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.11.0 to 2.11.1.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.11.0...v2.11.1)

---
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>
2 years agocompare: Add a string sort benchmark
Bjørn Erik Pedersen [Mon, 11 Apr 2022 09:27:07 +0000 (11:27 +0200)]
compare: Add a string sort benchmark

2 years agoReplace all usage of CopyOnWriteFs with OverlayFs
Bjørn Erik Pedersen [Fri, 8 Apr 2022 13:15:26 +0000 (15:15 +0200)]
Replace all usage of  CopyOnWriteFs with OverlayFs

Fixes #9761

2 years agodeps: Update github.com/tdewolff/minify/v2 v2.10.0 => v2.11.0
Joe Mooring [Fri, 8 Apr 2022 18:38:37 +0000 (11:38 -0700)]
deps: Update github.com/tdewolff/minify/v2 v2.10.0 => v2.11.0

Fixes #9713
Fixes #9740

Adds support for minify.tdewolff.svg.keepComments (bool)

2 years agoMerge commit 'ec920363cdeb687c8bcac9c242767d366fb058cb'
Bjørn Erik Pedersen [Fri, 8 Apr 2022 11:32:01 +0000 (13:32 +0200)]
Merge commit 'ec920363cdeb687c8bcac9c242767d366fb058cb'

2 years agoSquashed 'docs/' changes from 63386081c..4c5edacfe
Bjørn Erik Pedersen [Fri, 8 Apr 2022 11:32:01 +0000 (13:32 +0200)]
Squashed 'docs/' changes from 63386081c..4c5edacfe

4c5edacfe cSpell config update (#1700)
9df788b25 Fix broken link (hugo modules) (#1710)
9928a70d6 Fix workspace formatting (#1707)
55467e7c8 Update partials.md
9f4bd0023 Update formats.md
9b3913c86 Remove footnoteAnchorPrefix and footnoteReturnLinkContents (#1704)
94502a09b Code block render hooks are introduced in v0.93.0 (#1701)
c447270ef Update sitemap-template.md
78665c1e0 Update sitemap-template.md
60653c17d Update the caddy error docs link (#1696)
9a3675aad Update sitemap templates (#1699)
e0d08cdbb Add wpxr-to-static to list of migration tools (#1512)
b53eb5a08 Add page for deploying with rclone (#1511)
4207c57ff netlify: Hugo 0.96.0
a18d646ea docs: Regen docshelper
e3e0981ed docs: Regen CLI docs
fda988d01 Merge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'
e4a26dbca tpl/crypto: Add optional encoding arg to hmac function

git-subtree-dir: docs
git-subtree-split: 4c5edacfeebd13eb7f876723c065466cd50e0cae

2 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Fri, 8 Apr 2022 11:31:50 +0000 (13:31 +0200)]
docs: Regen CLI docs

2 years agoRework the Destination filesystem to make --renderStaticToDisk work
Bjørn Erik Pedersen [Mon, 21 Mar 2022 08:35:15 +0000 (09:35 +0100)]
Rework the Destination filesystem to make --renderStaticToDisk work

See #9626

2 years agoRevert "Revert "Some minor adjustments to the new static filesystem logic""
Bjørn Erik Pedersen [Mon, 14 Mar 2022 15:02:06 +0000 (16:02 +0100)]
Revert "Revert "Some minor adjustments to the new static filesystem logic""

This reverts commit 5ef8a9f32c25a9b4cc821393c58733e57a7ad234.

2 years agoRevert "Revert "Allow rendering static files to disk and dynamic to memory in server...
Bjørn Erik Pedersen [Mon, 14 Mar 2022 15:02:04 +0000 (16:02 +0100)]
Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode""

This reverts commit 64b7b7a89753a39661219b2fcb92d7f185a03f63.

2 years agobuild(deps): bump github.com/evanw/esbuild from 0.14.31 to 0.14.34
dependabot[bot] [Thu, 7 Apr 2022 08:05:28 +0000 (08:05 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.14.31 to 0.14.34

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.31 to 0.14.34.
- [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.14.31...v0.14.34)

---
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>
2 years agomodules/client: Vendor config directory if present
Joe Mooring [Tue, 5 Apr 2022 17:36:08 +0000 (10:36 -0700)]
modules/client: Vendor config directory if present

Fixes #9751

2 years agoresources: Create a common ResourceFinder interface
Bjørn Erik Pedersen [Wed, 20 Oct 2021 08:11:48 +0000 (10:11 +0200)]
resources: Create a common ResourceFinder interface

And make both .Resources and resources implement it.

This gets us 2 new methods/functions, so you can now also do:

* .Resources.Get
* resources.ByType

Note that GetRemote is not covered by this interface, as that is only available as a global template function.

Fixes #8653

2 years agobuild(deps): bump gocloud.dev from 0.20.0 to 0.25.0
dependabot[bot] [Tue, 5 Apr 2022 14:18:51 +0000 (14:18 +0000)]
build(deps): bump gocloud.dev from 0.20.0 to 0.25.0

Bumps [gocloud.dev](https://github.com/google/go-cloud) from 0.20.0 to 0.25.0.
- [Release notes](https://github.com/google/go-cloud/releases)
- [Commits](https://github.com/google/go-cloud/compare/v0.20.0...v0.25.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>
2 years agobuild(deps): bump golang.org/x/tools from 0.1.9 to 0.1.10
dependabot[bot] [Mon, 21 Mar 2022 16:32:43 +0000 (16:32 +0000)]
build(deps): bump golang.org/x/tools from 0.1.9 to 0.1.10

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.9...v0.1.10)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump github.com/magefile/mage from 1.12.1 to 1.13.0
dependabot[bot] [Mon, 21 Mar 2022 16:32:21 +0000 (16:32 +0000)]
build(deps): bump github.com/magefile/mage from 1.12.1 to 1.13.0

Bumps [github.com/magefile/mage](https://github.com/magefile/mage) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/magefile/mage/releases)
- [Changelog](https://github.com/magefile/mage/blob/master/.goreleaser.yml)
- [Commits](https://github.com/magefile/mage/compare/v1.12.1...v1.13.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump github.com/gobuffalo/flect from 0.2.4 to 0.2.5
dependabot[bot] [Tue, 5 Apr 2022 11:55:34 +0000 (11:55 +0000)]
build(deps): bump github.com/gobuffalo/flect from 0.2.4 to 0.2.5

Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/gobuffalo/flect/releases)
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.4...v0.2.5)

---
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>
2 years agoLocalize all the GroupBy*Date methods
Bjørn Erik Pedersen [Tue, 5 Apr 2022 07:57:58 +0000 (09:57 +0200)]
Localize all the GroupBy*Date methods

Fixes #9745

2 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.93.0 to 0.94.0
dependabot[bot] [Tue, 5 Apr 2022 08:43:44 +0000 (08:43 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.93.0 to 0.94.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.93.0 to 0.94.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.93.0...v0.94.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>
2 years agodeploy: Set an MD5 attribute and use that if eTag not available
David Jones [Tue, 5 Apr 2022 08:42:54 +0000 (09:42 +0100)]
deploy: Set an MD5 attribute and use that if eTag not available

During Hugo deploy when a remote MD5 is invalid (e.g due to multipart eTag) Hugo reads the entire remote file and calculates the MD5 again which can be slow.

This commit updates the file upload so that it will also store an MD5 hash in the cloud provider's attributes. e.g in AWS this looks like x-amz-meta-md5chksum: 26fe392386a8123bf8956a16e08cb841.

2 years agobuild(deps): bump github.com/sanity-io/litter from 1.5.2 to 1.5.4
dependabot[bot] [Tue, 5 Apr 2022 07:42:49 +0000 (07:42 +0000)]
build(deps): bump github.com/sanity-io/litter from 1.5.2 to 1.5.4

Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter) from 1.5.2 to 1.5.4.
- [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.2...v1.5.4)

---
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>
2 years agobuild(deps): bump github.com/evanw/esbuild from 0.14.25 to 0.14.31
dependabot[bot] [Mon, 4 Apr 2022 08:04:25 +0000 (08:04 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.14.25 to 0.14.31

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.25 to 0.14.31.
- [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.14.25...v0.14.31)

---
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>
2 years agobuild(deps): bump github.com/frankban/quicktest from 1.14.2 to 1.14.3
dependabot[bot] [Fri, 25 Mar 2022 10:09:19 +0000 (10:09 +0000)]
build(deps): bump github.com/frankban/quicktest from 1.14.2 to 1.14.3

Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest) from 1.14.2 to 1.14.3.
- [Release notes](https://github.com/frankban/quicktest/releases)
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.2...v1.14.3)

---
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>
2 years agoAdd environment as a new filter to _cascade.target
Cathrine Paulsen [Tue, 5 Apr 2022 07:41:24 +0000 (07:41 +0000)]
Add environment as a new filter to _cascade.target

Fixes #9612

2 years agoMerge branch 'release-0.96.0'
Bjørn Erik Pedersen [Sun, 3 Apr 2022 17:57:04 +0000 (19:57 +0200)]
Merge branch 'release-0.96.0'

3 years agoSnap: Add {system,user}-gitconfig plugs to read gitconfig (#9619)
Further [Fri, 1 Apr 2022 08:52:39 +0000 (16:52 +0800)]
Snap: Add {system,user}-gitconfig plugs to read gitconfig (#9619)

* Add system-gitconfig plug to read /etc/gitconfig
* Add user-gitconfig plug to read user-specific gitconfig file(s)
* Add app environment setting to set $HOME as $SNAP_REAL_HOME

3 years agoreleaser: Prepare repository for 0.97.0-DEV vanilla/release-0.96.0
hugoreleaser [Sat, 26 Mar 2022 09:53:13 +0000 (09:53 +0000)]
releaser: Prepare repository for 0.97.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.96.0 v0.96.0
hugoreleaser [Sat, 26 Mar 2022 09:15:58 +0000 (09:15 +0000)]
releaser: Bump versions for release of 0.96.0

[ci skip]

3 years agoreleaser: Add release notes for 0.96.0
hugoreleaser [Sat, 26 Mar 2022 09:15:58 +0000 (09:15 +0000)]
releaser: Add release notes for 0.96.0
[ci skip]

3 years agodocs: Regen docshelper
Bjørn Erik Pedersen [Sat, 26 Mar 2022 09:06:04 +0000 (11:06 +0200)]
docs: Regen docshelper

3 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Sat, 26 Mar 2022 09:05:30 +0000 (11:05 +0200)]
docs: Regen CLI docs

3 years agoSquashed 'docs/' changes from a393f4cf4..63386081c
Bjørn Erik Pedersen [Sat, 26 Mar 2022 09:04:57 +0000 (11:04 +0200)]
Squashed 'docs/' changes from a393f4cf4..63386081c

63386081c update cSpell config update
15c76494b Update cSpell custom dictionary (#1694)
34f3167b7 Update image processing (#1625)
7462cc798 fix: pipes in sample code break table creation (#1686)
48736447e Update anchorize.md
2ff0bd10b netlify: Hugo 0.95.0
0fc1d21b2 Update configuration.md
41855e372 Fix #1682
8c663433e Update related.md
7aa072eab netlify: Hugo 0.94.2
1682c7ee7 Update render-hooks.md
ce1283cc4 Move the Render Hooks doc to its own page
bbbbfbfc6 Update configuration-markup.md
92d91a316 Update configuration-markup.md
2e8068823 Update configuration-markup.md
ff2dbca60 Update configuration-markup.md
89d8e5d65 Add code block documenation
e993539f0 Update shortcodes.md
c1b28dbfe netlify: Hugo 0.94.1
81b8c9b83 Merge branch 'tempv0.94.1'
4763b3d50 docs: Regenerate CLI docs
b18463971 netlify: Bump to Hugo 0.94.0
4152ebc1d Merge branch 'tempv0.94.0'
ba3a11ac2 docs: Regenerate docshelper
e64016d13 docs: Regenerate docshelper
29180e4d2 add `.html` suffix to partial usage and references
3213e00f2 Docs tidy-up
6cfcae4b7 docs: Regenerate CLI docs
8a6cd0b4d docs: Regenerate docshelper
b20ab262f Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'

git-subtree-dir: docs
git-subtree-split: 63386081c55de6a7f97adde564a9cfc2ad326119

3 years agoMerge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'
Bjørn Erik Pedersen [Sat, 26 Mar 2022 09:04:57 +0000 (11:04 +0200)]
Merge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'

3 years agoDeprecate .File.Extension
Sara Op den Orth [Thu, 24 Mar 2022 12:24:30 +0000 (13:24 +0100)]
Deprecate .File.Extension

Fixes #9352

3 years agoresources: Add more details to .Err
Bjørn Erik Pedersen [Thu, 24 Mar 2022 07:12:51 +0000 (08:12 +0100)]
resources: Add more details to .Err

This commit adds a .Data object (a map with `Body`, `StatusCode` etc.) to the .Err returned from `resources.GetRemote`, which means you can now do:

```
{{ with .Err }}
{{ range $k, $v := .Data }}
{{ end }}
{{ end }}
```

Fixes #9708

3 years agocommands: Change link protocol to https
Joe Mooring [Fri, 25 Mar 2022 14:21:22 +0000 (07:21 -0700)]
commands: Change link protocol to https

3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.91.0 to 0.93.0
dependabot[bot] [Fri, 25 Mar 2022 08:03:45 +0000 (08:03 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.91.0 to 0.93.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.91.0 to 0.93.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.91.0...v0.93.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/crypto: Add optional encoding arg to hmac function
Joe Mooring [Wed, 23 Mar 2022 16:48:34 +0000 (09:48 -0700)]
tpl/crypto: Add optional encoding arg to hmac function

Closes #9709

3 years agoFix typo
Panagiotis Koursaris [Thu, 10 Mar 2022 14:53:23 +0000 (16:53 +0200)]
Fix typo

3 years agoFix some typos
cuishuang [Thu, 10 Mar 2022 04:01:05 +0000 (12:01 +0800)]
Fix some typos

Signed-off-by: cuishuang <imcusg@gmail.com>
[foka@debian.org: Resolve merge conflict and squash 2 commits]
Signed-off-by: Anthony Fok <foka@debian.org>
3 years agoUpdate CONTRIBUTING.md to use "go install" to install mage
Anthony Fok [Mon, 21 Mar 2022 16:25:36 +0000 (10:25 -0600)]
Update CONTRIBUTING.md to use "go install" to install mage

In Go 1.18, "go get" no longer builds packages.

3 years agoDockerfile: Make it build with Go 1.18
Anthony Fok [Mon, 21 Mar 2022 16:25:12 +0000 (10:25 -0600)]
Dockerfile: Make it build with Go 1.18

3 years agosnap: Make it build with Go 1.18
Anthony Fok [Mon, 21 Mar 2022 16:20:53 +0000 (10:20 -0600)]
snap: Make it build with Go 1.18

3 years agobuild(deps): bump github.com/yuin/goldmark from 1.4.10 to 1.4.11
dependabot[bot] [Mon, 21 Mar 2022 14:55:23 +0000 (14:55 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.4.10 to 1.4.11

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.10 to 1.4.11.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.10...v1.4.11)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  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.3.0 to 1.4.0
dependabot[bot] [Wed, 16 Mar 2022 10:38:56 +0000 (10:38 +0000)]
build(deps): bump github.com/spf13/cobra from 1.3.0 to 1.4.0

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.3.0 to 1.4.0.
- [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.3.0...v1.4.0)

---
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 agocommands: Improve server startup to make tests less flaky
Bjørn Erik Pedersen [Fri, 18 Mar 2022 07:54:44 +0000 (08:54 +0100)]
commands: Improve server startup to make tests less flaky

Do this by announcing/listen on the local address before we start the server.

3 years agoall: Use strings.Cut
Bjørn Erik Pedersen [Thu, 17 Mar 2022 20:58:54 +0000 (21:58 +0100)]
all: Use strings.Cut

Updates #9687

3 years agoSupport '-u=patch' in hugo mod get
Luke de Waal [Sun, 20 Mar 2022 15:24:37 +0000 (16:24 +0100)]
Support '-u=patch' in hugo mod get

The control-flow for running `hugo mod get` was adapted to allow for passing `-u=patch`
instead of only being able to pass `-u`.

Fixes #9127

3 years agoMake sure file mounts higher up wins
Bjørn Erik Pedersen [Sun, 20 Mar 2022 10:24:44 +0000 (11:24 +0100)]
Make sure file mounts higher up wins

Fixes #9693

3 years agoresources/images: Require width and height for Crop, Fill, and Fit
Joe Mooring [Sun, 20 Mar 2022 17:55:02 +0000 (10:55 -0700)]
resources/images: Require width and height for Crop, Fill, and Fit

Closes #9696

3 years agoall: gofmt -w -r 'interface{} -> any' .
Bjørn Erik Pedersen [Thu, 17 Mar 2022 21:03:27 +0000 (22:03 +0100)]
all: gofmt -w -r 'interface{} -> any' .

Updates #9687

3 years agodartsass: Enable deprecation, @warn and @debug logging
Bjørn Erik Pedersen [Thu, 17 Mar 2022 16:22:34 +0000 (17:22 +0100)]
dartsass: Enable deprecation, @warn and @debug logging

* @warn and Sass deprecations are printed as WARN
* @debug is currently logged as INFO (needs the `--verbose` flag). We may adjust this if it gets too chatty.

Fixes #9683

3 years agoUse revision etc. from debug.BuildInfo
Bjørn Erik Pedersen [Thu, 17 Mar 2022 08:27:11 +0000 (09:27 +0100)]
Use revision etc. from debug.BuildInfo

Fixes #9680

3 years agoreleaser: Prepare repository for 0.96.0-DEV vanilla/release-0.95.0
hugoreleaser [Wed, 16 Mar 2022 15:00:05 +0000 (15:00 +0000)]
releaser: Prepare repository for 0.96.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.95.0 v0.95.0
hugoreleaser [Wed, 16 Mar 2022 14:20:17 +0000 (14:20 +0000)]
releaser: Bump versions for release of 0.95.0

[ci skip]

3 years agoreleaser: Add release notes for 0.95.0
hugoreleaser [Wed, 16 Mar 2022 14:20:17 +0000 (14:20 +0000)]
releaser: Add release notes for 0.95.0
[ci skip]

3 years agoreadme: Add note about Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 12:20:30 +0000 (13:20 +0100)]
readme: Add note about Go 1.18

3 years agotpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break...
Bjørn Erik Pedersen [Wed, 16 Mar 2022 12:11:29 +0000 (13:11 +0100)]
tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break }}" bug

3 years agoreadme: Add a contribution note
Bjørn Erik Pedersen [Wed, 16 Mar 2022 12:09:17 +0000 (13:09 +0100)]
readme: Add a contribution note

3 years agogithub: Make it build with Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 09:41:08 +0000 (10:41 +0100)]
github: Make it build with Go 1.18

I also ran some benchmarks comparing it to Go 1.17.8:

```bash
name                                      old time/op    new time/op    delta
SiteNew/Regular_Bundle_with_image-10        5.13ms ± 7%    4.23ms ± 7%  -17.47%  (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10    5.12ms ± 1%    4.16ms ± 1%  -18.65%  (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10      17.3ms ± 2%    15.1ms ± 1%  -12.53%  (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10             106ms ± 1%      90ms ± 0%  -15.86%  (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10        34.0ms ± 1%    30.0ms ± 2%  -11.72%  (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10        22.7ms ± 2%    20.2ms ± 1%  -10.93%  (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10      16.7ms ± 0%    14.6ms ± 1%  -12.89%  (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10         22.2ms ± 1%    19.5ms ± 1%  -12.07%  (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10               7.71ms ± 0%    6.59ms ± 1%  -14.52%  (p=0.029 n=4+4)

name                                      old alloc/op   new alloc/op   delta
SiteNew/Regular_Bundle_with_image-10        2.07MB ± 0%    2.04MB ± 0%   -1.40%  (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10    1.85MB ± 0%    1.83MB ± 0%   -1.54%  (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10      11.8MB ± 0%    11.1MB ± 0%   -6.11%  (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10            95.8MB ± 0%    95.2MB ± 0%   -0.63%  (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10        27.4MB ± 0%    26.9MB ± 0%   -1.68%  (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10        15.2MB ± 0%    14.4MB ± 0%   -4.93%  (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10      8.45MB ± 0%    8.24MB ± 0%   -2.43%  (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10         16.5MB ± 0%    16.2MB ± 0%   -1.78%  (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10               3.73MB ± 0%    3.64MB ± 0%   -2.30%  (p=0.029 n=4+4)

name                                      old allocs/op  new allocs/op  delta
SiteNew/Regular_Bundle_with_image-10         25.0k ± 0%     24.1k ± 0%   -3.60%  (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10     25.1k ± 0%     24.1k ± 0%   -3.60%  (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10        237k ± 0%      234k ± 0%   -1.29%  (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10              365k ± 0%      363k ± 0%   -0.47%  (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10          284k ± 0%      279k ± 0%   -1.98%  (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10          252k ± 0%      249k ± 0%   -1.48%  (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10        117k ± 0%      115k ± 0%   -1.68%  (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10           184k ± 0%      181k ± 0%   -1.74%  (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10                49.9k ± 0%     48.5k ± 0%   -2.79%  (p=0.029 n=4+4)
```

3 years agotpl: Adjustments and an integration test for Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 08:04:30 +0000 (09:04 +0100)]
tpl: Adjustments and an integration test for Go 1.18

Updates #9677

3 years agoRemove Go 1.17 support
Bjørn Erik Pedersen [Wed, 16 Mar 2022 07:57:58 +0000 (08:57 +0100)]
Remove Go 1.17 support

Go 1.18 had some breaking changes on source level meaning we cannot build on older Go versions anymore.

The improvements in Go 1.18 (e.g. `break` and `continue`)  were to good to pass on.

Note that you don't need Go (or Go 1.18) to run a pre-built binary.

Updates #9677

3 years agotpl: Sync go_templates for Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 07:48:16 +0000 (08:48 +0100)]
tpl: Sync go_templates for Go 1.18

Using Go tag go1.18 4aa1efed4853ea067d665a952eee77c52faac774

Updates #9677

3 years agobuild: Bump to Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 07:43:18 +0000 (08:43 +0100)]
build: Bump to Go 1.18

Updates #9677

3 years agodartsass: Improve error message when no read access
Bjørn Erik Pedersen [Tue, 15 Mar 2022 07:54:56 +0000 (08:54 +0100)]
dartsass: Improve error message when no read access

Fixes #9662

3 years agoFix and refactor typos
Cathrine Paulsen [Thu, 10 Mar 2022 13:10:21 +0000 (14:10 +0100)]
Fix and refactor typos

3 years agoImprove server startup/shutdown
Bjørn Erik Pedersen [Mon, 14 Mar 2022 15:34:23 +0000 (16:34 +0100)]
Improve server startup/shutdown

Closes #9671

3 years agocommands: Improve server tests
Bjørn Erik Pedersen [Fri, 11 Mar 2022 07:07:37 +0000 (08:07 +0100)]
commands: Improve server tests

Updates #9647

3 years agoreleaser: Prepare repository for 0.95.0-DEV vanilla/release-0.94.2
hugoreleaser [Sat, 12 Mar 2022 11:02:38 +0000 (11:02 +0000)]
releaser: Prepare repository for 0.95.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.94.2 v0.94.2
hugoreleaser [Sat, 12 Mar 2022 10:28:41 +0000 (10:28 +0000)]
releaser: Bump versions for release of 0.94.2

[ci skip]

3 years agoreleaser: Add release notes for 0.94.2
hugoreleaser [Sat, 12 Mar 2022 10:28:41 +0000 (10:28 +0000)]
releaser: Add release notes for 0.94.2
[ci skip]

3 years agodeps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10
Bjørn Erik Pedersen [Sat, 12 Mar 2022 09:45:31 +0000 (10:45 +0100)]
deps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10

Fixes #9658

3 years agoreleaser: Prepare repository for 0.95.0-DEV vanilla/release-0.94.1
hugoreleaser [Fri, 11 Mar 2022 14:30:03 +0000 (14:30 +0000)]
releaser: Prepare repository for 0.95.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.94.1 v0.94.1
hugoreleaser [Fri, 11 Mar 2022 13:53:32 +0000 (13:53 +0000)]
releaser: Bump versions for release of 0.94.1

[ci skip]

3 years agoreleaser: Add release notes for 0.94.1
hugoreleaser [Fri, 11 Mar 2022 13:53:32 +0000 (13:53 +0000)]
releaser: Add release notes for 0.94.1
[ci skip]

3 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Fri, 11 Mar 2022 13:47:27 +0000 (14:47 +0100)]
docs: Regenerate CLI docs