brevno-suite/hugo
3 years agoreleaser: Prepare repository for 0.85.0-DEV
hugoreleaser [Thu, 1 Jul 2021 12:59:47 +0000 (12:59 +0000)]
releaser: Prepare repository for 0.85.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.84.4 v0.84.4
hugoreleaser [Thu, 1 Jul 2021 11:51:53 +0000 (11:51 +0000)]
releaser: Add release notes to /docs for release of 0.84.4

[ci skip]

3 years agoreleaser: Bump versions for release of 0.84.4
hugoreleaser [Thu, 1 Jul 2021 11:51:53 +0000 (11:51 +0000)]
releaser: Bump versions for release of 0.84.4

[ci skip]

3 years agoreleaser: Add release notes for 0.84.4
hugoreleaser [Thu, 1 Jul 2021 11:51:53 +0000 (11:51 +0000)]
releaser: Add release notes for 0.84.4
[ci skip]

3 years agoFix Cloudflare vs Netlify cache dir issue
Bjørn Erik Pedersen [Wed, 30 Jun 2021 10:55:29 +0000 (12:55 +0200)]
Fix Cloudflare vs Netlify cache dir issue

Re-add the additional environment checks to determine if its Netlify. Seems that Cloudflare also sets `NETLIFY=true`.

This makes it look, basically, like a variant of the conditional we had before we started fixing this, but I have checked this logic on Netlify now and it should work.

Fixes #8714

3 years agoFix date format in schema and opengraph templates
Joe Mooring [Sun, 20 Jun 2021 19:30:41 +0000 (12:30 -0700)]
Fix date format in schema and opengraph templates

Fixes #8671

3 years agoreleaser: Prepare repository for 0.85.0-DEV
hugoreleaser [Tue, 29 Jun 2021 12:27:15 +0000 (12:27 +0000)]
releaser: Prepare repository for 0.85.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.84.3 v0.84.3
hugoreleaser [Tue, 29 Jun 2021 11:40:19 +0000 (11:40 +0000)]
releaser: Add release notes to /docs for release of 0.84.3

[ci skip]

3 years agoreleaser: Bump versions for release of 0.84.3
hugoreleaser [Tue, 29 Jun 2021 11:40:19 +0000 (11:40 +0000)]
releaser: Bump versions for release of 0.84.3

[ci skip]

3 years agoreleaser: Add release notes for 0.84.3
hugoreleaser [Tue, 29 Jun 2021 11:40:19 +0000 (11:40 +0000)]
releaser: Add release notes for 0.84.3
[ci skip]

3 years agoconfig: Fix Netlify default cache dir logic
Bjørn Erik Pedersen [Tue, 29 Jun 2021 07:51:09 +0000 (09:51 +0200)]
config: Fix Netlify default cache dir logic

Fixes #8710

3 years agoconfig: Fix handling of invalid OS env config overrides
Bjørn Erik Pedersen [Tue, 29 Jun 2021 07:38:05 +0000 (09:38 +0200)]
config: Fix handling of invalid OS env config overrides

Fixes #8709

3 years agoreleaser: Prepare repository for 0.85.0-DEV
hugoreleaser [Mon, 28 Jun 2021 11:41:38 +0000 (11:41 +0000)]
releaser: Prepare repository for 0.85.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.84.2 v0.84.2
hugoreleaser [Mon, 28 Jun 2021 10:59:18 +0000 (10:59 +0000)]
releaser: Add release notes to /docs for release of 0.84.2

[ci skip]

3 years agoreleaser: Bump versions for release of 0.84.2
hugoreleaser [Mon, 28 Jun 2021 10:59:18 +0000 (10:59 +0000)]
releaser: Bump versions for release of 0.84.2

[ci skip]

3 years agoreleaser: Add release notes for 0.84.2
hugoreleaser [Mon, 28 Jun 2021 10:59:18 +0000 (10:59 +0000)]
releaser: Add release notes for 0.84.2
[ci skip]

3 years agomodules: Add module.import.noMounts config
Bjørn Erik Pedersen [Mon, 28 Jun 2021 08:39:52 +0000 (10:39 +0200)]
modules: Add module.import.noMounts config

Fixes #8708

3 years agomodules: Use value type for module.Time
Bjørn Erik Pedersen [Sun, 27 Jun 2021 16:06:52 +0000 (18:06 +0200)]
modules: Use value type for module.Time

Which is in line with how we do it elsewhere.

3 years agocommands: Add version time to "hugo config mounts"
Bjørn Erik Pedersen [Sun, 27 Jun 2021 16:00:20 +0000 (18:00 +0200)]
commands: Add version time to "hugo config mounts"

3 years agocommands: Add some more info to "hugo config mounts"
Bjørn Erik Pedersen [Sun, 27 Jun 2021 13:58:24 +0000 (15:58 +0200)]
commands: Add some more info to "hugo config mounts"

* Add owner path and version.
* Also add thme meta info and Hugo version when run with -v flag

3 years agoFix config handling with empty config entries after merge
Bjørn Erik Pedersen [Sun, 27 Jun 2021 11:24:49 +0000 (13:24 +0200)]
Fix config handling with empty config entries after merge

Fixes #8701

3 years agoFix config loading for "hugo mod init"
Bjørn Erik Pedersen [Sun, 27 Jun 2021 10:03:43 +0000 (12:03 +0200)]
Fix config loading for "hugo mod init"

We have some commands that will continue even if the config loading fails (e.g. because a module can not be found). In Hugo 0.84.0 we introduced a new `_merge` flag that we removed once the configuration was loaded. But we did not do that in error situations, leading to failures in some situations.

This commit fixes that by making sure the configuration is always cleaned before return, even in error situations.

Fixes #8697

3 years agodeps: Update to Minify v2.9.18
Bjørn Erik Pedersen [Sat, 26 Jun 2021 15:15:55 +0000 (17:15 +0200)]
deps: Update to Minify v2.9.18

Closes #8693

3 years agoRemove credit from release notes
digitalcraftsman [Fri, 25 Jun 2021 19:14:11 +0000 (21:14 +0200)]
Remove credit from release notes

3 years agoreleaser: Prepare repository for 0.85.0-DEV
hugoreleaser [Thu, 24 Jun 2021 12:33:45 +0000 (12:33 +0000)]
releaser: Prepare repository for 0.85.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.84.1 v0.84.1
hugoreleaser [Thu, 24 Jun 2021 11:44:21 +0000 (11:44 +0000)]
releaser: Add release notes to /docs for release of 0.84.1

[ci skip]

3 years agoreleaser: Bump versions for release of 0.84.1
hugoreleaser [Thu, 24 Jun 2021 11:44:21 +0000 (11:44 +0000)]
releaser: Bump versions for release of 0.84.1

[ci skip]

3 years agoreleaser: Add release notes for 0.84.1
hugoreleaser [Thu, 24 Jun 2021 11:44:21 +0000 (11:44 +0000)]
releaser: Add release notes for 0.84.1
[ci skip]

3 years agoFix language menu config regression
Bjørn Erik Pedersen [Tue, 22 Jun 2021 16:17:49 +0000 (18:17 +0200)]
Fix language menu config regression

Fixes #8672

3 years agoconfig: Fix merge of config with map[string]string values.
Bjørn Erik Pedersen [Tue, 22 Jun 2021 07:53:37 +0000 (09:53 +0200)]
config: Fix merge of config with map[string]string values.

Fixes #8679

3 years agoreleaser: Bump to Goreleaser v0.171.0
Bjørn Erik Pedersen [Mon, 21 Jun 2021 14:12:18 +0000 (16:12 +0200)]
releaser: Bump to Goreleaser v0.171.0

Closes #8665

3 years agomarkup: Rename Header(s) to Heading(s) in ToC struct
Bjørn Erik Pedersen [Sat, 19 Jun 2021 16:19:46 +0000 (18:19 +0200)]
markup: Rename Header(s) to Heading(s) in ToC struct

Because that is what it is.

3 years agoMerge commit '4dd90050f154c91373329a5d7e348289c40be12f'
Bjørn Erik Pedersen [Fri, 18 Jun 2021 15:50:27 +0000 (17:50 +0200)]
Merge commit '4dd90050f154c91373329a5d7e348289c40be12f'

3 years agoSquashed 'docs/' changes from 3a923e155..710856e5a
Bjørn Erik Pedersen [Fri, 18 Jun 2021 15:49:54 +0000 (17:49 +0200)]
Squashed 'docs/' changes from 3a923e155..710856e5a

710856e5a Release 0.84.0
362f4ea7b releaser: Add release notes to /docs for release of 0.84.0
6bb8800f7 docs: Regenerate docs helper
00a522e6a docs: Regenerate docshelper
bc171954b Merge commit '92405e5b0adc5d8c3dfde88d6a8b67eb09169190'
ef73ffc3b Misc config loading fixes
0b4117f7f docs: Regenerate docs helper
9b9452b9c Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'
9c4413dd9 tpl/fmt: Add erroridf template func
e1875742e tpl/data: Misc header improvements, tests, allow multiple headers of same key
e4560893c Add math.Max and math.Min
7dc282eaf common/maps: Add Scratch.DeleteInMap
b9cd77171 docs: Update querify function description and examples

git-subtree-dir: docs
git-subtree-split: 710856e5a6c683ce26d385960423303cc109c09e

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 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 agoMerge commit '92405e5b0adc5d8c3dfde88d6a8b67eb09169190'
Bjørn Erik Pedersen [Fri, 18 Jun 2021 10:57:19 +0000 (12:57 +0200)]
Merge commit '92405e5b0adc5d8c3dfde88d6a8b67eb09169190'

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