]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
4 years agomarkup/highlight: Add hl_inline option
Bjørn Erik Pedersen [Wed, 15 Jun 2022 11:51:29 +0000 (13:51 +0200)]
markup/highlight: Add hl_inline option

Closes #9442
Closes #9635
Closes #9638

4 years agodeps: Update github.com/alecthomas/chroma/v2 v2.1.0 => v2.2.0
Bjørn Erik Pedersen [Wed, 15 Jun 2022 11:46:44 +0000 (13:46 +0200)]
deps: Update github.com/alecthomas/chroma/v2 v2.1.0 => v2.2.0

4 years agobuild(deps): bump github.com/clbanning/mxj/v2 from 2.5.5 to 2.5.6
dependabot[bot] [Wed, 15 Jun 2022 10:12:07 +0000 (10:12 +0000)]
build(deps): bump github.com/clbanning/mxj/v2 from 2.5.5 to 2.5.6

Bumps [github.com/clbanning/mxj/v2](https://github.com/clbanning/mxj) from 2.5.5 to 2.5.6.
- [Release notes](https://github.com/clbanning/mxj/releases)
- [Commits](https://github.com/clbanning/mxj/compare/v2.5.5...v2.5.6)

---
updated-dependencies:
- dependency-name: github.com/clbanning/mxj/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2
dependabot[bot] [Wed, 15 Jun 2022 10:14:11 +0000 (10:14 +0000)]
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2

Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/pelletier/go-toml/releases)
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml)
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.1...v2.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump golang.org/x/tools from 0.1.10 to 0.1.11
dependabot[bot] [Wed, 15 Jun 2022 08:39:10 +0000 (08:39 +0000)]
build(deps): bump golang.org/x/tools from 0.1.10 to 0.1.11

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

---
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>
4 years agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.11.5 to 2.11.10
dependabot[bot] [Wed, 15 Jun 2022 08:05:23 +0000 (08:05 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.11.5 to 2.11.10

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

---
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>
4 years agobuild(deps): bump github.com/evanw/esbuild from 0.14.42 to 0.14.43
dependabot[bot] [Wed, 15 Jun 2022 08:38:57 +0000 (08:38 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.14.42 to 0.14.43

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

---
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>
4 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.94.0 to 0.97.0
dependabot[bot] [Mon, 13 Jun 2022 08:03:37 +0000 (08:03 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.94.0 to 0.97.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.94.0 to 0.97.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.94.0...v0.97.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>
4 years agodeps: Udpate to github.com/alecthomas/chroma/v2
Bjørn Erik Pedersen [Thu, 26 May 2022 10:17:10 +0000 (12:17 +0200)]
deps: Udpate to github.com/alecthomas/chroma/v2

Fixes #9932
Fixes #9931

4 years agocommon: Add hugo.GoVersion
Khayyam Saleem [Mon, 30 May 2022 13:12:41 +0000 (09:12 -0400)]
common: Add hugo.GoVersion

Closes #9849. This enables `hugo.GoVersion` in templates to access the
version of Go that the Hugo binary was built with.

4 years agoresources: Panic on Copy of Resource with .Err
Bjørn Erik Pedersen [Mon, 13 Jun 2022 14:33:41 +0000 (16:33 +0200)]
resources: Panic on Copy of Resource with .Err

Fixes #10006

4 years agoresources/page: Add :slugorfilename attribute
Dawid Potocki [Mon, 13 Jun 2022 12:22:58 +0000 (00:22 +1200)]
resources/page: Add :slugorfilename attribute

Fixes #4739, #385

4 years agoRespect NO_COLOR
Bjørn Erik Pedersen [Mon, 13 Jun 2022 13:28:08 +0000 (15:28 +0200)]
Respect NO_COLOR

Fixes #10004

4 years agoreadme: Update dependency list
Andreas Deininger [Mon, 13 Jun 2022 11:16:45 +0000 (13:16 +0200)]
readme: Update dependency list

4 years agoFix relURL with leading slash when baseURL includes a subdirectory
Bjørn Erik Pedersen [Mon, 13 Jun 2022 07:52:02 +0000 (09:52 +0200)]
Fix relURL with leading slash when baseURL includes a subdirectory

Fixes #9994

4 years agojs: Resolve index.esm.js
Bjørn Erik Pedersen [Sun, 12 Jun 2022 16:42:53 +0000 (18:42 +0200)]
js: Resolve index.esm.js

Same logic as for `index.{js,ts...}` files applies; if both `index.esm.js` and `index.js` exists (unlikely), you need to use the name
with extension when importing, else the `index.js` will win.

Fixes #8631

4 years agoAdd animated GIF support
Bjørn Erik Pedersen [Sat, 11 Jun 2022 16:52:55 +0000 (18:52 +0200)]
Add animated GIF support

Note that this is for GIFs only (and not Webp).

Fixes #5030

4 years agoresources: Add a Gif source file to golden tests
Bjørn Erik Pedersen [Sun, 12 Jun 2022 13:14:27 +0000 (15:14 +0200)]
resources: Add a Gif source file to golden tests

4 years agoreleaser: Prepare repository for 0.101.0-DEV
hugoreleaser [Wed, 8 Jun 2022 11:07:37 +0000 (11:07 +0000)]
releaser: Prepare repository for 0.101.0-DEV

[ci skip]

4 years agoreleaser: Bump versions for release of 0.100.2
hugoreleaser [Wed, 8 Jun 2022 10:25:57 +0000 (10:25 +0000)]
releaser: Bump versions for release of 0.100.2

[ci skip]

4 years agoreleaser: Add release notes for 0.100.2
hugoreleaser [Wed, 8 Jun 2022 10:25:57 +0000 (10:25 +0000)]
releaser: Add release notes for 0.100.2
[ci skip]

4 years agoUpdate CONTRIBUTING.md
Bjørn Erik Pedersen [Tue, 7 Jun 2022 15:22:17 +0000 (17:22 +0200)]
Update CONTRIBUTING.md

4 years agoFix raw TOML dates in where/eq
Bjørn Erik Pedersen [Mon, 6 Jun 2022 07:48:40 +0000 (09:48 +0200)]
Fix raw TOML dates in where/eq

Note that this has only been a problem with "raw dates" in TOML files in /data and similar. The predefined front matter
dates `.Date` etc. are converted to a Go Time and has worked fine even after upgrading to v2 of the go-toml lib.

Fixes #9979

4 years agodeps: Update to github.com/pelletier/go-toml/v2 v2.0.1
Anthony Fok [Sat, 4 Jun 2022 09:00:26 +0000 (03:00 -0600)]
deps: Update to github.com/pelletier/go-toml/v2 v2.0.1

4 years agotpl/path: Add path.BaseName function
Joe Mooring [Sat, 4 Jun 2022 20:40:32 +0000 (13:40 -0700)]
tpl/path: Add path.BaseName function

Closes #9973

4 years agolivereload: Use `X-Forwarded-Host` for Codespace
satotake [Sun, 5 Jun 2022 06:26:16 +0000 (15:26 +0900)]
livereload: Use `X-Forwarded-Host` for Codespace

Codespace has 2 types of usage

1. in browser
2. vscode on local computer

As long as you select 2 (on local), Hugo handles livereload expectedly.
But if you use it in browser, Hugo does not reload on file change, as #9936 said.

This issue happens because `CheckOrigin` always fails.
Remote server could rewrite request host name.
Fix this by respecting `X-Forwarded-Host` header during origin checking

After merging this, you can preview changes lively with codespaece in browser.

```sh
hugo server --liveReloadPort 443
```

Close #9936

4 years agohelpers: Fix panic with invalid defaultMarkdownHandler
Bjørn Erik Pedersen [Sat, 4 Jun 2022 15:39:34 +0000 (17:39 +0200)]
helpers: Fix panic with invalid defaultMarkdownHandler

Fixes #9968

4 years agoresources: Register MediaTypes before build
Paul van Brouwershaven [Fri, 3 Jun 2022 19:37:50 +0000 (21:37 +0200)]
resources: Register MediaTypes before build

Fixes #9971

4 years agoreleaser: Prepare repository for 0.101.0-DEV
hugoreleaser [Wed, 1 Jun 2022 10:54:16 +0000 (10:54 +0000)]
releaser: Prepare repository for 0.101.0-DEV

[ci skip]

4 years agoreleaser: Bump versions for release of 0.100.1
hugoreleaser [Wed, 1 Jun 2022 10:11:48 +0000 (10:11 +0000)]
releaser: Bump versions for release of 0.100.1

[ci skip]

4 years agoreleaser: Add release notes for 0.100.1
hugoreleaser [Wed, 1 Jun 2022 10:11:48 +0000 (10:11 +0000)]
releaser: Add release notes for 0.100.1
[ci skip]

4 years agoFix panic with markdownify/RenderString with shortcode on Page with no content file
Bjørn Erik Pedersen [Wed, 1 Jun 2022 08:19:05 +0000 (10:19 +0200)]
Fix panic with markdownify/RenderString with shortcode on Page with no content file

Fixes #9959

4 years agoreleaser: Prepare repository for 0.101.0-DEV
hugoreleaser [Tue, 31 May 2022 09:19:15 +0000 (09:19 +0000)]
releaser: Prepare repository for 0.101.0-DEV

[ci skip]

4 years agoreleaser: Bump versions for release of 0.100.0
hugoreleaser [Tue, 31 May 2022 08:37:12 +0000 (08:37 +0000)]
releaser: Bump versions for release of 0.100.0

[ci skip]

4 years agoreleaser: Add release notes for 0.100.0
hugoreleaser [Tue, 31 May 2022 08:37:12 +0000 (08:37 +0000)]
releaser: Add release notes for 0.100.0
[ci skip]

4 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Tue, 31 May 2022 08:24:01 +0000 (10:24 +0200)]
docs: Regen CLI docs

4 years agodocs: Regen docs helper
Bjørn Erik Pedersen [Tue, 31 May 2022 08:23:20 +0000 (10:23 +0200)]
docs: Regen docs helper

4 years agoMerge commit 'e4bfe59c4e043c92d3992587d8c64d264b262a22'
Bjørn Erik Pedersen [Tue, 31 May 2022 08:22:05 +0000 (10:22 +0200)]
Merge commit 'e4bfe59c4e043c92d3992587d8c64d264b262a22'

4 years agoSquashed 'docs/' changes from 2d9da3a56..96fdc246c
Bjørn Erik Pedersen [Tue, 31 May 2022 08:21:09 +0000 (10:21 +0200)]
Squashed 'docs/' changes from 2d9da3a56..96fdc246c

96fdc246c Fix outdated i18n warnings flag mention on the multilingual page
39d197345 netlify: Hugo 0.99.1
fafd5070e Typo: Vriables > Variables
348c4e237 Update postcss.md
924fa76b6 netlify: Hugo 0.99.0
bb3f02ac1 Merge branch 'tempv0.99.0'
bdd0b6eaf Update usage.md
f562ff99d postcss: Fix import error handling
5d73f215f docs: Regen CLI docs

git-subtree-dir: docs
git-subtree-split: 96fdc246cc901a4c4ce6a28bab681fda2cff355b

4 years agoFix indentation in highlight shortcode
Bjørn Erik Pedersen [Mon, 30 May 2022 18:42:46 +0000 (20:42 +0200)]
Fix indentation in highlight shortcode

This commit adds a new `.InnerDeindent` method to the shortcode context, which is `.Inner` with any
indendation removed. This is then used in the built-in `highlight` shortcode to prevent the extra
whitespace getting hightlighted.

Fixes #4717

4 years agoMake .RenderString render shortcodes
Bjørn Erik Pedersen [Sun, 29 May 2022 14:41:57 +0000 (16:41 +0200)]
Make .RenderString render shortcodes

Fixes #6703

4 years agoImprove shortcode indentation handling
Bjørn Erik Pedersen [Sat, 28 May 2022 11:18:50 +0000 (13:18 +0200)]
Improve shortcode indentation handling

* Record the leading whitespace (tabs, spaces) before the shortcode when parsing the page.
* Apply that indentation to the rendered result of shortcodes without inner content (where the user will apply indentation).

Fixes #9946

4 years agoAdd Markdown as an output format
Bjørn Erik Pedersen [Fri, 27 May 2022 13:19:02 +0000 (15:19 +0200)]
Add Markdown as an output format

The motivation behind this is not to make it easier to publish Markdown files, as that sounds unusual.

This is mainly meant for shortcodes that produces Markdown to be inlined.

You would do this by creating shortcodes with `*.md` suffix (e.g. `layouts/shortcodes/myshortcode.md`).

This output format is defined as plain text, and will use Go's much more lenient text template parser.

Updates #9821

4 years agobuild(deps): bump github.com/evanw/esbuild from 0.14.39 to 0.14.42
dependabot[bot] [Mon, 30 May 2022 08:05:06 +0000 (08:05 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.14.39 to 0.14.42

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.39 to 0.14.42.
- [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.39...v0.14.42)

---
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>
4 years agoRun go mod tidy
Bjørn Erik Pedersen [Sun, 29 May 2022 21:05:16 +0000 (23:05 +0200)]
Run go mod tidy

4 years agoAdd a shortcode benchmark
Bjørn Erik Pedersen [Sun, 29 May 2022 13:14:32 +0000 (15:14 +0200)]
Add a shortcode benchmark

4 years agoRemove Blackfriday markdown engine
Bjørn Erik Pedersen [Sat, 28 May 2022 09:01:47 +0000 (11:01 +0200)]
Remove Blackfriday markdown engine

It has been deprecated for a long time, its v1 version is not maintained anymore, and there are many known issues. Goldmark should be
a mature replacement by now.

Closes #9934

4 years agoFix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself
Bjørn Erik Pedersen [Wed, 25 May 2022 16:46:42 +0000 (18:46 +0200)]
Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself

There may be sites in the wild that depends on the faulty behaviour of IsDescendant/IsAncestor when comparing to itself, but

* The documentation and common sense says that a thing cannot be descendant or ancestor to itself.
* The bug introduced in `HasMenuCurrent` comes directly from that confusion.

Fixes #9846

4 years agobuild(deps): bump github.com/sanity-io/litter from 1.5.4 to 1.5.5
dependabot[bot] [Fri, 27 May 2022 17:14:50 +0000 (17:14 +0000)]
build(deps): bump github.com/sanity-io/litter from 1.5.4 to 1.5.5

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

---
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>
4 years agodeps: Update to github.com/tdewolff/minify/v2 v2.11.5
Bjørn Erik Pedersen [Fri, 27 May 2022 16:23:48 +0000 (18:23 +0200)]
deps: Update to github.com/tdewolff/minify/v2 v2.11.5

4 years agoDon't use the baseURL /path as part of the resource cache key
Bjørn Erik Pedersen [Fri, 27 May 2022 11:23:37 +0000 (13:23 +0200)]
Don't use the baseURL /path as part of the resource cache key

As that prevents Hugo projects with sub paths in their `baseURL` to use themes with cached resources.

Fixes #9787

4 years agopostcss: Make the resource cache key more stable
Bjørn Erik Pedersen [Fri, 27 May 2022 15:01:35 +0000 (17:01 +0200)]
postcss: Make the resource cache key more stable

By using the input map as the basis, which means the hash will not change if we add/rename/remove options.

This happened in Hugo 0.99, as we added a new options. This is unortunate.

Unfortunately this means that the cache keys for PostCSS will change one more time in 0.100, but will be stable going forward.

Note that we have implemented this pattern in all the other resource transformers.

Updates #9787

4 years agocommands: Fix case where languages cannot be configured
Bjørn Erik Pedersen [Fri, 27 May 2022 11:34:20 +0000 (13:34 +0200)]
commands: Fix case where languages cannot be configured

There are some commands that needs to complete without a complete configuration.

4 years agogithub: Set HUGO_BUILD_TAGS: extended when running tests
Bjørn Erik Pedersen [Fri, 27 May 2022 08:06:45 +0000 (10:06 +0200)]
github: Set HUGO_BUILD_TAGS: extended when running tests

Also fix TestDecodeConfig/Basic which started to fail in the extended build in 0.99.1.

Closes #9935

4 years agometrics: Fix divide by zero error
Cameron Moore [Thu, 26 May 2022 02:14:37 +0000 (21:14 -0500)]
metrics: Fix divide by zero error

Under certain conditions, `howSimilarString` could reach a divide-by-
zero situation which causes bogus values to print in the cache potential
column of the template hints output.  This situation essentially causes
a `int(math.NaN())` value to be returned and hilarity ensues thereafter.

4 years agoFix error message when PostCSS config file is not found
Bjørn Erik Pedersen [Wed, 25 May 2022 19:21:28 +0000 (21:21 +0200)]
Fix error message when PostCSS config file is not found

Fixes #9927

4 years agoserver: Skip watching dirs in ignoreFiles
Bjørn Erik Pedersen [Wed, 25 May 2022 16:31:00 +0000 (18:31 +0200)]
server: Skip watching dirs in ignoreFiles

Fixes #9838

4 years agoresources: Improve error message on .Resize etc. on SVGs
Bjørn Erik Pedersen [Wed, 25 May 2022 16:06:20 +0000 (18:06 +0200)]
resources: Improve error message on .Resize etc. on SVGs

Fixes #9875

4 years agoFix Plainify edge cases
Bjørn Erik Pedersen [Wed, 25 May 2022 08:56:14 +0000 (10:56 +0200)]
Fix Plainify edge cases

This commit replaces the main part of `helpers.StripHTML` with Go's implementation in its html/template package.

It's a little slower, but correctness is more important:

```bash
BenchmarkStripHTMLOld-10       680316       1764 ns/op      728 B/op        4 allocs/op
BenchmarkStripHTMLNew-10       384520       3099 ns/op     2089 B/op       10 allocs/op
```

Fixes #9199
Fixes #9909
Closes #9410

4 years agoAdd resources.Copy
Bjørn Erik Pedersen [Tue, 24 May 2022 07:34:36 +0000 (09:34 +0200)]
Add resources.Copy

Implemented by most Resource objects, but not Page (for now).

Fixes #9313

4 years agobasefs: add `noBuildLock` flag
satotake [Sun, 22 May 2022 17:14:17 +0000 (02:14 +0900)]
basefs: add `noBuildLock` flag

If the flag is enabled, `.hugo_build.lock` will not be created.
This ensures safe running on read-only filesystem etc.
Close #9780

4 years agoimport: Fix importing jekyll site
satotake [Sat, 21 May 2022 18:41:28 +0000 (03:41 +0900)]
import: Fix importing jekyll site

Just use `afero.OsFs` without building site.
Close #9817

4 years agoreleaser: Prepare repository for 0.100.0-DEV
hugoreleaser [Wed, 18 May 2022 12:01:09 +0000 (12:01 +0000)]
releaser: Prepare repository for 0.100.0-DEV

[ci skip]

4 years agoreleaser: Bump versions for release of 0.99.1
hugoreleaser [Wed, 18 May 2022 11:18:14 +0000 (11:18 +0000)]
releaser: Bump versions for release of 0.99.1

[ci skip]

4 years agoreleaser: Add release notes for 0.99.1
hugoreleaser [Wed, 18 May 2022 11:18:14 +0000 (11:18 +0000)]
releaser: Add release notes for 0.99.1
[ci skip]

4 years agoreleaser: Fix version replacement
Bjørn Erik Pedersen [Wed, 18 May 2022 11:12:42 +0000 (13:12 +0200)]
releaser: Fix version replacement

4 years agoserver: Fix multihost crash
Bjørn Erik Pedersen [Wed, 18 May 2022 07:47:55 +0000 (09:47 +0200)]
server: Fix multihost crash

As introduced in v0.99.0.

Fixes #9901

4 years agoUpdate stale.yml
Bjørn Erik Pedersen [Tue, 17 May 2022 11:57:01 +0000 (13:57 +0200)]
Update stale.yml

4 years agocommon/hugo: Fix version logic
hugoreleaser [Mon, 16 May 2022 08:50:17 +0000 (08:50 +0000)]
common/hugo: Fix version logic

[ci skip]

4 years agoreleaser: Bump versions for release of 0.99.0
hugoreleaser [Mon, 16 May 2022 08:10:56 +0000 (08:10 +0000)]
releaser: Bump versions for release of 0.99.0

[ci skip]

4 years agoreleaser: Add release notes for 0.99.0
hugoreleaser [Mon, 16 May 2022 08:10:55 +0000 (08:10 +0000)]
releaser: Add release notes for 0.99.0
[ci skip]

4 years agoserver: Refresh the error template
Bjørn Erik Pedersen [Mon, 16 May 2022 07:22:51 +0000 (09:22 +0200)]
server: Refresh the error template

We cannot cache it forever, as that will not allow the end user to edit and preview it.

4 years agoserver: Fix SIGINT handling after loading bad configuration
Bjørn Erik Pedersen [Sun, 15 May 2022 19:01:36 +0000 (21:01 +0200)]
server: Fix SIGINT handling after loading bad configuration

Also fix the config error messages.

Fixes #9664

4 years agoImprove SASS errors
Bjørn Erik Pedersen [Sun, 15 May 2022 09:40:34 +0000 (11:40 +0200)]
Improve SASS errors

Fixes #9897

4 years agopostcss: Fix import error handling
Bjørn Erik Pedersen [Sat, 14 May 2022 13:51:04 +0000 (15:51 +0200)]
postcss: Fix import error handling

Note that we will now fail if `inlineImports` is enabled and we cannot resolve an import.

You can work around this by either:

* Use url imports or imports with media queries.
* Set `skipInlineImportsNotFound=true` in the options

Also get the argument order in the different NewFileError* funcs in line.

Fixes #9895

4 years agobuild(deps): bump github.com/fsnotify/fsnotify from 1.5.3 to 1.5.4
dependabot[bot] [Sat, 14 May 2022 11:46:16 +0000 (11:46 +0000)]
build(deps): bump github.com/fsnotify/fsnotify from 1.5.3 to 1.5.4

Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify) from 1.5.3 to 1.5.4.
- [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.3...v1.5.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
4 years agocommon/herrors: Remove unused struct
Bjørn Erik Pedersen [Sat, 14 May 2022 11:56:28 +0000 (13:56 +0200)]
common/herrors: Remove unused struct

4 years agobuild(deps): bump github.com/evanw/esbuild from 0.14.38 to 0.14.39
dependabot[bot] [Thu, 12 May 2022 08:02:55 +0000 (08:02 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.14.38 to 0.14.39

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.38 to 0.14.39.
- [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.38...v0.14.39)

---
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>
4 years agoerrors: Misc improvements
Bjørn Erik Pedersen [Thu, 12 May 2022 09:43:20 +0000 (11:43 +0200)]
errors: Misc improvements

* Redo the server error template
* Always add the content file context if relevant
* Remove some now superflous error string matching
* Move the server error template to _server/error.html
* Add file context (with position) to codeblock render blocks
* Improve JS build errors

Fixes #9892
Fixes #9891
Fixes #9893

4 years agoserver: Always rebuild the files involved in an error
Bjørn Erik Pedersen [Thu, 12 May 2022 09:18:18 +0000 (11:18 +0200)]
server: Always rebuild the files involved in an error

Fixes #9884

4 years agopostcss: Fix line numbers in error messages
Bjørn Erik Pedersen [Thu, 12 May 2022 08:09:15 +0000 (10:09 +0200)]
postcss: Fix line numbers in error messages

Fixes #9880

4 years agoUpdate CONTRIBUTING.md
Bjørn Erik Pedersen [Fri, 13 May 2022 09:42:12 +0000 (11:42 +0200)]
Update CONTRIBUTING.md

Add some info about commit subject prefixes.

4 years agojs: Bump test dependency
Bjørn Erik Pedersen [Fri, 13 May 2022 09:08:23 +0000 (11:08 +0200)]
js: Bump test dependency

To work around a cache issue.

4 years agodeps: Update github.com/spf13/cast v1.4.1 => v1.5.0
Bjørn Erik Pedersen [Wed, 11 May 2022 14:22:42 +0000 (16:22 +0200)]
deps: Update github.com/spf13/cast v1.4.1 => v1.5.0

4 years agohugolib: Check for nil in shouldRender
Bjørn Erik Pedersen [Mon, 9 May 2022 13:53:25 +0000 (15:53 +0200)]
hugolib: Check for nil in shouldRender

4 years agoRevise the use of htime.Since/htime.Now
Bjørn Erik Pedersen [Mon, 9 May 2022 08:05:19 +0000 (10:05 +0200)]
Revise the use of htime.Since/htime.Now

We cannot (also, it doesn't add any value)  use that when the `clock` is set,

* To measure time (before that global is set)
* To compare file timestamps re cache eviction

Fixes #9868

4 years agotpl/collections: Make sort stable
Bjørn Erik Pedersen [Sun, 8 May 2022 16:37:14 +0000 (18:37 +0200)]
tpl/collections: Make sort stable

Fixes #9865

4 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Sun, 8 May 2022 14:57:29 +0000 (16:57 +0200)]
docs: Regen CLI docs

4 years agoSquashed 'docs/' changes from 7030fe3a2..2d9da3a56
Bjørn Erik Pedersen [Sun, 8 May 2022 14:56:42 +0000 (16:56 +0200)]
Squashed 'docs/' changes from 7030fe3a2..2d9da3a56

2d9da3a56 Update build-options.md
5d910e24d Update introduction.md
111482a8d netlify: Hugo 0.98.0
d5505ca6f docs: Regen docs helper

git-subtree-dir: docs
git-subtree-split: 2d9da3a563a90eb8bc80dfb387b25a34b328329e

4 years agoMerge commit '327aaed6d8ca57d8e5e3acb99ff53402ff1c556d'
Bjørn Erik Pedersen [Sun, 8 May 2022 14:56:42 +0000 (16:56 +0200)]
Merge commit '327aaed6d8ca57d8e5e3acb99ff53402ff1c556d'

4 years agoUse configured timeZone for the clock
Bjørn Erik Pedersen [Sat, 7 May 2022 12:10:32 +0000 (14:10 +0200)]
Use configured timeZone for the clock

And some other related adjustments.

Updates #8787

4 years agoAdd `clock` cli flag
satotake [Tue, 26 Apr 2022 17:57:04 +0000 (02:57 +0900)]
Add `clock` cli flag

Close #8787

4 years agoImprove error messages, esp. when the server is running
Bjørn Erik Pedersen [Mon, 2 May 2022 14:07:52 +0000 (16:07 +0200)]
Improve error messages, esp. when the server is running

* Add file context to minifier errors when publishing
* Misc fixes (see issues)
* Allow custom server error template in layouts/server/error.html

To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of https://github.com/pkg/errors/issues/223 -- but also because most of this is now built-in to Go.

Fixes #9852
Fixes #9857
Fixes #9863

4 years agotpl: Improve godoc
Bjørn Erik Pedersen [Sat, 30 Apr 2022 16:12:08 +0000 (18:12 +0200)]
tpl: Improve godoc

4 years agogithub: Add permissions to test action
nathannaveen [Tue, 3 May 2022 07:23:47 +0000 (03:23 -0400)]
github: Add permissions to test action

4 years agotpl/crypto: Add example for FNV32a
Bjørn Erik Pedersen [Thu, 28 Apr 2022 15:47:17 +0000 (17:47 +0200)]
tpl/crypto: Add example for FNV32a

4 years agoreleaser: Prepare repository for 0.99.0-DEV
hugoreleaser [Thu, 28 Apr 2022 11:02:45 +0000 (11:02 +0000)]
releaser: Prepare repository for 0.99.0-DEV

[ci skip]

4 years agoreleaser: Bump versions for release of 0.98.0
hugoreleaser [Thu, 28 Apr 2022 10:23:30 +0000 (10:23 +0000)]
releaser: Bump versions for release of 0.98.0

[ci skip]

4 years agoreleaser: Add release notes for 0.98.0
hugoreleaser [Thu, 28 Apr 2022 10:23:30 +0000 (10:23 +0000)]
releaser: Add release notes for 0.98.0
[ci skip]

4 years agodocs: Regen docs helper
Bjørn Erik Pedersen [Thu, 28 Apr 2022 09:53:03 +0000 (11:53 +0200)]
docs: Regen docs helper