brevno-suite/hugo
3 years agoreleaser: Prepare repository for 0.85.0-DEV
hugoreleaser [Fri, 18 Jun 2021 15:36:43 +0000 (15:36 +0000)]
releaser: Prepare repository for 0.85.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.84.0 v0.84.0
hugoreleaser [Fri, 18 Jun 2021 14:55:51 +0000 (14:55 +0000)]
releaser: Add release notes to /docs for release of 0.84.0

[ci skip]

3 years agoreleaser: Bump versions for release of 0.84.0
hugoreleaser [Fri, 18 Jun 2021 14:55:51 +0000 (14:55 +0000)]
releaser: Bump versions for release of 0.84.0

[ci skip]

3 years agoreleaser: Increase timeout
Bjørn Erik Pedersen [Fri, 18 Jun 2021 14:05:01 +0000 (16:05 +0200)]
releaser: Increase timeout

3 years agoreleaser: Add release notes for 0.84.0
hugoreleaser [Fri, 18 Jun 2021 12:03:52 +0000 (12:03 +0000)]
releaser: Add release notes for 0.84.0

3 years agodocs: Regenerate docs helper
Bjørn Erik Pedersen [Fri, 18 Jun 2021 11:21:10 +0000 (13:21 +0200)]
docs: Regenerate docs helper

3 years agooutput: Make WebAppManifestFormat NotAlternative=true
Bjørn Erik Pedersen [Fri, 18 Jun 2021 11:19:37 +0000 (13:19 +0200)]
output: Make WebAppManifestFormat NotAlternative=true

Updates #8624

3 years agomedia: Adjust test assertion
Bjørn Erik Pedersen [Fri, 18 Jun 2021 11:15:00 +0000 (13:15 +0200)]
media: Adjust  test assertion

Closes #8625

3 years agomedia: support application/manifest+json
Rohan Kumar [Wed, 9 Jun 2021 23:13:46 +0000 (16:13 -0700)]
media: support application/manifest+json

The standard file extension for Web App Manifest files is
".webmanifest". This commit allows Hugo to recognize .webmanifest files
as "application/manifest+json" files and to minify them using its
JSON minifier.

The .webmanifest file extension is recommended in the w3c spec to
simplify media type registration:
https://www.w3.org/TR/appmanifest/#media-type-registration

Webhint docs are also relevant:
https://webhint.io/docs/user-guide/hints/hint-manifest-file-extension/

Closes #8624

3 years agodocs: Regenerate docshelper
Bjørn Erik Pedersen [Fri, 18 Jun 2021 10:58:07 +0000 (12:58 +0200)]
docs: Regenerate docshelper

3 years agoMerge commit '92405e5b0adc5d8c3dfde88d6a8b67eb09169190'
Bjørn Erik Pedersen [Fri, 18 Jun 2021 10:57:19 +0000 (12:57 +0200)]
Merge commit '92405e5b0adc5d8c3dfde88d6a8b67eb09169190'

3 years agoSquashed 'docs/' changes from 4c81c6c2a..3a923e155
Bjørn Erik Pedersen [Fri, 18 Jun 2021 10:57:19 +0000 (12:57 +0200)]
Squashed 'docs/' changes from 4c81c6c2a..3a923e155

3a923e155 Update configuration.md

git-subtree-dir: docs
git-subtree-split: 3a923e15502520d1c4aa0481bcc528b2831d4c81

3 years agoImplement configuration in a directory for modules
Bjørn Erik Pedersen [Wed, 16 Jun 2021 17:11:01 +0000 (19:11 +0200)]
Implement configuration in a directory for modules

Fixes #8654

3 years agotpl: Rename err-missing-instagram-accesstoken => error-missing-instagram-accesstoken
Bjørn Erik Pedersen [Fri, 18 Jun 2021 10:27:37 +0000 (12:27 +0200)]
tpl: Rename err-missing-instagram-accesstoken => error-missing-instagram-accesstoken

To get it in line with the other.

3 years agodeps: Update github.com/alecthomas/chroma v0.9.1 => v0.9.2
Bjørn Erik Pedersen [Fri, 18 Jun 2021 10:14:52 +0000 (12:14 +0200)]
deps: Update github.com/alecthomas/chroma v0.9.1 => v0.9.2

Closes #8658

3 years agodeps: Run go mod tidy
Bjørn Erik Pedersen [Fri, 18 Jun 2021 10:13:17 +0000 (12:13 +0200)]
deps: Run go mod tidy

3 years agoSplit out the puthe path/filepath functions into common/paths
Bjørn Erik Pedersen [Fri, 18 Jun 2021 08:27:27 +0000 (10:27 +0200)]
Split out the puthe path/filepath functions into common/paths

So they can be used from the config package without cyclic troubles.

Updates #8654

3 years agoresources/image: Fix fill with smartcrop sometimes returning 0 bytes images
Bjørn Erik Pedersen [Tue, 15 Jun 2021 16:22:05 +0000 (18:22 +0200)]
resources/image: Fix fill with smartcrop sometimes returning 0 bytes images

Fixes #7955

3 years agodeps: Update to Goldmark v1.3.8
Joe Mooring [Thu, 17 Jun 2021 17:34:26 +0000 (10:34 -0700)]
deps: Update to Goldmark v1.3.8

Fixes #8648

3 years agoDo not read config from os.Environ when running tests
Bjørn Erik Pedersen [Wed, 16 Jun 2021 16:58:40 +0000 (18:58 +0200)]
Do not read config from os.Environ when running tests

Fixes #8655

3 years agoMisc config loading fixes
Bjørn Erik Pedersen [Wed, 9 Jun 2021 08:58:18 +0000 (10:58 +0200)]
Misc config loading fixes

The main motivation behind this is simplicity and correctnes, but the new small config library is also faster:

```
BenchmarkDefaultConfigProvider/Viper-16            252418       4546 ns/op     2720 B/op       30 allocs/op
BenchmarkDefaultConfigProvider/Custom-16           450756       2651 ns/op     1008 B/op        6 allocs/op
```

Fixes #8633
Fixes #8618
Fixes #8630
Updates #8591
Closes #6680
Closes #5192

3 years agogithub: Set a dummy Instagram token
Bjørn Erik Pedersen [Sun, 13 Jun 2021 09:09:50 +0000 (11:09 +0200)]
github: Set a dummy Instagram token

For now, need to debug why this fails.

3 years agodocs: Regenerate docs helper
Bjørn Erik Pedersen [Tue, 8 Jun 2021 16:52:38 +0000 (18:52 +0200)]
docs: Regenerate docs helper

3 years agoMerge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'
Bjørn Erik Pedersen [Tue, 8 Jun 2021 16:47:53 +0000 (18:47 +0200)]
Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'

3 years agoSquashed 'docs/' changes from bcc4f9324..4c81c6c2a
Bjørn Erik Pedersen [Tue, 8 Jun 2021 16:46:58 +0000 (18:46 +0200)]
Squashed 'docs/' changes from bcc4f9324..4c81c6c2a

4c81c6c2a live reload: add section about `--navigateToChanged`
271014257 Update netify hugo version to 0.83.1
14199cff1 Add pull_request event
0c33b05de Hosting on GitHub: Little wording fixes and update Ubuntu runner in example workflow to 20.04 (#1457)
e47b6c33a Hugo Modules plural typo (#1266)
0f2bbacdd Add node_modules to .gitignore
1d645d79f Overhaul scratch.md (#1451)
572766889 Add link to golang regex syntax, change modified date
21b0c7459 Add info about contentType config
de7d96fa2 Document Go template's multiline support
0c8f2dcb1 Avoid scratch usage
696fa92e1 Rename scratch var
44193f267 Update usage instructions
4230f8fa5 Rename and refactor shortcode
e9953751e Strip leading whitespaces
d61a58010 Add `insertpages` shortcode
04d30677d Mention WebP under 'Target Format' (#1431)
946784508 Update lookup-order.md (#1443)
a7b587988 Update index.md
27907f7ea netlify: Hugo 0.83.1
044d37e57 Merge branch 'tempv0.83.1'
b81aedb03 Fix page `.Kind`
fcf7775ad releaser: Add release notes to /docs for release of 0.83.1
9b39c77c8 fix typo in 0.83 release notes
1c38993ce Update index.md
45b8aefa6 Update index.md
43902dfaa Update index.md
3d959c7ae Merge branch 'tempv0.83.0'
6c22dc327 Fix URL
497ea3224 Use Hugo version badge shortcode
a182d10dd releaser: Add release notes to /docs for release of 0.83.0
287fd9ac0 docs: Fix shortcode
e789c879a docs: Regenerate docs helper
1666c7f31 docs: Regenerate CLI docs
117de1d12 Merge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10'
a6bf3f7d9 docs: Regen docs helper

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

3 years agoUpdate to Go 1.16.5, Goreleaser 0.169.0
Bjørn Erik Pedersen [Tue, 8 Jun 2021 15:56:16 +0000 (17:56 +0200)]
Update to Go 1.16.5, Goreleaser 0.169.0

Fixes #8619
Fixes #8263

3 years agotpl: Add a terse pagination template variant to improve performance
Joe Mooring [Tue, 8 Jun 2021 08:41:21 +0000 (01:41 -0700)]
tpl: Add a terse pagination template variant to improve performance

These calls are equivalent:

{{ template "_internal/pagination.html" . }}
{{ template "_internal/pagination.html" (dict "page" .) }}
{{ template "_internal/pagination.html" (dict "page" . "format" "default") }}

To use an alternate format:

{{ template "_internal/pagination.html" (dict "page" . "format" "terse") }}

Fixes #8599

3 years agoUpgrade Instagram shortcode
Bjørn Erik Pedersen [Mon, 7 Jun 2021 10:45:00 +0000 (12:45 +0200)]
Upgrade Instagram shortcode

Fixes #7879

3 years agoFix nested OS env config override when parent does not exist
Bjørn Erik Pedersen [Tue, 8 Jun 2021 07:48:22 +0000 (09:48 +0200)]
Fix nested OS env config override when parent does not exist

Fixes #8618

3 years agotpl/fmt: Add erroridf template func
Bjørn Erik Pedersen [Mon, 7 Jun 2021 14:36:48 +0000 (16:36 +0200)]
tpl/fmt: Add erroridf template func

Fixes #8613

3 years agotpl/data: Print response body on HTTP errors
Bjørn Erik Pedersen [Mon, 7 Jun 2021 10:06:27 +0000 (12:06 +0200)]
tpl/data: Print response body on HTTP errors

Which makes it easier to debug.

3 years agotpl/data: Misc header improvements, tests, allow multiple headers of same key
Bjørn Erik Pedersen [Sat, 5 Jun 2021 10:44:45 +0000 (12:44 +0200)]
tpl/data: Misc header improvements, tests, allow multiple headers of same key

Closes #5617

3 years agotpl/data: Allows user-defined HTTP headers with getJSON and getCSV
Paul Chamberlain [Mon, 26 Apr 2021 20:41:37 +0000 (16:41 -0400)]
tpl/data: Allows user-defined HTTP headers with getJSON and getCSV

Updates #5617

3 years agohugofs: Set modTime at creation time
Bjørn Erik Pedersen [Sat, 5 Jun 2021 09:45:56 +0000 (11:45 +0200)]
hugofs: Set modTime at creation time

As `ModTime()` should return the same value on each invocation.

See #6161

3 years agoFix invalid timestamp of the "public" folder
Anthony Fok [Sat, 29 May 2021 03:35:48 +0000 (21:35 -0600)]
Fix invalid timestamp of the "public" folder

Special thanks to both Richard Mortimer (@oldelvet) and
Joshua M. Clulow (@jclulow) for their analysis and suggested fix:

 * https://github.com/gohugoio/hugo/issues/6161#issuecomment-574336088
 * https://github.com/gohugoio/hugo/issues/6161#issuecomment-596805273

Fixes #6161

3 years agoconfig: Fix env split to allow = character in values
卜木 [Sun, 30 May 2021 18:25:37 +0000 (02:25 +0800)]
config: Fix env split to allow = character in  values

Fixes #8589

3 years agoAdd math.Max and math.Min
Joe Mooring [Thu, 27 May 2021 15:34:49 +0000 (08:34 -0700)]
Add math.Max and math.Min

Closes #8583

3 years agoCatch incomplete shortcode error
satotake [Mon, 24 May 2021 12:59:02 +0000 (21:59 +0900)]
Catch incomplete shortcode error

Currently, no name shortcodes (`{{< >}}`) enter unexpected branch and
throw `BUG: template info not set`. This patch checks if shortcode has
name or not earlier and throws specific error.

Closes #6866

3 years agoUse SPDX license identifier
Joe Mooring [Sun, 23 May 2021 15:21:30 +0000 (08:21 -0700)]
Use SPDX license identifier

See <https://spdx.org/licenses/>
Fixes #8555

3 years agonavigation: Cache and copy Menu for sorting
satotake [Sun, 23 May 2021 08:42:01 +0000 (17:42 +0900)]
navigation: Cache and copy Menu for sorting

.Site.Menus is mutated when it is sorted for now and this causes concurrency problem (#7594)
In this patch, each related sort function copies Menu before sorting to prevent
race condition.

Pages already have such a sort and cache logic and this patch is identical to it.

Closes #7594

3 years agodeps: Update to LibSASS 3.6.5
Bjørn Erik Pedersen [Sun, 23 May 2021 08:05:23 +0000 (10:05 +0200)]
deps: Update to LibSASS 3.6.5

See https://github.com/sass/libsass/releases/tag/3.6.5

3 years agopublisher: Make the HTML element collector more robust
Bjørn Erik Pedersen [Thu, 13 May 2021 11:10:32 +0000 (13:10 +0200)]
publisher: Make the HTML element collector more robust

Fixes #8530

3 years agoRevert "publisher: Make the HTML element collector more robust"
Bjørn Erik Pedersen [Wed, 19 May 2021 01:45:36 +0000 (03:45 +0200)]
Revert "publisher: Make the HTML element collector more robust"

This reverts commit ef0f1a726901d6c614040cfc2d7e8f9a2ca97816.

3 years agoRevert "publisher: Get the collector in line with the io.Writer interface"
Bjørn Erik Pedersen [Wed, 19 May 2021 01:45:30 +0000 (03:45 +0200)]
Revert "publisher: Get the collector in line with the io.Writer interface"

This reverts commit a9bcd38181ceb79afba82adcd4de1aebf571e74c.

3 years agopublisher: Get the collector in line with the io.Writer interface
Bjørn Erik Pedersen [Mon, 17 May 2021 17:39:40 +0000 (19:39 +0200)]
publisher: Get the collector in line with the io.Writer interface

As in: Do not retain the input slice.

3 years agopublisher: Make the HTML element collector more robust
Bjørn Erik Pedersen [Thu, 13 May 2021 11:10:32 +0000 (13:10 +0200)]
publisher: Make the HTML element collector more robust

Fixes #8530

3 years agocommon/maps: Add Scratch.DeleteInMap
meehawk [Mon, 17 May 2021 13:45:33 +0000 (19:15 +0530)]
common/maps: Add Scratch.DeleteInMap

Add Scratch.DeleteInMap method. This method works similar to Scratch.SetInMap. It takes in two string parameters, key and mapKey and deletes the value mapped to mapKey in key

Closes #8504

3 years agoDisplay version when building site (#8533)
Joe Mooring [Fri, 14 May 2021 14:45:13 +0000 (07:45 -0700)]
Display version when building site (#8533)

Closes #8531

3 years agodocs: Update querify function description and examples
Joe Mooring [Mon, 10 May 2021 15:18:37 +0000 (08:18 -0700)]
docs: Update querify function description and examples

The querify function now accepts a slice per #8305.

3 years agotpl: Allow 'Querify' to take lone slice/interface argument
Ujjwal Goyal [Sat, 6 Mar 2021 18:38:10 +0000 (00:08 +0530)]
tpl: Allow 'Querify' to take lone slice/interface argument

Querify can now take a lone string/interface slice (with string
keys) as a parameter, or multiple string parameters, to build
URL queries.

Querify earlier used 'Dictionary' to add key/value pairs to a
map to build URL queries. Changed to dynamically generate ordered
key/value pairs. Cannot take string slice as key (earlier
possible due to Dictionary).

Added tests and benchmarks for querify.

Closes #6735

3 years agomodules/npm: Change SetEscapeHTML to false
Shohei Ueda [Sat, 8 May 2021 22:20:28 +0000 (07:20 +0900)]
modules/npm: Change SetEscapeHTML to false

Closes #8512

3 years agoAdd a benchmark
Bjørn Erik Pedersen [Tue, 4 May 2021 15:45:24 +0000 (17:45 +0200)]
Add a benchmark

3 years agoreadme: Update dependency list
Bjørn Erik Pedersen [Mon, 3 May 2021 13:55:28 +0000 (15:55 +0200)]
readme: Update dependency list

3 years agotpl: Fix countwords to handle special chars
Julien Midedji [Mon, 3 May 2021 07:10:06 +0000 (09:10 +0200)]
tpl: Fix countwords to handle special chars

Fixes #8479

3 years agoreleaser: Prepare repository for 0.84.0-DEV
hugoreleaser [Sun, 2 May 2021 15:28:40 +0000 (15:28 +0000)]
releaser: Prepare repository for 0.84.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.83.1 v0.83.1
hugoreleaser [Sun, 2 May 2021 14:38:02 +0000 (14:38 +0000)]
releaser: Add release notes to /docs for release of 0.83.1

[ci skip]

3 years agoreleaser: Bump versions for release of 0.83.1
hugoreleaser [Sun, 2 May 2021 14:38:02 +0000 (14:38 +0000)]
releaser: Bump versions for release of 0.83.1

[ci skip]

3 years agoreleaser: Add release notes for 0.83.1
hugoreleaser [Sun, 2 May 2021 14:38:02 +0000 (14:38 +0000)]
releaser: Add release notes for 0.83.1
[ci skip]

3 years agolangs/i18n: Fix warning regression in i18n
Bjørn Erik Pedersen [Sun, 2 May 2021 12:06:16 +0000 (14:06 +0200)]
langs/i18n: Fix warning regression in i18n

Fix this by

1. Making sure that only numerical values are treated as plural counts
2. Making sure that `i18n.pluralFormNotFoundError` is not logged as a warning if `other` resolved.

Note that 2. isn't a new problem, but became visible because of the plural improvements in Hugo `0.83.0`.

Fixes #8492

3 years agoreleaser: Prepare repository for 0.84.0-DEV
hugoreleaser [Sat, 1 May 2021 12:56:59 +0000 (12:56 +0000)]
releaser: Prepare repository for 0.84.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.83.0 v0.83.0
hugoreleaser [Sat, 1 May 2021 12:10:05 +0000 (12:10 +0000)]
releaser: Add release notes to /docs for release of 0.83.0

[ci skip]

3 years agoreleaser: Bump versions for release of 0.83.0
hugoreleaser [Sat, 1 May 2021 12:10:05 +0000 (12:10 +0000)]
releaser: Bump versions for release of 0.83.0

[ci skip]

3 years agoUpdate 0.83.0-relnotes.md
Bjørn Erik Pedersen [Sat, 1 May 2021 11:17:21 +0000 (13:17 +0200)]
Update 0.83.0-relnotes.md

3 years agodocs: Fix shortcode
Bjørn Erik Pedersen [Sat, 1 May 2021 11:01:23 +0000 (13:01 +0200)]
docs: Fix shortcode

3 years agoreleaser: Add release notes for 0.83.0
hugoreleaser [Sat, 1 May 2021 10:23:21 +0000 (10:23 +0000)]
releaser: Add release notes for 0.83.0

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

3 years agodocs: Regenerate docs helper
Bjørn Erik Pedersen [Sat, 1 May 2021 10:06:24 +0000 (12:06 +0200)]
docs: Regenerate docs helper

3 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Sat, 1 May 2021 10:05:31 +0000 (12:05 +0200)]
docs: Regenerate CLI docs

3 years agocommands: Remove all dates from gendoc
Bjørn Erik Pedersen [Sat, 1 May 2021 10:03:56 +0000 (12:03 +0200)]
commands: Remove all dates from gendoc

It creates lots of diffs even if there are no changes.

3 years agoSquashed 'docs/' changes from fb551cc75..bcc4f9324
Bjørn Erik Pedersen [Sat, 1 May 2021 09:45:45 +0000 (11:45 +0200)]
Squashed 'docs/' changes from fb551cc75..bcc4f9324

bcc4f9324 Add transparent background in rgba for search field
fce835fea Trim newlines from .Inner in the 'code' shortcode
9117f54b3 Remove code toggle from netlify.toml
babbb9090 fix version number - 404 error
d28cf15e1 The input search is not displayed correctly in Safari because of the one declaration CSS background property. Safari needs the no-repeat to be after position and size property. Adjusting the search icon to be vertically on center.
f4ef4c146 Repairing link from issue 131 using jamesrhea's comment https://github.com/gohugoio/hugoDocs/issues/131#issuecomment-324083739
7f73f5685 Update related.md (#1436)
41d24297c Mention `not` (#1432)

git-subtree-dir: docs
git-subtree-split: bcc4f93242334f03c6699e2c4226ee178317ec4b

3 years agoMerge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10'
Bjørn Erik Pedersen [Sat, 1 May 2021 09:45:45 +0000 (11:45 +0200)]
Merge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10'

3 years agodeps: Update getkin/kin-openapi v0.60.0 => v0.61.
Bjørn Erik Pedersen [Fri, 30 Apr 2021 11:16:23 +0000 (13:16 +0200)]
deps: Update getkin/kin-openapi v0.60.0 => v0.61.

3 years agolangs/i18n: Fix multiple unknown language codes
Bjørn Erik Pedersen [Fri, 23 Apr 2021 05:55:52 +0000 (07:55 +0200)]
langs/i18n: Fix multiple unknown language codes

This fixes a bug upstream by temporarily using a patched version of go-i18n.

Closes #7838

3 years agodeps: Update github.com/evanw/esbuild v0.11.14 => v0.11.16
Bjørn Erik Pedersen [Fri, 30 Apr 2021 10:43:39 +0000 (12:43 +0200)]
deps: Update github.com/evanw/esbuild v0.11.14 => v0.11.16

3 years agoRemove .Site.Authors from embedded templates
Joe Mooring [Thu, 18 Mar 2021 18:49:16 +0000 (11:49 -0700)]
Remove .Site.Authors from embedded templates

Closes #4458

3 years agodeploy: Don't treat a NotFound response for Delete as a fatal error.
Robert van Gent [Thu, 29 Apr 2021 03:32:19 +0000 (20:32 -0700)]
deploy: Don't treat a NotFound response for Delete as a fatal error.

3 years agosnap: Switch to deb packages of nodejs and python3-pygments
Anthony Fok [Tue, 27 Apr 2021 15:00:04 +0000 (09:00 -0600)]
snap: Switch to deb packages of nodejs and python3-pygments

node/14/stable snap package is not available on ppc64el and s390x.

nodejs deb package currently at 10.19.0~dfsg-3ubuntu1
in Ubuntu 20.04 LTS (base: core20)

3 years agosnapcraft.yaml: Install bin/node from node/14/stable
Anthony Fok [Mon, 26 Apr 2021 16:17:44 +0000 (10:17 -0600)]
snapcraft.yaml: Install bin/node from node/14/stable

Resolves regression introduced in my previous commit 243951e.
Special thanks to @jmooring for reporting the issue!

TODO: Strip the bin/node binary?

3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.55.0 to 0.60.0
dependabot[bot] [Mon, 26 Apr 2021 07:03:30 +0000 (07:03 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.55.0 to 0.60.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.55.0 to 0.60.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.55.0...v0.60.0)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/evanw/esbuild from 0.11.13 to 0.11.14
dependabot[bot] [Mon, 26 Apr 2021 07:01:32 +0000 (07:01 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.11.13 to 0.11.14

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.11.13 to 0.11.14.
- [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.11.13...v0.11.14)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoresources/page: Fix permalinks pattern detection for some of the sections variants
Bjørn Erik Pedersen [Sun, 25 Apr 2021 14:57:09 +0000 (16:57 +0200)]
resources/page: Fix permalinks pattern detection for some of the sections variants

See #8363

3 years agodeps: Update to Chroma v0.9.1
Carlos Alexandro Becker [Sun, 25 Apr 2021 09:14:25 +0000 (06:14 -0300)]
deps: Update to Chroma v0.9.1

3 years agolangs/i18n: Improve plural handling of floats
Bjørn Erik Pedersen [Sat, 24 Apr 2021 10:26:51 +0000 (12:26 +0200)]
langs/i18n: Improve plural handling of floats

The go-i18n library expects plural counts with floats to be represented as strings.

Fixes #8464

3 years agotpl/collections: Fix where on type mismatches
Bjørn Erik Pedersen [Fri, 23 Apr 2021 09:05:15 +0000 (11:05 +0200)]
tpl/collections: Fix where on type mismatches

Fixes #8353

3 years agoMake the shortcode template lookup for output formats stable
Bjørn Erik Pedersen [Fri, 23 Apr 2021 11:40:05 +0000 (13:40 +0200)]
Make the shortcode template lookup for output formats stable

Fixes #7774

3 years agobuild(deps): bump github.com/evanw/esbuild from 0.11.12 to 0.11.13
dependabot[bot] [Fri, 23 Apr 2021 05:58:26 +0000 (05:58 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.11.12 to 0.11.13

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.11.12 to 0.11.13.
- [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.11.12...v0.11.13)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agolangs/i18n: Revise the plural implementation
Bjørn Erik Pedersen [Thu, 22 Apr 2021 07:57:24 +0000 (09:57 +0200)]
langs/i18n: Revise the plural implementation

There were some issues introduced with the plural counting when we upgraded from v1 to v2 of go-i18n.

This commit improves that situation given the following rules:

* A single integer argument is used as plural count and passed to the i18n template as a int type with a `.Count` method. The latter is to preserve compability with v1.
* Else the plural count is either fetched from the `Count`/`count` field/method/map or from the value itself.
* Any data type is accepted, if it can be converted to an integer, that value is used.

The above means that you can now do pass a single integer and both of the below will work:

```
{{ . }} minutes to read
{{ .Count }} minutes to read
```

Fixes #8454
Closes #7822
See https://github.com/gohugoio/hugoDocs/issues/1410

3 years agosnapcraft.yaml: Update to "base: core20"
Anthony Fok [Thu, 22 Apr 2021 15:57:40 +0000 (09:57 -0600)]
snapcraft.yaml: Update to "base: core20"

That is, switch to using Ubuntu 20.04 LTS as base,
leveraging new features in Snapcraft 4.x, etc.

It is far from complete, with npm temporarily disabled (hence no PostCSS)
and with Pandoc probably not working yet, but would hopefully get our
Hugo Snap build, which stopped working shortly after v0.80.0, working again.

3 years agobuild(deps): bump github.com/frankban/quicktest from 1.11.3 to 1.12.0
dependabot[bot] [Thu, 22 Apr 2021 11:47:37 +0000 (11:47 +0000)]
build(deps): bump github.com/frankban/quicktest from 1.11.3 to 1.12.0

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

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump google.golang.org/api from 0.44.0 to 0.45.0
dependabot[bot] [Tue, 20 Apr 2021 17:43:14 +0000 (17:43 +0000)]
build(deps): bump google.golang.org/api from 0.44.0 to 0.45.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.44.0...v0.45.0)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/aws/aws-sdk-go from 1.37.11 to 1.38.23
dependabot[bot] [Thu, 22 Apr 2021 08:21:42 +0000 (08:21 +0000)]
build(deps): bump github.com/aws/aws-sdk-go from 1.37.11 to 1.38.23

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

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoCorrect function name in comment
Santiago De la Cruz [Wed, 21 Apr 2021 21:31:38 +0000 (17:31 -0400)]
Correct function name in comment

IsInt to IsNumber

3 years agoFix Params case handling in where with slices of structs (e.g. Pages)
Bjørn Erik Pedersen [Wed, 21 Apr 2021 07:08:42 +0000 (09:08 +0200)]
Fix Params case handling in where with slices of structs (e.g. Pages)

Fixes #7009

3 years agodeps: Upgraded github.com/evanw/esbuild v0.11.0 => v0.11.12
Bjørn Erik Pedersen [Wed, 21 Apr 2021 07:55:38 +0000 (09:55 +0200)]
deps: Upgraded github.com/evanw/esbuild v0.11.0 => v0.11.12

3 years agodocs: Regen docs helper
Bjørn Erik Pedersen [Tue, 20 Apr 2021 18:23:36 +0000 (20:23 +0200)]
docs: Regen docs helper

3 years agoMerge commit '07b8d9466dfb59c429c1b470a0443337bc0aeefe'
Bjørn Erik Pedersen [Tue, 20 Apr 2021 18:22:53 +0000 (20:22 +0200)]
Merge commit '07b8d9466dfb59c429c1b470a0443337bc0aeefe'

3 years agoSquashed 'docs/' changes from 9cece6640..fb551cc75
Bjørn Erik Pedersen [Tue, 20 Apr 2021 18:21:45 +0000 (20:21 +0200)]
Squashed 'docs/' changes from 9cece6640..fb551cc75

fb551cc75 Update index.md
7af894857 Update index.md
d235753ea Hugo 0.82.1
e03e72deb Merge branch 'temp0821'
e62648961 Merge branch 'release-0.82.1'
e1ab0f6eb releaser: Add release notes to /docs for release of 0.82.1
5d354c38d Replaced ``` code blocks with Code Toggler
c9d065c20 Remove duplicate YAML keys (#1420)
8ae31e701 Add webp image encoding support
848f2af26 Update internal.md (#1407)
c103a86a4 Fix `ref` shortcode example output (#1409)
9f8ba56dc Remove leading dot from where function KEY (#1419)
363251a51 Improve presentation of template lookup order (#1382)
b73da986d Improve description of Page Resources (#1381)
4e0bb96d5 Rework robots.txt page (#1405)
edf893e6f Update migrations.md (#1412)
450f1580b Add link to `site` function doc (#1417)
cfffa6e6f Added one extension to the list (#1414)
05f1665a0 Update theme
5de0b1c6a Update theme
250e20552 Add hugo.IsExtended
dea5e1fd7 Fix typo on merge function page (#1408)
1bbed2cf3 Update configuration.md
be0b64a46 Omit ISO
cbb5b8367 Fix `dateFormat` documentation
698f15466 Regenerate the docshelper
f9a8a7cb6 Update multilingual.md
a22dc6267 Fix grammar (#1398)
eb98b0997 Fix pretty URL example (#1397)
f4c4153dc Mention date var complementation in post scheduling (#1396)
17fae284c Fix resources.ExecuteAsTemplate argument order (#1394)
97e2c2abb Use code-toggle shortcode in `multilingual.md` (#1388)
3a84929bb Harmonize capitalization (#1393)
17f15daa6 fix file naming used in example (#1392)
5d97b6a18 Add slice syntax to sections permalinks config
00665b97b Improve description of `site.md`
edcf5e3fc Fix example in `merge.md`
f275ab778 Update postprocess.md
9593e3991 Fix file name
59bd9656f Update postprocess.md
1172fb6d0 Update to theNewDynamic repository (#1263)
f5b5c1d2c Update Hugo container image
4f2e92f2a Adapt anchorize.md to Goldmark
98aa19073 Directly link to `highlight` shortcode (#1384)
4c75c2422 Fix header level
f15c06f23 markdownify: add note about render-hooks and .RenderString (#1281)
69c82eb68 Remove Blackfriday reference from shortcode desc (#1380)
36de478df Update description of ignoreFiles config setting (#1377)
6337699d8 Remove "Authors" page from documentation (#1371)
35e73ca90 fix indent in example (#1372)
d3f01f19a Remove opening body tag from header example (#1376)
341a5a7d8 Update index.md
c9bfdbee6 Release 0.82.0
119644949 releaser: Add release notes to /docs for release of 0.82.0
32efaed78 docs: Regenerate docs helper
dea5449a2 docs: Regen CLI docs
eeab18fce Merge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3'
d508a1259 Attributes for code fences should be placed after the lang indicator only
c80905cef deps: Update to esbuild v0.9.0
95350eb79 Add support for Google Analytics v4
02d36f9bc Allow markdown attribute lists to be used in title render hooks
7df220a64 Merge commit '9d31f650da964a52f05fc27b7fb99cf3e09778cf'
d80bf61b7 Fixes #7698.

git-subtree-dir: docs
git-subtree-split: fb551cc750faa83a1493b0e0d0898cd98ab74465

3 years agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.9.15 to 2.9.16
dependabot[bot] [Tue, 20 Apr 2021 16:12:11 +0000 (16:12 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.15 to 2.9.16

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.9.15 to 2.9.16.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.15...v2.9.16)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump golang.org/x/text from 0.3.5 to 0.3.6
dependabot[bot] [Tue, 20 Apr 2021 15:42:10 +0000 (15:42 +0000)]
build(deps): bump golang.org/x/text from 0.3.5 to 0.3.6

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.5...v0.3.6)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agopublisher: Remove some unreachable code
Bjørn Erik Pedersen [Tue, 20 Apr 2021 15:45:15 +0000 (17:45 +0200)]
publisher: Remove some unreachable code

3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.39.0 to 0.55.0
dependabot[bot] [Mon, 19 Apr 2021 07:16:09 +0000 (07:16 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.39.0 to 0.55.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.39.0 to 0.55.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.39.0...v0.55.0)

Signed-off-by: dependabot[bot] <support@github.com>