brevno-suite/hugo
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 agoMerge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10'
Bjørn Erik Pedersen [Sat, 1 May 2021 09:45:45 +0000 (11:45 +0200)]
Merge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10'

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 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>
3 years agopublisher: Some performance tweaks for the HTML elements collector
Bjørn Erik Pedersen [Tue, 20 Apr 2021 14:50:03 +0000 (16:50 +0200)]
publisher: Some performance tweaks for the HTML elements collector

3 years agopublisher: Exclude comment and doctype elements from writeStats
Dirk Olbrich [Mon, 12 Apr 2021 21:42:51 +0000 (23:42 +0200)]
publisher: Exclude comment and doctype elements from writeStats

- Reorder code blocks
- Rename cssClassCollectorWriter to htmlElementCollectorWriter, as it just collect html element information
- Expand benchmark to test for minified and unminified content

Fixes #8396
Fixes #8417

3 years agoMerge branch 'release-0.82.1'
Bjørn Erik Pedersen [Tue, 20 Apr 2021 11:48:04 +0000 (13:48 +0200)]
Merge branch 'release-0.82.1'

3 years agoreleaser: Prepare repository for 0.83.0-DEV
hugoreleaser [Tue, 20 Apr 2021 11:44:34 +0000 (11:44 +0000)]
releaser: Prepare repository for 0.83.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.82.1 v0.82.1
hugoreleaser [Tue, 20 Apr 2021 11:02:48 +0000 (11:02 +0000)]
releaser: Add release notes to /docs for release of 0.82.1

[ci skip]

3 years agoreleaser: Bump versions for release of 0.82.1
hugoreleaser [Tue, 20 Apr 2021 11:02:48 +0000 (11:02 +0000)]
releaser: Bump versions for release of 0.82.1

[ci skip]

3 years agoreleaser: Add release notes for 0.82.1
hugoreleaser [Tue, 20 Apr 2021 11:02:48 +0000 (11:02 +0000)]
releaser: Add release notes for 0.82.1
[ci skip]

3 years agoRegression in media type suffix lookup
Bjørn Erik Pedersen [Tue, 20 Apr 2021 10:05:25 +0000 (12:05 +0200)]
Regression in media type suffix lookup

Introduced in Hugo 0.82.0.

Fixes #8406

3 years agoRegression in media type suffix lookup
Bjørn Erik Pedersen [Tue, 20 Apr 2021 10:05:25 +0000 (12:05 +0200)]
Regression in media type suffix lookup

Introduced in Hugo 0.82.0.

Fixes #8406

4 years agobuild(deps): bump github.com/yuin/goldmark from 1.3.2 to 1.3.5
Joe Mooring [Thu, 15 Apr 2021 20:08:17 +0000 (13:08 -0700)]
build(deps): bump github.com/yuin/goldmark from 1.3.2 to 1.3.5

Updated test per <https://github.com/yuin/goldmark/pull/205>.

Fixes #8377

4 years agoRemove duplicate references from release notes
Joe Mooring [Thu, 25 Mar 2021 03:54:58 +0000 (20:54 -0700)]
Remove duplicate references from release notes

Closes #8360

4 years agobuild(deps): bump github.com/spf13/afero from 1.5.1 to 1.6.0
dependabot[bot] [Thu, 15 Apr 2021 14:20:34 +0000 (14:20 +0000)]
build(deps): bump github.com/spf13/afero from 1.5.1 to 1.6.0

Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](https://github.com/spf13/afero/compare/v1.5.1...v1.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/pelletier/go-toml from 1.8.1 to 1.9.0
dependabot[bot] [Thu, 15 Apr 2021 14:20:04 +0000 (14:20 +0000)]
build(deps): bump github.com/pelletier/go-toml from 1.8.1 to 1.9.0

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

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoAdd webp image encoding support
Bjørn Erik Pedersen [Wed, 7 Apr 2021 14:49:34 +0000 (16:49 +0200)]
Add webp image encoding support

Fixes #5924

4 years agobuild(deps): bump google.golang.org/api from 0.40.0 to 0.44.0
dependabot[bot] [Thu, 15 Apr 2021 12:50:26 +0000 (12:50 +0000)]
build(deps): bump google.golang.org/api from 0.40.0 to 0.44.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.40.0 to 0.44.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.40.0...v0.44.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/nicksnyder/go-i18n/v2 from 2.1.1 to 2.1.2
dependabot[bot] [Thu, 15 Apr 2021 12:49:57 +0000 (12:49 +0000)]
build(deps): bump github.com/nicksnyder/go-i18n/v2 from 2.1.1 to 2.1.2

Bumps [github.com/nicksnyder/go-i18n/v2](https://github.com/nicksnyder/go-i18n) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/nicksnyder/go-i18n/releases)
- [Changelog](https://github.com/nicksnyder/go-i18n/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nicksnyder/go-i18n/compare/v2.1.1...v2.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/rogpeppe/go-internal from 1.6.2 to 1.8.0
dependabot[bot] [Wed, 14 Apr 2021 10:01:31 +0000 (10:01 +0000)]
build(deps): bump github.com/rogpeppe/go-internal from 1.6.2 to 1.8.0

Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal) from 1.6.2 to 1.8.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases)
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.6.2...v1.8.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoRemove extraneous space from figure shortcode
Joe Mooring [Sat, 10 Apr 2021 02:03:01 +0000 (19:03 -0700)]
Remove extraneous space from figure shortcode

Fixes #8401

4 years agobuild(deps): bump github.com/magefile/mage from 1.10.0 to 1.11.0
dependabot[bot] [Mon, 12 Apr 2021 10:07:52 +0000 (10:07 +0000)]
build(deps): bump github.com/magefile/mage from 1.10.0 to 1.11.0

Bumps [github.com/magefile/mage](https://github.com/magefile/mage) from 1.10.0 to 1.11.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.10.0...v1.11.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/google/go-cmp from 0.5.4 to 0.5.5
dependabot[bot] [Mon, 12 Apr 2021 10:08:34 +0000 (10:08 +0000)]
build(deps): bump github.com/google/go-cmp from 0.5.4 to 0.5.5

Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.4...v0.5.5)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoorg: Disable broken pretty relative links feature
Niklas Fasching [Sun, 11 Apr 2021 19:59:26 +0000 (21:59 +0200)]
org: Disable broken pretty relative links feature

go-org PrettyRelativeLinks rewrites relative org links by
- adding `../` in front
- removing any `.org` suffix

This was meant to play well with hugo pretty urls (which pretty much renders
posts in a subdirectory without the file suffix) and allow use of normal org
file links to reference other posts.

There's a lot of edge cases I didn't consider and multiple bug reports in
go-org [1] later I don't think the complexity of handling those edge cases is
worth it - so let's disable it.

[1]
- https://github.com/niklasfasching/go-org/issues/53
- https://github.com/niklasfasching/go-org/commit/5dadf8c4c2924cbb3b93be45f96e1147596ca6f2 (comment)
- https://github.com/niklasfasching/go-org/issues/51

4 years agodeps: Update go-org to v1.5.0
Niklas Fasching [Sun, 11 Apr 2021 19:57:48 +0000 (21:57 +0200)]
deps: Update go-org to v1.5.0

4 years agobuild(deps): bump github.com/jdkato/prose from 1.2.0 to 1.2.1
dependabot[bot] [Tue, 23 Feb 2021 10:00:28 +0000 (10:00 +0000)]
build(deps): bump github.com/jdkato/prose from 1.2.0 to 1.2.1

Bumps [github.com/jdkato/prose](https://github.com/jdkato/prose) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/jdkato/prose/releases)
- [Commits](https://github.com/jdkato/prose/compare/v1.2.0...v1.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/spf13/cobra from 1.1.1 to 1.1.3
dependabot[bot] [Tue, 23 Feb 2021 10:00:19 +0000 (10:00 +0000)]
build(deps): bump github.com/spf13/cobra from 1.1.1 to 1.1.3

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.1.1 to 1.1.3.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.1.1...v1.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoAdd complete dependency list in "hugo env -v"
Bjørn Erik Pedersen [Fri, 9 Apr 2021 06:07:22 +0000 (08:07 +0200)]
Add complete dependency list in "hugo env -v"

Fixes #8400

4 years agoAdd hugo.IsExtended
Bjørn Erik Pedersen [Fri, 9 Apr 2021 05:28:27 +0000 (07:28 +0200)]
Add hugo.IsExtended

Fixes #8399

4 years agopublisher: Also test minified HTML in the element collector
Bjørn Erik Pedersen [Wed, 7 Apr 2021 06:33:31 +0000 (08:33 +0200)]
publisher: Also test minified HTML in the element collector

Updates #7567

4 years agopublisher: Skip script, pre and textarea content when looking for HTML elements
Bjørn Erik Pedersen [Tue, 6 Apr 2021 16:19:25 +0000 (18:19 +0200)]
publisher: Skip script, pre and textarea content when looking for HTML elements

Updates #7567

4 years agooutput: Only output mediaType once in docshelper JSON
Bjørn Erik Pedersen [Thu, 1 Apr 2021 17:02:39 +0000 (19:02 +0200)]
output: Only output mediaType once in docshelper JSON

Fixes #8379

4 years agoFix typo in docshelper.go
Joe Mooring [Wed, 31 Mar 2021 23:43:08 +0000 (16:43 -0700)]
Fix typo in docshelper.go

Fixes #8380

4 years agotpl: Remove the FuzzMarkdownify func for now
Bjørn Erik Pedersen [Tue, 30 Mar 2021 18:57:31 +0000 (20:57 +0200)]
tpl: Remove the FuzzMarkdownify func for now

It has gotten us nothing but "build fails" mail and work we don't have time to follow up on.

4 years agoAdd slice syntax to sections permalinks config
Bjørn Erik Pedersen [Tue, 30 Mar 2021 05:55:24 +0000 (07:55 +0200)]
Add slice syntax to sections permalinks config

Fixes #8363

4 years agodeps: Upgrade github.com/evanw/esbuild v0.9.6 => v0.11.0
Bjørn Erik Pedersen [Mon, 29 Mar 2021 08:03:06 +0000 (10:03 +0200)]
deps: Upgrade github.com/evanw/esbuild v0.9.6 => v0.11.0

4 years agoTry to fix the fuzz build
Bjørn Erik Pedersen [Sun, 28 Mar 2021 19:42:44 +0000 (21:42 +0200)]
Try to fix the fuzz build

4 years agoreleaser: Prepare repository for 0.83.0-DEV
hugoreleaser [Sun, 21 Mar 2021 18:12:42 +0000 (18:12 +0000)]
releaser: Prepare repository for 0.83.0-DEV

[ci skip]

4 years agoreleaser: Add release notes to /docs for release of 0.82.0 v0.82.0
hugoreleaser [Sun, 21 Mar 2021 17:28:02 +0000 (17:28 +0000)]
releaser: Add release notes to /docs for release of 0.82.0

[ci skip]

4 years agoreleaser: Bump versions for release of 0.82.0
hugoreleaser [Sun, 21 Mar 2021 17:28:02 +0000 (17:28 +0000)]
releaser: Bump versions for release of 0.82.0

[ci skip]

4 years agoreleaser: Add release notes for 0.82.0
hugoreleaser [Sun, 21 Mar 2021 16:54:57 +0000 (16:54 +0000)]
releaser: Add release notes for 0.82.0

4 years agodocs: Regenerate docs helper
Bjørn Erik Pedersen [Sun, 21 Mar 2021 12:33:26 +0000 (13:33 +0100)]
docs: Regenerate docs helper

4 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Sun, 21 Mar 2021 12:32:12 +0000 (13:32 +0100)]
docs: Regen CLI docs

4 years agoSquashed 'docs/' changes from bb15e9804..9cece6640
Bjørn Erik Pedersen [Sun, 21 Mar 2021 12:31:17 +0000 (13:31 +0100)]
Squashed 'docs/' changes from bb15e9804..9cece6640

9cece6640 Function sort: fix example labels (#1344)
84444120f Revert "Fix sample data for sort function (#1363)" (#1364)
05c8619f4 Fix sample data for sort function (#1363)
2beb1c0ed Fix "Configure taxonomies" title (#1361)
cd777b9fb Fix sitemap configuration link (#1360)
52251fb42 Update the 'Customize Dates' example to not error (#1357)
1a14cc08a Update quick-start.md
17bb98a94 Add note about image metadata removal
ec4f7bfff Update 404.md
cebfb7a90 explaination that `weight` key is used for sorting
83190ff12 fix typo: "advance settings" → "advanced settings"
75743968c Update quick-start.md
f1c64cd5a Improved documentation.
8af3b236c Update theme

git-subtree-dir: docs
git-subtree-split: 9cece6640095a21673a730201466ea636d2f8ded

4 years agoMerge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3'
Bjørn Erik Pedersen [Sun, 21 Mar 2021 12:31:17 +0000 (13:31 +0100)]
Merge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3'

4 years agoSimplify some config loading code
Bjørn Erik Pedersen [Sun, 21 Mar 2021 12:29:11 +0000 (13:29 +0100)]
Simplify some config loading code

4 years agodeps: Update github.com/evanw/esbuild v0.9.0 => v0.9.6
Bjørn Erik Pedersen [Sun, 21 Mar 2021 09:40:01 +0000 (10:40 +0100)]
deps: Update github.com/evanw/esbuild v0.9.0 => v0.9.6

4 years agoApply OS env overrides twice
Bjørn Erik Pedersen [Sun, 21 Mar 2021 09:54:30 +0000 (10:54 +0100)]
Apply OS env overrides twice

The recent fix for #8346 had an unfortunate side-effect, as it prevented overrides of config options used in the module collector, e.g. `HUGO_MODULE_REPLACEMENTS`.

This commit fixes that by applying the overrides twice.

4 years agoAttributes for code fences should be placed after the lang indicator only
Bjørn Erik Pedersen [Sat, 20 Mar 2021 15:36:30 +0000 (16:36 +0100)]
Attributes for code fences should be placed after the lang indicator only

Fixes #8313

4 years agodeps: Bump github.com/tdewolff/minify/v2 v2.9.15
Bjørn Erik Pedersen [Mon, 15 Mar 2021 11:48:07 +0000 (12:48 +0100)]
deps: Bump github.com/tdewolff/minify/v2 v2.9.15

Fixes #8332

4 years agoFix OS env override for nested config param only available in theme
Bjørn Erik Pedersen [Fri, 19 Mar 2021 10:05:17 +0000 (11:05 +0100)]
Fix OS env override for nested config param only available in theme

Fixes #8346

4 years agoFix `new theme` command description
Avinash Sonawane [Sun, 14 Mar 2021 11:20:02 +0000 (11:20 +0000)]
Fix `new theme` command description

`hugo new theme foo` creates theme `foo` in `./themes` and not in current directory.

4 years agogithub: More explicit support link to discourse
Patrick Kollitsch [Sun, 14 Mar 2021 17:27:15 +0000 (00:27 +0700)]
github: More explicit support link to discourse

4 years agomedia: Make Type comparable
Bjørn Erik Pedersen [Thu, 11 Mar 2021 08:18:01 +0000 (09:18 +0100)]
media: Make Type comparable

So we can use it and output.Format as map key etc.

This commit also fixes the media.Type implementation so it does not need to mutate itself to handle different suffixes for the same MIME type, e.g. jpg vs. jpeg.

This means that there are no Suffix or FullSuffix on media.Type anymore.

Fixes #8317
Fixes #8324

4 years agodeps: Update to esbuild v0.9.0
Bjørn Erik Pedersen [Tue, 9 Mar 2021 11:23:42 +0000 (12:23 +0100)]
deps: Update to esbuild v0.9.0

4 years agoexif: Fix handling of utf8 runes in nullString()
Cameron Moore [Sat, 13 Mar 2021 18:45:09 +0000 (12:45 -0600)]
exif: Fix handling of utf8 runes in nullString()

4 years agoexif: Allow more spacing characters in strings
Cameron Moore [Sat, 13 Mar 2021 15:21:30 +0000 (09:21 -0600)]
exif: Allow more spacing characters in strings

The root cause of issue #8079 was a non-breaking space (U+0160).
`unicode.IsPrint` only allows the ASCII space (U+0020).  Be more lenient
by using `unicode.IsGraphic` instead.

Fixes #8079

4 years agomedia: Add a basic benchmark
Bjørn Erik Pedersen [Thu, 11 Mar 2021 09:07:56 +0000 (10:07 +0100)]
media: Add a basic benchmark

4 years agoFix output format handling for render hooks
Bjørn Erik Pedersen [Tue, 9 Mar 2021 09:26:44 +0000 (10:26 +0100)]
Fix output format handling for render hooks

Fixes #8176

4 years agoRename a test
Bjørn Erik Pedersen [Thu, 4 Mar 2021 12:46:31 +0000 (13:46 +0100)]
Rename a test

4 years agoAdd a debug helper
Bjørn Erik Pedersen [Wed, 3 Mar 2021 19:15:13 +0000 (20:15 +0100)]
Add a debug helper

4 years agoAdd support for Google Analytics v4
Daniel Atwood [Wed, 3 Mar 2021 12:30:06 +0000 (07:30 -0500)]
Add support for Google Analytics v4

4 years agoBump go.mod to Go 1.16
Bjørn Erik Pedersen [Wed, 3 Mar 2021 08:17:57 +0000 (09:17 +0100)]
Bump go.mod to Go 1.16

Fixes #8294

4 years ago#8210 Upgrade golang version for Dockerfile
Systemkern [Sun, 28 Feb 2021 11:46:30 +0000 (12:46 +0100)]
#8210 Upgrade golang version for Dockerfile

https://github.com/gohugoio/hugo/issues/8210
relates to: #8210

4 years agoUpdate CONTRIBUTING.md
Bjørn Erik Pedersen [Thu, 25 Feb 2021 10:50:08 +0000 (11:50 +0100)]
Update CONTRIBUTING.md

4 years agomarkup: Handle attribute lists in code fences
Bjørn Erik Pedersen [Tue, 23 Feb 2021 17:04:05 +0000 (18:04 +0100)]
markup: Handle attribute lists in code fences

Fixes #8278

4 years agoAllow markdown attribute lists to be used in title render hooks
Bjørn Erik Pedersen [Mon, 22 Feb 2021 10:27:14 +0000 (11:27 +0100)]
Allow markdown attribute lists to be used in title render hooks

Fixes #8270

4 years agoMerge commit '9d31f650da964a52f05fc27b7fb99cf3e09778cf'
Bjørn Erik Pedersen [Tue, 23 Feb 2021 16:41:05 +0000 (17:41 +0100)]
Merge commit '9d31f650da964a52f05fc27b7fb99cf3e09778cf'