brevno-suite/hugo
4 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 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.

4 years agotpl/embedded: Exclude pages without Permalink from sitemap
Jeremy Epstein [Sat, 6 Feb 2021 17:30:09 +0000 (04:30 +1100)]
tpl/embedded: Exclude pages without Permalink from sitemap

4 years agolangs/i18n: Support translation files with suffix *.yml
Bjørn Erik Pedersen [Sat, 6 Feb 2021 17:12:54 +0000 (18:12 +0100)]
langs/i18n: Support translation files with suffix *.yml

Fixes #8212

4 years agoRefactor: Write to stdout by default
Ben Mezger [Tue, 2 Feb 2021 23:03:31 +0000 (20:03 -0300)]
Refactor: Write to stdout by default

4 years agoRefactor: Remove powershell support
Ben Mezger [Tue, 2 Feb 2021 23:02:53 +0000 (20:02 -0300)]
Refactor: Remove powershell support

4 years agoFeat: Add zsh, fish and powershell completion support
Ben Mezger [Wed, 6 Jan 2021 13:19:11 +0000 (10:19 -0300)]
Feat: Add zsh, fish and powershell completion support

See issue #4296

4 years agogithub: Enable NPM tests on Windows
Bjørn Erik Pedersen [Mon, 1 Feb 2021 09:23:28 +0000 (10:23 +0100)]
github: Enable NPM tests on Windows

Fixes #8196

4 years agodeps: Update to esbuild v0.8.39
Bjørn Erik Pedersen [Mon, 1 Feb 2021 09:57:38 +0000 (10:57 +0100)]
deps: Update to esbuild v0.8.39

Fixes #8189

4 years agoTrim whitespace in elements written to hugo_stats.json
Pavlo Matiash [Mon, 1 Feb 2021 08:32:39 +0000 (10:32 +0200)]
Trim whitespace in elements written to hugo_stats.json

Fixes #7958

4 years agotpl/data: Add default user-agent header for getJSON requests
Baris Ceviz [Mon, 1 Feb 2021 08:31:02 +0000 (11:31 +0300)]
tpl/data: Add default user-agent header for getJSON requests

4 years agobuild(deps): bump github.com/aws/aws-sdk-go from 1.35.0 to 1.36.33
dependabot[bot] [Thu, 28 Jan 2021 06:13:45 +0000 (06:13 +0000)]
build(deps): bump github.com/aws/aws-sdk-go from 1.35.0 to 1.36.33

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.35.0 to 1.36.33.
- [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.35.0...v1.36.33)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agodocs: Remove mention of a file size limit for readFile
Aleksandr Demakin [Sat, 23 Jan 2021 13:14:51 +0000 (13:14 +0000)]
docs: Remove mention of a file size limit for readFile

The limit itself was removed in this PR: https://github.com/gohugoio/hugo/pull/8172.

4 years agotpl/os: remove 1mb limit for readFile.
Aleksandr Demakin [Fri, 22 Jan 2021 19:05:08 +0000 (19:05 +0000)]
tpl/os: remove 1mb limit for readFile.

4 years agojs: Add Inject config option
Bjørn Erik Pedersen [Fri, 22 Jan 2021 16:07:23 +0000 (17:07 +0100)]
js: Add Inject config option

Fixes #8164

4 years agotpl: Fix race condition in text template baseof
Cameron Moore [Sun, 17 Jan 2021 05:05:58 +0000 (23:05 -0600)]
tpl: Fix race condition in text template baseof

Copy most of the htmltemplate cloning to the textemplate implementation
in the same function.

4 years agojs: Add Shims option
Bjørn Erik Pedersen [Thu, 21 Jan 2021 15:52:32 +0000 (16:52 +0100)]
js: Add Shims option

This commit adds a new `shims` option to `js.Build` that allows swapping out a component with another.

Fixes #8165

4 years agoFix nilpointer in js.Build error handling
Bjørn Erik Pedersen [Thu, 21 Jan 2021 09:09:33 +0000 (10:09 +0100)]
Fix nilpointer in js.Build error handling

Fixes #8162

4 years agoMerge commit 'e48ffb763572814a3788780bb9653dfa2daeae22'
Bjørn Erik Pedersen [Wed, 20 Jan 2021 11:48:39 +0000 (12:48 +0100)]
Merge commit 'e48ffb763572814a3788780bb9653dfa2daeae22'

4 years agoSquashed 'docs/' changes from 1de7a358c..ef9c4913c
Bjørn Erik Pedersen [Wed, 20 Jan 2021 11:47:49 +0000 (12:47 +0100)]
Squashed 'docs/' changes from 1de7a358c..ef9c4913c

ef9c4913c Clean up and removal of outdated examples
46122c9aa add godot tutorials to showcase
06d1d1ea2 Update scss-sass.md
1fc63c100 Spelling fix in 0.79.1 release notes
ad2f50e3d Update plainwords description (#1296)
33021d451 Update substr examples (#1304)
6b1cc59bb Release 0.80.0
521db8c6d Merge branch 'tempv0.80.0'
58626c2b3 releaser: Add release notes to /docs for release of 0.80.0
f81d118af dartsass: Dart Sass only supports `expanded` and `compressed`
7da6f54be Add Dart Sass support
b1f2661bb Replace jsconfig.js with jsconfig.json
38de0c1a4 Update index.md
223ceae80 Update index.md
f7ac0e59d Release v0.79.1
2d4583d43 Merge branch 'temp791-2'
1d34e609b releaser: Add release notes to /docs for release of 0.79.1
e26769988 Merge branch 'temp791'
75694d904 Fix Resource.ResourceType so it always returns MIME's main type
0f65d7783 Typo s/adds/add (#1298)
0b896b2c0 images: Add images.Overlay filter
0d4257dcd Clarify documentation on shimming
fcf601ddf Update index.html
6bf9bc1c1 Update index.html
1ce76bf3a Update index.html
e7d976eec Update index.html
db2996e64 Update index.html
245e5bfc9 news: Add post about Apple M1
3ad4115ed tpl: Add title parameter to YouTube shortcode
76ed976f8 Added two useful extensions to the list (#1243)
e5a30dd11 Update related.md
25cf8f48b Improve substr examples
e16e57e9a Update path.Split.md
2749b88fd Update path.Split.md
d76cad3ff Release 0.79.0
f5ccfbe98 releaser: Add release notes to /docs for release of 0.79.0
ebf1b87b0 Merge commit '9f1265fde4b9ef186148337c99f08601633b6056'
1f1e8f39c Allow setting the delimiter used for setting config via OS env, e.g. HUGO_
e9b1414dd deps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14
0f76cf66c docs: Regen docshelper
1ada5d47e Add menu params
1c120aef0 Revert "docs: Regenerate docshelper"
7b60b5624 docs: Regenerate docshelper

git-subtree-dir: docs
git-subtree-split: ef9c4913cdcf95d62ec12d872f412f97e55a55ad

4 years agobuild(deps): bump github.com/spf13/afero from 1.4.1 to 1.5.1
Robert-André Mauchin [Mon, 18 Jan 2021 01:35:33 +0000 (02:35 +0100)]
build(deps): bump github.com/spf13/afero from 1.4.1 to 1.5.1

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
4 years agopipes: Add external source map support to js.Build and Babel
Andreas Richter [Mon, 18 Jan 2021 09:38:09 +0000 (04:38 -0500)]
pipes: Add external source map support to js.Build and Babel

Fixes #8132

4 years agotpl: Fix metrics hint tracking
Cameron Moore [Fri, 8 Jan 2021 16:26:35 +0000 (10:26 -0600)]
tpl: Fix metrics hint tracking

When tracking for cache hints, track the same template name as the call
to MeasureSince in Execute.  When referencing a partial "foo", the value
of `n` does not match `templ.Name()` (`partials/foo` versus
`partials/foo.html`).  This was causing hints to go untracked since
there was no existing metric to append the hint to.

Fixes #8125

4 years agotpl: Do not return errors in substr for out-of-bounds cases
Cameron Moore [Sun, 3 Jan 2021 18:01:42 +0000 (12:01 -0600)]
tpl: Do not return errors in substr for out-of-bounds cases

Most other substr implementations don't error out in out-of-bounds cases
but simply return an empty string (or a value that's printed as an empty
string). We'll follow their lead and not exit template execution.  Allow
the user decide what to do with the empty result.

Fixes #8113