]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
3 years agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.12.1 to 2.12.4
dependabot[bot] [Wed, 26 Oct 2022 08:35:42 +0000 (08:35 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.12.1 to 2.12.4

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.12.1 to 2.12.4.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.12.1...v2.12.4)

---
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 agoRevise the fix for shortcode vs output format nilpointer
Bjørn Erik Pedersen [Wed, 26 Oct 2022 08:09:38 +0000 (10:09 +0200)]
Revise the fix for shortcode vs output format nilpointer

We do lazy initialization and (potentially) reuse of an output format's rendered content. We do this evaluation when we
start a new rendering a new output format. There are, however, situation where these borders gets crossed (e.g.
accessing content from another output format). We have a check for this in place for most cases, but not the content
rendering of inner markdown blocks inside shortcodes. This patch applies that same logic to the newly introduced
RenderContent method (which is not available from the templates).

Fixes #10391

3 years agoAvoid nilpointer when shortcode page content output nil
davidejones [Tue, 25 Oct 2022 15:33:25 +0000 (16:33 +0100)]
Avoid nilpointer when shortcode page content output nil

Updates #10391

3 years agolivereload: Use text/javascript here, too
Bjørn Erik Pedersen [Wed, 26 Oct 2022 10:54:50 +0000 (12:54 +0200)]
livereload: Use text/javascript here, too

3 years agomedia: Rename application/javascript, application/typescript to text/javascript etc.
Bjørn Erik Pedersen [Wed, 5 Oct 2022 07:26:30 +0000 (09:26 +0200)]
media: Rename application/javascript, application/typescript to text/javascript etc.

The former is deprecated.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
See https://discourse.gohugo.io/t/mime-type-for-javascript-is-now-text-javascript/40813

3 years agobuild(deps): bump github.com/yuin/goldmark from 1.4.15 to 1.5.2
dependabot[bot] [Wed, 26 Oct 2022 07:31:40 +0000 (07:31 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.4.15 to 1.5.2

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.15 to 1.5.2.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.15...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  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/fsnotify/fsnotify from 1.5.4 to 1.6.0
dependabot[bot] [Wed, 26 Oct 2022 07:31:41 +0000 (07:31 +0000)]
build(deps): bump github.com/fsnotify/fsnotify from 1.5.4 to 1.6.0

Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify) from 1.5.4 to 1.6.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases)
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.5.4...v1.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoSkip flakey server tests on GitHub Action on Windows
Bjørn Erik Pedersen [Wed, 26 Oct 2022 07:29:55 +0000 (09:29 +0200)]
Skip flakey server tests on GitHub Action on Windows

3 years agobuild(deps): bump github.com/magefile/mage from 1.13.0 to 1.14.0
dependabot[bot] [Thu, 22 Sep 2022 15:44:29 +0000 (15:44 +0000)]
build(deps): bump github.com/magefile/mage from 1.13.0 to 1.14.0

Bumps [github.com/magefile/mage](https://github.com/magefile/mage) from 1.13.0 to 1.14.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.13.0...v1.14.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>
3 years agogithub: Avoid duplicate test runs
Bjørn Erik Pedersen [Tue, 25 Oct 2022 14:08:41 +0000 (16:08 +0200)]
github: Avoid duplicate test runs

3 years agotpl/encoding: Add noHTMLEscape option to jsonify
Bjørn Erik Pedersen [Mon, 24 Oct 2022 13:28:03 +0000 (15:28 +0200)]
tpl/encoding: Add noHTMLEscape option to jsonify

3 years agobuild(deps): bump github.com/evanw/esbuild from 0.15.9 to 0.15.12
dependabot[bot] [Thu, 20 Oct 2022 08:06:48 +0000 (08:06 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.15.9 to 0.15.12

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.15.9 to 0.15.12.
- [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.15.9...v0.15.12)

---
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 agoUpdate Go and Alpine version in Dockerfile
Steffen Windoffer [Wed, 19 Oct 2022 17:58:25 +0000 (19:58 +0200)]
Update Go and Alpine version in Dockerfile

3 years agoDon't use self-closing generator tag
JB [Fri, 14 Oct 2022 10:16:53 +0000 (12:16 +0200)]
Don't use self-closing generator tag

3 years agobuild: Update to Go 1.19.2
Bjørn Erik Pedersen [Tue, 11 Oct 2022 07:26:31 +0000 (09:26 +0200)]
build: Update to Go 1.19.2

3 years agogithub: Use SHA versions
Bjørn Erik Pedersen [Wed, 5 Oct 2022 14:37:37 +0000 (16:37 +0200)]
github: Use SHA versions

3 years agoResolve dependency-path not found error in workflow
jongwooo [Wed, 5 Oct 2022 11:04:36 +0000 (20:04 +0900)]
Resolve dependency-path not found error in workflow

3 years agoUse setup-go action to cache dependencies
jongwooo [Wed, 5 Oct 2022 00:09:39 +0000 (09:09 +0900)]
Use setup-go action to cache dependencies

3 years agoreleaser: Prepare repository for 0.105.0-DEV
hugoreleaser [Tue, 4 Oct 2022 14:39:43 +0000 (14:39 +0000)]
releaser: Prepare repository for 0.105.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.104.3
hugoreleaser [Tue, 4 Oct 2022 14:25:23 +0000 (14:25 +0000)]
releaser: Bump versions for release of 0.104.3

[ci skip]

3 years agoresources: Update golden image dithering exception list
Bjørn Erik Pedersen [Tue, 4 Oct 2022 14:19:52 +0000 (16:19 +0200)]
resources: Update golden image dithering exception list

3 years agoresources/images: Fix 2 animated GIF resize issues
Bjørn Erik Pedersen [Tue, 4 Oct 2022 09:00:07 +0000 (11:00 +0200)]
resources/images: Fix 2 animated GIF resize issues

* Fix resize of animated GIF when target != GIF
* Avoid processing all GIF frames if targetFormat != GIF

Fixes #10354

3 years agoserver: Fix flaky TestServerPathEncodingIssues tests
Anthony Fok [Tue, 4 Oct 2022 09:43:05 +0000 (03:43 -0600)]
server: Fix flaky TestServerPathEncodingIssues tests

Set getNumHomes: 1 to enable 567 ms or 2 s of wait for the server
to be ready in TestServerPathEncodingIssues/Unicode_paths and
TestServerPathEncodingIssues/Windows_multilingual_404.

Fixes #10332

3 years agocommands: Remove extraneous newline from result of convert toTOML
Joe Mooring [Tue, 4 Oct 2022 00:25:38 +0000 (17:25 -0700)]
commands: Remove extraneous newline from result of convert toTOML

Fixes #10351

3 years agoconfig/security: Fix filename
Ricardo N Feliciano [Sun, 2 Oct 2022 10:52:04 +0000 (06:52 -0400)]
config/security: Fix filename

3 years agoreleaser: Prepare repository for 0.105.0-DEV
hugoreleaser [Thu, 29 Sep 2022 10:47:15 +0000 (10:47 +0000)]
releaser: Prepare repository for 0.105.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.104.2
hugoreleaser [Thu, 29 Sep 2022 10:31:09 +0000 (10:31 +0000)]
releaser: Bump versions for release of 0.104.2

[ci skip]

3 years agoFix htimes /: operation not permitted error on config changes
Bjørn Erik Pedersen [Thu, 29 Sep 2022 09:37:38 +0000 (11:37 +0200)]
Fix htimes /: operation not permitted error on config changes

Regression introduced in v0.104.1.

3 years agoRevert "Adjust a test"
Bjørn Erik Pedersen [Tue, 27 Sep 2022 09:42:25 +0000 (11:42 +0200)]
Revert "Adjust a test"

Committed by mistake.
This reverts commit cac773aeffb5626c9bb5a50de6bfec7b6370226d.

3 years agoAdjust a test
Bjørn Erik Pedersen [Tue, 27 Sep 2022 09:41:15 +0000 (11:41 +0200)]
Adjust a test

3 years agoreleaser: Prepare repository for 0.105.0-DEV
hugoreleaser [Mon, 26 Sep 2022 17:17:27 +0000 (17:17 +0000)]
releaser: Prepare repository for 0.105.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.104.1
hugoreleaser [Mon, 26 Sep 2022 17:05:45 +0000 (17:05 +0000)]
releaser: Bump versions for release of 0.104.1

[ci skip]

3 years agoFix /static performance regression from Hugo 0.103.0
Bjørn Erik Pedersen [Mon, 26 Sep 2022 15:34:20 +0000 (17:34 +0200)]
Fix /static performance regression from Hugo 0.103.0

In `v0.103.0` we added support for `resources.PostProcess` for all file types, not just HTML. We had benchmarks that said we were fine in that department, but those did not consider the static file syncing.

This fixes that by:

* Making sure that the /static syncer always gets its own file system without any checks for the post process token.
* For dynamic files (e.g. rendered HTML files) we add an additional check to make sure that we skip binary files (e.g. images)

Fixes #10328

3 years agoreleaser: Prepare repository for 0.105.0-DEV
hugoreleaser [Fri, 23 Sep 2022 14:44:31 +0000 (14:44 +0000)]
releaser: Prepare repository for 0.105.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.104.0
hugoreleaser [Fri, 23 Sep 2022 14:32:56 +0000 (14:32 +0000)]
releaser: Bump versions for release of 0.104.0

[ci skip]

3 years agoConsolidate the glob case logic
Bjørn Erik Pedersen [Fri, 23 Sep 2022 11:54:09 +0000 (13:54 +0200)]
Consolidate the glob case logic

Looking at the code as a whole, we ended up with a little to much "buttons". It turns out that doing case insensitive matching (lower both pattern and strings to match) performs just fine. Or at least, it
gives the penalty to the people who uses mixed case filenames.

```
GetGlob/Default_cache-10                          10.6ns ± 2%    10.6ns ± 1%   ~     (p=0.657 n=4+4)
GetGlob/Filenames_cache,_lowercase_searchs-10     10.6ns ± 2%    10.6ns ± 0%   ~     (p=1.000 n=4+4)
GetGlob/Filenames_cache,_mixed_case_searchs-10    29.7ns ± 1%    29.6ns ± 1%   ~     (p=0.886 n=4+4)
GetGlob/GetGlob-10                                13.7ns ± 1%    13.7ns ± 0%   ~     (p=0.429 n=4+4)

name                                            old alloc/op   new alloc/op   delta
GetGlob/Default_cache-10                           0.00B          0.00B        ~     (all equal)
GetGlob/Filenames_cache,_lowercase_searchs-10      0.00B          0.00B        ~     (all equal)
GetGlob/Filenames_cache,_mixed_case_searchs-10     5.00B ± 0%     5.00B ± 0%   ~     (all equal)
GetGlob/GetGlob-10                                 0.00B          0.00B        ~     (all equal)

name                                            old allocs/op  new allocs/op  delta
GetGlob/Default_cache-10                            0.00           0.00        ~     (all equal)
GetGlob/Filenames_cache,_lowercase_searchs-10       0.00           0.00        ~     (all equal)
GetGlob/Filenames_cache,_mixed_case_searchs-10      1.00 ± 0%      1.00 ± 0%   ~     (all equal)
GetGlob/GetGlob-10
```

3 years agohugofs: Fix glob case-sensitivity bug
satotake [Wed, 21 Sep 2022 15:01:54 +0000 (15:01 +0000)]
hugofs: Fix glob case-sensitivity bug

On Linux, `hugofs.Glob` does not hit any directories which includes
uppercase letters. (This does not happen on macOS.)

Since `resources.GetMatch/Match` uses `Glob`,

```
{{ resources.GetMatch "Foo/bar.css" }}
```

this does not match `assets/Foo/bar.css` .

On the other hand, you can get it with

```
{{ resources.Get "Foo/bar.css" }}
```

3 years agoserver: Fix 404 redirects on Windows
Bjørn Erik Pedersen [Fri, 23 Sep 2022 07:16:59 +0000 (09:16 +0200)]
server: Fix 404 redirects on Windows

Fixes #10314

3 years agobuild(deps): bump github.com/evanw/esbuild from 0.15.8 to 0.15.9
dependabot[bot] [Fri, 23 Sep 2022 08:04:39 +0000 (08:04 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.15.8 to 0.15.9

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.15.8 to 0.15.9.
- [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.15.8...v0.15.9)

---
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/yuin/goldmark from 1.4.14 to 1.4.15
dependabot[bot] [Thu, 22 Sep 2022 15:43:52 +0000 (15:43 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.4.14 to 1.4.15

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.14 to 1.4.15.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.14...v1.4.15)

---
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/getkin/kin-openapi from 0.100.0 to 0.103.0
dependabot[bot] [Thu, 22 Sep 2022 14:06:21 +0000 (14:06 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.100.0 to 0.103.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.100.0 to 0.103.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.100.0...v0.103.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 agodocs: Regen docs helper
Bjørn Erik Pedersen [Thu, 22 Sep 2022 16:55:00 +0000 (18:55 +0200)]
docs: Regen docs helper

3 years agobuild(deps): bump github.com/alecthomas/chroma/v2 from 2.2.0 to 2.3.0
dependabot[bot] [Thu, 22 Sep 2022 14:05:16 +0000 (14:05 +0000)]
build(deps): bump github.com/alecthomas/chroma/v2 from 2.2.0 to 2.3.0

Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/alecthomas/chroma/releases)
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml)
- [Commits](https://github.com/alecthomas/chroma/compare/v2.2.0...v2.3.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
  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/evanw/esbuild from 0.15.7 to 0.15.8
dependabot[bot] [Thu, 22 Sep 2022 14:05:19 +0000 (14:05 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.15.7 to 0.15.8

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.15.7 to 0.15.8.
- [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.15.7...v0.15.8)

---
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 agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Thu, 22 Sep 2022 15:57:13 +0000 (17:57 +0200)]
docs: Regenerate CLI docs

3 years agoRun go mod tidy
Bjørn Erik Pedersen [Thu, 22 Sep 2022 15:42:48 +0000 (17:42 +0200)]
Run go mod tidy

3 years agoresources/images: Add $image.Colors
Bjørn Erik Pedersen [Wed, 21 Sep 2022 14:24:54 +0000 (16:24 +0200)]
resources/images: Add $image.Colors

Which returns the most dominant colors of an image using a simple histogram method.

Fixes #10307

3 years agocommands: Skip flaky test on CI
Bjørn Erik Pedersen [Thu, 22 Sep 2022 09:24:42 +0000 (11:24 +0200)]
commands: Skip flaky test on CI

3 years agoconfig/security: Allow proxy variables in subcommands
Mathieu Parent [Mon, 19 Sep 2022 10:37:35 +0000 (12:37 +0200)]
config/security: Allow proxy variables in subcommands

In particular for go get

3 years agoreleaser: Prepare repository for 0.104.0-DEV
hugoreleaser [Sun, 18 Sep 2022 13:31:21 +0000 (13:31 +0000)]
releaser: Prepare repository for 0.104.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.103.1
hugoreleaser [Sun, 18 Sep 2022 13:19:01 +0000 (13:19 +0000)]
releaser: Bump versions for release of 0.103.1

[ci skip]

3 years agoserver: Fix redirects when file path contains bytes > 0x80
Bjørn Erik Pedersen [Sat, 17 Sep 2022 09:25:37 +0000 (11:25 +0200)]
server: Fix redirects when file path contains bytes > 0x80

Fixes #10287

3 years agoMerge branch 'release-0.103.0'
Bjørn Erik Pedersen [Thu, 15 Sep 2022 16:47:37 +0000 (18:47 +0200)]
Merge branch 'release-0.103.0'

3 years agoreleaser: Prepare repository for 0.104.0-DEV
hugoreleaser [Thu, 15 Sep 2022 16:35:38 +0000 (16:35 +0000)]
releaser: Prepare repository for 0.104.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.103.0
hugoreleaser [Thu, 15 Sep 2022 16:23:56 +0000 (16:23 +0000)]
releaser: Bump versions for release of 0.103.0

[ci skip]

3 years agoUse standard GOOS/GOARCH values in release archives
Bjørn Erik Pedersen [Thu, 15 Sep 2022 09:17:51 +0000 (11:17 +0200)]
Use standard GOOS/GOARCH values in release archives

But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking).

Fixes #10073

3 years agoUse standard GOOS/GOARCH values in release archives
Bjørn Erik Pedersen [Thu, 15 Sep 2022 09:17:51 +0000 (11:17 +0200)]
Use standard GOOS/GOARCH values in release archives

But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking).

Fixes #10073

3 years agoFilter out any duplicate files to post process
Bjørn Erik Pedersen [Wed, 14 Sep 2022 17:42:55 +0000 (19:42 +0200)]
Filter out any duplicate files to post process

Updates #10269

3 years agoSupport PostProcess for all file types
Bjørn Erik Pedersen [Wed, 14 Sep 2022 09:58:45 +0000 (11:58 +0200)]
Support PostProcess for all file types

Not just HTML.

Fixes #10269

3 years agobuild(deps): bump github.com/gobuffalo/flect from 0.2.5 to 0.3.0
dependabot[bot] [Wed, 14 Sep 2022 09:22:40 +0000 (09:22 +0000)]
build(deps): bump github.com/gobuffalo/flect from 0.2.5 to 0.3.0

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

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

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoserver: Add 404 support
Bjørn Erik Pedersen [Tue, 13 Sep 2022 09:33:42 +0000 (11:33 +0200)]
server: Add 404 support

3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.98.0 to 0.100.0
dependabot[bot] [Thu, 1 Sep 2022 08:07:36 +0000 (08:07 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.98.0 to 0.100.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.98.0 to 0.100.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.98.0...v0.100.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/evanw/esbuild from 0.15.5 to 0.15.7
dependabot[bot] [Mon, 5 Sep 2022 14:40:20 +0000 (14:40 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.15.5 to 0.15.7

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.15.5 to 0.15.7.
- [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.15.5...v0.15.7)

---
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/yuin/goldmark from 1.4.13 to 1.4.14
dependabot[bot] [Mon, 5 Sep 2022 14:40:40 +0000 (14:40 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.4.13 to 1.4.14

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.13 to 1.4.14.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.13...v1.4.14)

---
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 agoFeat/sponsors in readme (#10273)
Bjørn Erik Pedersen [Wed, 14 Sep 2022 08:20:57 +0000 (10:20 +0200)]
Feat/sponsors in readme (#10273)

* Update README.md

* Update README.md

3 years agoMerge commit '90ad8045056167004d27857a95542936657b8a16'
Bjørn Erik Pedersen [Tue, 13 Sep 2022 18:34:24 +0000 (20:34 +0200)]
Merge commit '90ad8045056167004d27857a95542936657b8a16'

3 years agoSquashed 'docs/' changes from e5aa641a6..392668f4f
Bjørn Erik Pedersen [Tue, 13 Sep 2022 18:34:24 +0000 (20:34 +0200)]
Squashed 'docs/' changes from e5aa641a6..392668f4f

392668f4f Update theme
65d82c845 fix versions in GitHub Pages docs (#1815)
4e078a306 Create hosting-on-azure-static-web-apps.md (#1738)
e24e25052 fix requirement typo (#1814)
0790eb173 fix broken link (#1813)
f4a1b38c7 📄 Add more clarity on merging of config files (#1493)
2e82efff0 Install on Windows: Correct + augment (#1520)
4bffd076e Update frontends to add CloudCannon's CMS (#1509)
17eea3133 Update index.md to add resource (#1508)
5a5ac1d2f Add documentation for babel sourceMap (#1492)
899b7117c Update menu-templates.md
284dc4266 Include flexible translation in i18n.md
f03421274 docs: Escaping Hugo/GO template code
4f0755683 Improve the documentation of imageConfig and the image resource
89aa723cc Clarify leaf bundle explanation and related FAQ
0c6b32bb9 Update starter-kits.md
a68151b1b Update starter-kits.md
91b145384 Update starter-kits.md
c8104b422 Update hosting-on-21yunbox.md
51ee7603b Update hosting-on-21yunbox.md
d88314499 docs(en): add hosting on 21YunBox
aab04f269 Update shortcode-templates.md to correct an error.
ed48563aa Misc improvements
87dd24e1d Fix merge failure
0bcc6dca8 js.Build: Update docs to not allow boolean inputs for sourceMap
e50a28fbc js.Build: Add SourceMap flag into js.Build opts which can turn on sourcemap
9695093a1 Fix Arch Linux installation command
3de773d7a Please remove hugo-elasticsearch plugin.
6510f0a5a release: Add some more ignore expressions to release notes config
dc90b7517 typoe > typo (!)
3427c7436 Add hugoreleaser config
5a1f2d0dd Improves formatting of resources, assets sections (#1804)
03ba56fdd Remove Flesland Flis from Showcases
9f61dac7a Update slice.md
533e4e0cd Update theme
85e50325c Simplify writing
9b30e81b9 Typo fix and remove passive form
8974b6c53 dynamic-menu-configuration
1c5467329 netlify: Hugo 0.102.3
610a937b0 Remove Over from Showcase
99f5585bc  netlify: Hugo v0.102.2
9f230ac1f netlify: Hugo v0.102.1
a6fc3f864 netlify: Bump to Hugo v0.102.0
3e9bc1a62 Merge branch 'tempv0.102.0'
c08d6d898 Update en/templates/404.md with Firebase Hosting (#1796)
322b75f40 Update configuration.md
2fa6f0b94 404 template example: remove slash relURL arg
1195f168a Remove broken link (#1767)
e0838e574 Update RenderString.md
bee6adf71 Update page-resources.md
24e142f22 Remove duplicate word from cascade description
879fc3983 docs: Update the description of PostCSS config
2ffe539e3 fix: Use `=` instead of `:=` for variable reassignments (#1771)
7496b8f87 update 404 error for digitalocean docs
c85caca4a Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'
c3888b63a docs: Regen docshelper
8a5942555 Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'
282007217 common: Add hugo.GoVersion
00b4b46da resources/page: Add :slugorfilename attribute

git-subtree-dir: docs
git-subtree-split: 392668f4f488d184b08b227028b01dbc02abd57a

3 years agoFix usage description
satotake [Thu, 8 Sep 2022 13:21:49 +0000 (22:21 +0900)]
Fix usage description

3 years agoAdd `--force` to `hugo new`
satotake [Wed, 31 Aug 2022 15:23:31 +0000 (00:23 +0900)]
Add `--force` to `hugo new`

Closes #9243

3 years agoscss: Handle single-file sourcemaps correctly
Jenny Rakoczy [Mon, 5 Sep 2022 18:54:34 +0000 (14:54 -0400)]
scss: Handle single-file sourcemaps correctly

Simple sites may only have one css file. Update the replace directive to
correctly match single-file sourcemaps and multi-file sourcemaps.

Verified locally with and without SASS and CSS imports.

Fixes #8174

3 years agorelease: Bump Hugoreleaser version
Bjørn Erik Pedersen [Sat, 3 Sep 2022 09:38:03 +0000 (11:38 +0200)]
release: Bump Hugoreleaser version

3 years agoUpdate stale.yml
Alex [Wed, 31 Aug 2022 05:11:38 +0000 (06:11 +0100)]
Update stale.yml

Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
3 years agoreleaser: Prepare repository for 0.103.0-DEV
hugoreleaser [Thu, 1 Sep 2022 10:34:57 +0000 (10:34 +0000)]
releaser: Prepare repository for 0.103.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.102.3
hugoreleaser [Thu, 1 Sep 2022 10:16:19 +0000 (10:16 +0000)]
releaser: Bump versions for release of 0.102.3

[ci skip]

3 years agoFix shortcode parser regression with quoted param values
Bjørn Erik Pedersen [Thu, 1 Sep 2022 07:26:27 +0000 (09:26 +0200)]
Fix shortcode parser regression with quoted param values

This issue was introduced in `v0.102.0`.

In 223bf2800488ad5d38854bbb595d789bc35ebe32 we removed the byte source from the parsed page result, which
meant we had to preserve exact positioning for all elements. This introduced some new `TypeIgnore` tokens
which we, wrongly, assumed didn't matter where we put in the result slice (they should be ignored anyway).

But it seems that this broke the logic where we determine if it's positional or named params in the case
where the paramater value contains escaped quoutes.

This commit makes sure that these ignore tokens (the back slashes) are never sent back to the client, which is how it was before `v0.102.0`.

This commit also fixes some lost error information in that same commit.

Fixes #10236

3 years agodeps: Update github.com/tdewolff/minify/v2 v2.12.0 => v2.12.1
Joe Mooring [Wed, 31 Aug 2022 02:06:45 +0000 (19:06 -0700)]
deps: Update github.com/tdewolff/minify/v2 v2.12.0 => v2.12.1

Fixes #10230

3 years agosnap: Use "snapcraftctl set-grade"
Anthony Fok [Tue, 30 Aug 2022 09:52:16 +0000 (03:52 -0600)]
snap: Use "snapcraftctl set-grade"

This, together with 'snapcraftctl set-version", negates the need to
modify snap/snapcraft.yaml upon each release, so the corresponding code
is removed from releaser/releaser.go.

Also, vendorInfo is extended to include the snap version number.

See #10225

3 years agosnap: Use "snapcraftctl set-version"
Anthony Fok [Tue, 30 Aug 2022 05:14:22 +0000 (23:14 -0600)]
snap: Use "snapcraftctl set-version"

This allows the use of "git describe --tags" to recognize lightweight
version tags, and the removal of initial "v" in the hugo snap version.

See #10225

3 years agosnap: Make external dependencies actually work
Anthony Fok [Sat, 13 Aug 2022 17:29:01 +0000 (11:29 -0600)]
snap: Make external dependencies actually work

Git:
 - Set GIT_EXEC_PATH and include usr/lib/git-core so that git can find the
   git-remote-https helper (needed by e.g. "go mod download").

Go:
 - Put Go in its own snap part, and use stage-snaps instead of build-snaps
   so that it is included in the final snap.
 - Set GOCACHE to a writable directory. (In a previous commit,
   HOME is set to $SNAP_REAL_HOME which is unwritable.)

Hugo:
 - Patch config/security/securityConfig.go "[security.exec] osEnv" whitelist
   (during snap build) so that external dependencies can use the required
   environment variables to run properly from within the snap.

Asciidoctor:
 - Replace shebang line in asciidoctor so it can find the ruby executable.
 - Set RUBYLIB so that Ruby can find its libraries.
   Caveat/TODO: The Ruby version is hardcoded in our custom RUBYLIB.

Embedded Dart Sass:
 - Download from GitHub and install it, for amd64 and arm64 only.

Node.js:
 - Remove my incomplete include list so that npx is actually installed.
 - Set npm_config_{cache,init_module,userconfig} to writable locations.

Pandoc:
 - Set pandoc_datadir so that Pandoc can find its data files.

rst2html:
 - Install python3-docutils package for rst2html, rst2html5, etc.
 - Set PYTHONHOME so that Python can find its libraries.

Note that asciidoctor, pandoc and rst2html are not in Hugo’s default
"[security.exec] allow" whitelist, and the snap package does not change
that default, so they still needed to be whitelisted manually in
config.toml if necessary by the end user.

Special thanks to Joe Mooring (@jmooring) for meticulously diagnosing
the issue and providing a comprehensive test repository at
https://github.com/jmooring/hugo-snap-test without which I would not
have been able to understand and resolve the issue.

Fixes #9078

3 years agorelease: Add the releaser commits to the ignore list
Bjørn Erik Pedersen [Mon, 29 Aug 2022 14:29:45 +0000 (16:29 +0200)]
release: Add the releaser commits to the ignore list

3 years agorelease: Fix the Deb archives
Bjørn Erik Pedersen [Mon, 29 Aug 2022 09:47:37 +0000 (11:47 +0200)]
release: Fix the Deb archives

Fixes #10220

3 years agoreleaser: Prepare repository for 0.103.0-DEV
hugoreleaser [Sun, 28 Aug 2022 16:41:06 +0000 (16:41 +0000)]
releaser: Prepare repository for 0.103.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.102.0
hugoreleaser [Sun, 28 Aug 2022 16:29:34 +0000 (16:29 +0000)]
releaser: Bump versions for release of 0.102.0

[ci skip]

3 years agoAdd linux/arm64 extended to release setup
Bjørn Erik Pedersen [Fri, 5 Aug 2022 14:35:24 +0000 (16:35 +0200)]
Add linux/arm64 extended to release setup

Fixes #8257

3 years agolicense: Add copyright info
Bjørn Erik Pedersen [Sun, 28 Aug 2022 10:55:47 +0000 (12:55 +0200)]
license: Add copyright info

Closes #10218

3 years agobuild(deps): bump go.uber.org/atomic from 1.9.0 to 1.10.0
dependabot[bot] [Fri, 26 Aug 2022 16:49:52 +0000 (16:49 +0000)]
build(deps): bump go.uber.org/atomic from 1.9.0 to 1.10.0

Bumps [go.uber.org/atomic](https://github.com/uber-go/atomic) from 1.9.0 to 1.10.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.9.0...v1.10.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>
3 years agobuild(deps): bump github.com/kyokomi/emoji/v2 from 2.2.9 to 2.2.10
dependabot[bot] [Fri, 26 Aug 2022 10:02:20 +0000 (10:02 +0000)]
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.9 to 2.2.10

Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji) from 2.2.9 to 2.2.10.
- [Release notes](https://github.com/kyokomi/emoji/releases)
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.9...v2.2.10)

---
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>
3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.97.0 to 0.98.0
dependabot[bot] [Fri, 26 Aug 2022 10:02:29 +0000 (10:02 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.97.0 to 0.98.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.97.0 to 0.98.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.97.0...v0.98.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 agodeps: Update github.com/pelletier/go-toml/v2 v2.0.2 => v2.0.4
Bjørn Erik Pedersen [Fri, 26 Aug 2022 12:53:58 +0000 (14:53 +0200)]
deps: Update github.com/pelletier/go-toml/v2 v2.0.2 => v2.0.4

Closes #10210

3 years agobuild(deps): bump github.com/spf13/afero from 1.8.2 to 1.9.2
dependabot[bot] [Thu, 25 Aug 2022 10:29:57 +0000 (10:29 +0000)]
build(deps): bump github.com/spf13/afero from 1.8.2 to 1.9.2

Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.8.2 to 1.9.2.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](https://github.com/spf13/afero/compare/v1.8.2...v1.9.2)

---
updated-dependencies:
- dependency-name: github.com/spf13/afero
  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/parse/v2 from 2.6.1 to 2.6.2
dependabot[bot] [Thu, 25 Aug 2022 10:30:04 +0000 (10:30 +0000)]
build(deps): bump github.com/tdewolff/parse/v2 from 2.6.1 to 2.6.2

Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/tdewolff/parse/releases)
- [Commits](https://github.com/tdewolff/parse/compare/v2.6.1...v2.6.2)

---
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>
3 years agobuild(deps): bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16
dependabot[bot] [Tue, 23 Aug 2022 11:35:24 +0000 (11:35 +0000)]
build(deps): bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16

Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.14 to 0.0.16.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.14...v0.0.16)

---
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/rogpeppe/go-internal from 1.8.1 to 1.9.0
dependabot[bot] [Tue, 23 Aug 2022 04:55:08 +0000 (04:55 +0000)]
build(deps): bump github.com/rogpeppe/go-internal from 1.8.1 to 1.9.0

Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases)
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
  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/yuin/goldmark from 1.4.12 to 1.4.13
dependabot[bot] [Tue, 23 Aug 2022 09:09:08 +0000 (09:09 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.4.12 to 1.4.13

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.12 to 1.4.13.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.12...v1.4.13)

---
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.4.0 to 1.5.0
dependabot[bot] [Mon, 22 Aug 2022 22:05:18 +0000 (22:05 +0000)]
build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.4.0...v1.5.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 agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.11.10 to 2.12.0
dependabot[bot] [Mon, 11 Jul 2022 08:04:03 +0000 (08:04 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.11.10 to 2.12.0

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.11.10 to 2.12.0.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.11.10...v2.12.0)

---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
  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/evanw/esbuild from 0.14.43 to 0.15.5
dependabot[bot] [Wed, 17 Aug 2022 08:05:38 +0000 (08:05 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.14.43 to 0.15.5

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.43 to 0.15.5.
- [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.43...v0.15.5)

---
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>
3 years agoreadme: Add Golang URL to Go links
Reece Russell [Mon, 22 Aug 2022 17:45:15 +0000 (18:45 +0100)]
readme: Add Golang URL to Go links

3 years agoUpdate README.md
Bjørn Erik Pedersen [Fri, 19 Aug 2022 17:15:58 +0000 (19:15 +0200)]
Update README.md

3 years agoUpdate README.md
Bjørn Erik Pedersen [Fri, 19 Aug 2022 17:12:43 +0000 (19:12 +0200)]
Update README.md