brevno-suite/hugo
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 agoMerge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3'
Bjørn Erik Pedersen [Sun, 21 Mar 2021 12:31:17 +0000 (13:31 +0100)]
Merge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3'

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

4 years agoSquashed 'docs/' changes from d343ebf71..bb15e9804
Bjørn Erik Pedersen [Tue, 23 Feb 2021 16:39:59 +0000 (17:39 +0100)]
Squashed 'docs/' changes from d343ebf71..bb15e9804

bb15e9804 Update index.md (#1339)
ffb2f21d1 Update index.md
fc154ac02 Regenerate CLI docs
a0a687738 Update index.md
d0e35a844 Update index.md
86d0cc042 Update index.md
bdaf7e022 Release 0.81.0
b51017445 releaser: Add release notes to /docs for release of 0.81.0
888dd8fcc docs: Regen CLI docs
8c3e8b270 docs: Regen docs helper
79e3e1ebc Merge commit 'acb9109df778fa4a51c0d8b29b3212b12988908f'
31f70af7e modules: Add config option modules.vendorClosest
2631df94e markup/goldmark: Add attributes support for blocks (tables etc.)
19dee04ad Update to Dart Sass Protocol beta6
e507721fe Refactor: Write to stdout by default
d204bf160 Refactor: Remove powershell support
91bea48f5 Feat: Add zsh, fish and powershell completion support
9c915ea27 docs: Remove mention of a file size limit for readFile
5acc8b6c7 js: Add Inject config option
45321989e js: Add Shims option

git-subtree-dir: docs
git-subtree-split: bb15e9804ae56da41f3bdb361adc14f8711fc19d

4 years agobuild(deps): bump github.com/kyokomi/emoji/v2 from 2.2.7 to 2.2.8
dependabot[bot] [Fri, 19 Feb 2021 18:02:40 +0000 (18:02 +0000)]
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.7 to 2.2.8

Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/kyokomi/emoji/releases)
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.7...v2.2.8)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agotpl: Add method mappings for strings.Contains, strings.ContainsAny
Bjørn Erik Pedersen [Tue, 23 Feb 2021 08:36:11 +0000 (09:36 +0100)]
tpl: Add method mappings for strings.Contains, strings.ContainsAny

Just to confirm/document the function signature.

4 years agoFixes #7698.
gzagatti [Mon, 11 Jan 2021 08:46:31 +0000 (16:46 +0800)]
Fixes #7698.

markup: Allow installed arbitrary Asciidoc extension via path validation.

4 years agocommands: Fix autocomplete docs
Bjørn Erik Pedersen [Sat, 20 Feb 2021 13:08:51 +0000 (14:08 +0100)]
commands: Fix autocomplete docs

4 years agoreleaser: Prepare repository for 0.82.0-DEV
hugoreleaser [Fri, 19 Feb 2021 17:55:53 +0000 (17:55 +0000)]
releaser: Prepare repository for 0.82.0-DEV

[ci skip]

4 years agoreleaser: Add release notes to /docs for release of 0.81.0 v0.81.0
hugoreleaser [Fri, 19 Feb 2021 17:07:09 +0000 (17:07 +0000)]
releaser: Add release notes to /docs for release of 0.81.0

[ci skip]

4 years agoreleaser: Bump versions for release of 0.81.0
hugoreleaser [Fri, 19 Feb 2021 17:07:09 +0000 (17:07 +0000)]
releaser: Bump versions for release of 0.81.0

[ci skip]

4 years agoreleaser: Increase build timeout
Bjørn Erik Pedersen [Fri, 19 Feb 2021 16:57:24 +0000 (17:57 +0100)]
releaser: Increase build timeout

4 years agoreleaser: Add release notes for 0.81.0
hugoreleaser [Fri, 19 Feb 2021 09:33:44 +0000 (09:33 +0000)]
releaser: Add release notes for 0.81.0

4 years agotpl: Make the build green again
Bjørn Erik Pedersen [Thu, 18 Feb 2021 17:17:43 +0000 (18:17 +0100)]
tpl: Make the build green again

4 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Thu, 18 Feb 2021 16:55:38 +0000 (17:55 +0100)]
docs: Regen CLI docs

4 years agodocs: Regen docs helper
Bjørn Erik Pedersen [Thu, 18 Feb 2021 16:54:25 +0000 (17:54 +0100)]
docs: Regen docs helper

4 years agoSquashed 'docs/' changes from ef9c4913c..d343ebf71
Bjørn Erik Pedersen [Thu, 18 Feb 2021 16:52:49 +0000 (17:52 +0100)]
Squashed 'docs/' changes from ef9c4913c..d343ebf71

d343ebf71 Document ignoreImports
f912ea1cc Fix the github workflow (#1332)
617894052 Add site function
f3be651f9 Minor typo/markdown fixes (#1328)
7a95e9db5 Fix a formatting error for Github Actions (#1323)
260106669 Fix #1120 Use Github Action
d8847a144 docs: Fix HTML code in .RenderString description being stripped out (#1320)
7a67c38c4 Correct sitemap version (#1318)
6a163f53a Removed noise. (#1317)
b02902121 Fix a minor typo (#1314)
399c74acd Revert "js: Update shims setup"
77def8a8c Revert "Update js.md"
13aeb2c73 Update js.md
704987dc1 js: Update shims setup

git-subtree-dir: docs
git-subtree-split: d343ebf718393ea704da132de508db712f7bcb44

4 years agoMerge commit 'acb9109df778fa4a51c0d8b29b3212b12988908f'
Bjørn Erik Pedersen [Thu, 18 Feb 2021 16:52:49 +0000 (17:52 +0100)]
Merge commit 'acb9109df778fa4a51c0d8b29b3212b12988908f'

4 years agotpl: Regenerate internal templates
Bjørn Erik Pedersen [Thu, 18 Feb 2021 16:52:32 +0000 (17:52 +0100)]
tpl: Regenerate internal templates

4 years agotpl: Update date logic of opengraph and schema internal templates
Daniel Atwood [Thu, 18 Feb 2021 16:51:32 +0000 (11:51 -0500)]
tpl: Update date logic of opengraph and schema internal templates

* Fix: updated date logic in opengraph template

* Updated date logic in schema template

* Reformatted opengraph and schema

* Wrapped PublishDate and Lastmod in with

4 years agoRun go mod tidy
Bjørn Erik Pedersen [Thu, 18 Feb 2021 13:22:25 +0000 (14:22 +0100)]
Run go mod tidy

4 years agobuild: Add arm64 to Darwinextended build and add vendorInfo
Bjørn Erik Pedersen [Wed, 17 Feb 2021 12:52:58 +0000 (13:52 +0100)]
build: Add arm64 to Darwinextended build and add vendorInfo

Closes #8003

4 years agoUpdate Travis, GitHub, CircleCI and Snap to Go 1.16 (only)
Bjørn Erik Pedersen [Wed, 17 Feb 2021 11:13:36 +0000 (12:13 +0100)]
Update Travis, GitHub, CircleCI and Snap to Go 1.16 (only)

4 years agotpl: Add temporary patch to fix template data race
Bjørn Erik Pedersen [Fri, 29 Jan 2021 16:45:38 +0000 (17:45 +0100)]
tpl: Add temporary patch to fix template data race

Keep this as a separate commit so we can reapply it if needed.

Fixes #7293

4 years agoPull in latest Go 1.16 template source
Bjørn Erik Pedersen [Wed, 17 Feb 2021 10:57:23 +0000 (11:57 +0100)]
Pull in latest Go 1.16 template source

4 years agoAdd breaking tests for "map read and map write in templates"
Bjørn Erik Pedersen [Fri, 29 Jan 2021 16:20:55 +0000 (17:20 +0100)]
Add breaking tests for "map read and map write in templates"

The fix upstream in Go was reverted, so we apply a temporary patch for this in Hugo.

Updates #7293

4 years agoPull in latest Go template source
Bjørn Erik Pedersen [Fri, 29 Jan 2021 16:15:42 +0000 (17:15 +0100)]
Pull in latest Go template source

4 years agoExpand template newline testcase to commands
Bjørn Erik Pedersen [Thu, 3 Dec 2020 15:42:24 +0000 (16:42 +0100)]
Expand template newline testcase to commands

4 years agoAdd a test case for Go 1.16 template action newlines
Bjørn Erik Pedersen [Thu, 3 Dec 2020 12:54:45 +0000 (13:54 +0100)]
Add a test case for Go 1.16 template action newlines

4 years agotpl/internal: Synch Go templates fork with Go 1.16dev
Bjørn Erik Pedersen [Thu, 3 Dec 2020 12:50:17 +0000 (13:50 +0100)]
tpl/internal: Synch Go templates fork with Go 1.16dev

4 years agodeps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13
Bjørn Erik Pedersen [Thu, 18 Feb 2021 08:32:34 +0000 (09:32 +0100)]
deps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13

Fixes #8258

4 years agobuild(deps): bump github.com/frankban/quicktest from 1.11.2 to 1.11.3
dependabot[bot] [Tue, 16 Feb 2021 20:24:06 +0000 (20:24 +0000)]
build(deps): bump github.com/frankban/quicktest from 1.11.2 to 1.11.3

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

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.32.0 to 0.39.0
dependabot[bot] [Tue, 16 Feb 2021 17:51:43 +0000 (17:51 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.32.0 to 0.39.0

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

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/aws/aws-sdk-go from 1.36.33 to 1.37.11
dependabot[bot] [Tue, 16 Feb 2021 15:18:10 +0000 (15:18 +0000)]
build(deps): bump github.com/aws/aws-sdk-go from 1.36.33 to 1.37.11

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

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/sanity-io/litter from 1.3.0 to 1.5.0
dependabot[bot] [Tue, 16 Feb 2021 15:16:43 +0000 (15:16 +0000)]
build(deps): bump github.com/sanity-io/litter from 1.3.0 to 1.5.0

Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter) from 1.3.0 to 1.5.0.
- [Release notes](https://github.com/sanity-io/litter/releases)
- [Changelog](https://github.com/sanity-io/litter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sanity-io/litter/compare/v1.3.0...v1.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5
dependabot[bot] [Tue, 16 Feb 2021 15:16:37 +0000 (15:16 +0000)]
build(deps): bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5

Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/olekukonko/tablewriter/releases)
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.4...v0.0.5)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agodeps: Update to esbuild v0.8.46
Bjørn Erik Pedersen [Tue, 16 Feb 2021 15:12:27 +0000 (16:12 +0100)]
deps: Update to esbuild v0.8.46

4 years agomodules: Add config option modules.vendorClosest
Bjørn Erik Pedersen [Sun, 14 Feb 2021 18:24:13 +0000 (19:24 +0100)]
modules: Add config option modules.vendorClosest

Fixes #8235
Fixes #8242

4 years agojs: Fix potential path issue on Windows
Bjørn Erik Pedersen [Mon, 1 Feb 2021 11:49:08 +0000 (12:49 +0100)]
js: Fix potential path issue on Windows

4 years agobuild(deps): bump google.golang.org/api from 0.26.0 to 0.40.0
dependabot[bot] [Sun, 14 Feb 2021 17:37:44 +0000 (17:37 +0000)]
build(deps): bump google.golang.org/api from 0.26.0 to 0.40.0

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

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoChange version string format and add VendorInfo to help with issue triaging
Anthony Fok [Tue, 16 Feb 2021 15:08:24 +0000 (08:08 -0700)]
Change version string format and add VendorInfo to help with issue triaging

* Change version string format as proposed by @moorereason

 1. shorten program name
 2. make version string semver compliant with +extended.
    The slash is not allowed in semver.
 3. Use key=value pairs for BuildDate etc.

* Add optional vendorInfo to version string

to help with issue triaging, e.g. VendorInfo=debian:0.80.0-7

4 years agomodules: Allow absolute paths for any modules resolved via project replacement
Bjørn Erik Pedersen [Mon, 15 Feb 2021 10:11:34 +0000 (11:11 +0100)]
modules: Allow absolute paths for any modules resolved via project replacement

Fixes #8240

4 years agomodules: Throw an error running hugo mod vendor on mountless module
Bjørn Erik Pedersen [Mon, 15 Feb 2021 09:47:32 +0000 (10:47 +0100)]
modules: Throw an error running hugo mod vendor on mountless module

4 years agoFix some humanize issues
susiwen8 [Sun, 14 Feb 2021 17:30:59 +0000 (01:30 +0800)]
Fix some humanize issues

Fixes #7912

4 years agocommands: Add PowerShell completion support
Anthony Fok [Tue, 9 Feb 2021 20:37:36 +0000 (13:37 -0700)]
commands: Add PowerShell completion support

Revert "Refactor: Remove powershell support" with fixes

Thanks to Ben Mezger (@benmezger) for the original code.
See #8122

This reverts commit a7c515e1b56e8cab34ca2647b4116904df9c8250.

4 years agoRefer to mage instead of make in comment regarding commitHash
Anthony Fok [Tue, 9 Feb 2021 16:57:18 +0000 (09:57 -0700)]
Refer to mage instead of make in comment regarding commitHash

4 years agomarkup/goldmark: Fix handling of legacy attribute config
Bjørn Erik Pedersen [Tue, 9 Feb 2021 08:23:18 +0000 (09:23 +0100)]
markup/goldmark: Fix handling of legacy attribute config

See #7548

4 years agomarkup/goldmark: Add attributes support for blocks (tables etc.)
Bjørn Erik Pedersen [Sun, 7 Feb 2021 17:08:46 +0000 (18:08 +0100)]
markup/goldmark: Add attributes support for blocks (tables etc.)

E.g.:

```
> foo
> bar
{.myclass}
```

There are some current limitations: For tables you can currently only apply it to the full table, and for lists the ul/ol-nodes only, e.g.:

```
* Fruit
  * Apple
  * Orange
  * Banana
  {.fruits}
* Dairy
  * Milk
  * Cheese
  {.dairies}
{.list}
```

Fixes #7548

4 years agodeps: Update to Goldmark v1.3.2
Bjørn Erik Pedersen [Mon, 8 Feb 2021 09:53:34 +0000 (10:53 +0100)]
deps: Update to Goldmark v1.3.2

Closes #8143

4 years agoUpdate to Dart Sass Protocol beta6
Bjørn Erik Pedersen [Sat, 6 Feb 2021 16:51:08 +0000 (17:51 +0100)]
Update to Dart Sass Protocol beta6

Note that this version is not backwards compatible, so you have to update the protocol binary.