]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
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 agoMerge commit '327aaed6d8ca57d8e5e3acb99ff53402ff1c556d'
Bjørn Erik Pedersen [Sun, 8 May 2022 14:56:42 +0000 (16:56 +0200)]
Merge commit '327aaed6d8ca57d8e5e3acb99ff53402ff1c556d'

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 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

4 years agoSquashed 'docs/' changes from 4c5edacfe..7030fe3a2
Bjørn Erik Pedersen [Thu, 28 Apr 2022 09:52:15 +0000 (11:52 +0200)]
Squashed 'docs/' changes from 4c5edacfe..7030fe3a2

7030fe3a2 Remove .hvm file
dd0f98831 Add details for DigitalOcean (#1730)
ff0c8a6e7 netlify: Hugo 0.97.3
e254724a7 Delete hosting-on-bitbucket.md (#1723)
f4304fb7e Remove references to mmark (#1727)
255319023 remove broken link to codeplex.com (#1725)
06cc3856b delete broken link (#1724)
ec80dc069 Revert "netlify: Hugo 0.97.2"
211bad5de netlify: Hugo 0.97.2
cd549bca9 Revert "netlify: Update to Hugo 0.97.1" (#1722)
1039a0a48 netlify: Update to Hugo 0.97.1
a28e0d0d3 Update AddDate method
9077b443f Update lists.md
6b174329a Update lists.md
d87d9e296 netlify: Hugo 0.97.0
fa7db7c7e Merge branch 'tempv0.97.0'
dd6df54b5 Fix broken anchor links (#1717)
6b6743976 Remove StackImpact showcase
d00a7eda9 Fix for Cloudflare docs location (#1716)
890866722 Add git required FAQ & remove ZIP from Quick Start (#1713)
73e82d911 resources: Add `key` to reources.GetRemote options map
6795cd2a1 Correct possible typos re: Alias robots usage (#1165)
efd5d186a Hosting on Cloudflare Pages (#1709)
9239c5f2a deps: Update github.com/tdewolff/minify/v2 v2.10.0 => v2.11.0
859573bc8 Merge commit 'ec920363cdeb687c8bcac9c242767d366fb058cb'
21f108f12 docs: Regen CLI docs
9b6e7afd2 Add environment as a new filter to _cascade.target

git-subtree-dir: docs
git-subtree-split: 7030fe3a2ea107a23a4442902cb693557a421523

4 years agoMerge commit '3902f9a4767fe6e62ac5146728d8311b8cd227e0'
Bjørn Erik Pedersen [Thu, 28 Apr 2022 09:52:15 +0000 (11:52 +0200)]
Merge commit '3902f9a4767fe6e62ac5146728d8311b8cd227e0'

4 years agoSome godoc adjustments and image struct renames
Bjørn Erik Pedersen [Thu, 21 Apr 2022 08:59:13 +0000 (10:59 +0200)]
Some godoc adjustments and image struct renames

4 years agotpl/crypto: Add FNV32a
Bjørn Erik Pedersen [Tue, 26 Apr 2022 08:35:45 +0000 (10:35 +0200)]
tpl/crypto: Add FNV32a

Main motivation to get a integer from a string.

4 years agomarkup/goldmark: Fix attribute nilpointer
Bjørn Erik Pedersen [Mon, 25 Apr 2022 08:05:55 +0000 (10:05 +0200)]
markup/goldmark: Fix attribute nilpointer

Fixes 9819

4 years agodeps: Update to gocloud.dev v0.24.0
Bjørn Erik Pedersen [Wed, 27 Apr 2022 08:42:37 +0000 (10:42 +0200)]
deps: Update to gocloud.dev v0.24.0

Note that the v0.25.0 version is broken (for Hugo, at least).

4 years agobuild(deps): bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0
dependabot[bot] [Tue, 26 Apr 2022 18:03:05 +0000 (18:03 +0000)]
build(deps): bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0

Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) from 1.4.3 to 1.5.0.
- [Release notes](https://github.com/mitchellh/mapstructure/releases)
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.3...v1.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
4 years agodeps: Update github.com/yuin/goldmark v1.4.11 => v1.4.12
Joe Mooring [Mon, 25 Apr 2022 14:20:30 +0000 (07:20 -0700)]
deps: Update github.com/yuin/goldmark v1.4.11 => v1.4.12

Fixes #9054
Fixes #9756
Fixes #9757

4 years agobuild(deps): bump github.com/evanw/esbuild from 0.14.36 to 0.14.38
dependabot[bot] [Tue, 26 Apr 2022 18:03:04 +0000 (18:03 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.14.36 to 0.14.38

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

---
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 agodeps: Update github.com/tdewolff/minify/v2 v2.11.1 => v2.11.2
Joe Mooring [Tue, 26 Apr 2022 15:15:59 +0000 (08:15 -0700)]
deps: Update github.com/tdewolff/minify/v2 v2.11.1 => v2.11.2

Fixes #9820

4 years agoSome godoc adjustments
Bjørn Erik Pedersen [Thu, 21 Apr 2022 08:59:13 +0000 (10:59 +0200)]
Some godoc adjustments

4 years agotpl/lang: Handle nil values in lang.Merge
Bjørn Erik Pedersen [Wed, 20 Apr 2022 15:42:57 +0000 (17:42 +0200)]
tpl/lang: Handle nil values in lang.Merge

4 years agoresources/page: Mark some more interface methods as internal
Bjørn Erik Pedersen [Wed, 20 Apr 2022 15:11:27 +0000 (17:11 +0200)]
resources/page: Mark some more interface methods as internal

For the new documenttion.

4 years agoDeprecate page.Author and page.Authors
Bjørn Erik Pedersen [Wed, 20 Apr 2022 15:08:01 +0000 (17:08 +0200)]
Deprecate page.Author and page.Authors

These are not documented, and they don't belong on Page. We should consider having author a first class citizen of Hugo, but as it is not it's better modelled as a taxonomy.

4 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]

4 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]

4 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]

4 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

4 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

4 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]

4 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]

4 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]

4 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.

4 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]

4 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]

4 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]

4 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

4 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

4 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

4 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]

4 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]

4 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]

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

4 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

4 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

4 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>
4 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

4 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

4 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>
4 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

4 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

4 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)