hugoreleaser
5099abe600
releaser: Bump versions for release of 0.97.2
...
[ci skip]
2022-04-17 08:39:27 +00:00
hugoreleaser
99ec88d42d
releaser: Add release notes for 0.97.2
...
[ci skip]
2022-04-17 08:39:27 +00:00
Bjørn Erik Pedersen
6c35a1a9ea
Revert "Fix PostProcess regression for hugo server"
...
This reverts commit 4deb5c6066 .
2022-04-17 10:35:01 +02:00
hugoreleaser
363bc907c0
releaser: Prepare repository for 0.98.0-DEV
...
[ci skip]
2022-04-16 17:35:04 +00:00
hugoreleaser
04efcb2a68
releaser: Bump versions for release of 0.97.1
...
[ci skip]
2022-04-16 16:57:30 +00:00
hugoreleaser
4560725521
releaser: Add release notes for 0.97.1
...
[ci skip]
2022-04-16 16:57:30 +00:00
Bjørn Erik Pedersen
4deb5c6066
Fix PostProcess regression for hugo server
...
Fixes #9788
2022-04-16 18:43:13 +02:00
Bjørn Erik Pedersen
397fce5603
Fix MediaType when reading images from cache
...
Fixes #8931
2022-04-16 16:36:15 +02:00
Bjørn Erik Pedersen
0093eaa683
deps: Upgrade github.com/bep/overlayfs v0.4.0 => v0.5.0
...
That version implement file.Readdir/Readdirnames for n > 0.
Closes #9783
2022-04-14 21:26:05 +02:00
hugoreleaser
d0f731c039
releaser: Prepare repository for 0.98.0-DEV
...
[ci skip]
2022-04-14 09:24:30 +00:00
hugoreleaser
c07f3626e7
releaser: Bump versions for release of 0.97.0
...
[ci skip]
2022-04-14 08:45:07 +00:00
hugoreleaser
42b5d16536
releaser: Add release notes for 0.97.0
...
[ci skip]
2022-04-14 08:45:07 +00:00
Bjørn Erik Pedersen
d80d5a104f
releaser: Reduce parallelism
2022-04-14 10:38:31 +02:00
Bjørn Erik Pedersen
842262f653
Revert "build(deps): bump gocloud.dev from 0.20.0 to 0.25.0"
...
This reverts commit 20162518c4 .
Updates #9778
2022-04-13 17:29:36 +02:00
Bjørn Erik Pedersen
2dbdf38a54
resources: Add key to reources.GetRemote options map
...
If set, `key` will be used as the only cache key element for the resource.
The default behaviour is to calculate the key based on the URL and all the options.
This means that you can now do:
```
{{ $cacheKey := print $url (now.Format "2006-01-02") }}
{{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }}
```
Fixes #9755
2022-04-13 09:18:17 +02:00
dependabot[bot]
f8c4e1690a
build(deps): bump github.com/evanw/esbuild from 0.14.34 to 0.14.36
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.34 to 0.14.36.
- [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.14.34...v0.14.36 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-12 15:03:47 +02:00
Bjørn Erik Pedersen
627eed1d62
Make string sorting (e.g. ByTitle, ByLinkTitle and ByParam) language aware
...
Fixes #2180
2022-04-12 13:24:16 +02:00
Bjørn Erik Pedersen
82ba634ed9
Fix gosum checksum errors
...
Both of the 2 libraries in question have had known "double releases" -- same tag pushed twice with different commits.
Note that this will not resolve itself in Hugo "fully" before we do a new release (which should happen in a day or two).
Fixes #9771
2022-04-11 20:12:11 +02:00
dependabot[bot]
d417a6cf74
build(deps): bump github.com/tdewolff/minify/v2 from 2.11.0 to 2.11.1
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.11.0 to 2.11.1.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.11.0...v2.11.1 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-11 11:48:11 +02:00
Bjørn Erik Pedersen
13dac7f3cd
compare: Add a string sort benchmark
2022-04-11 11:33:58 +02:00
Bjørn Erik Pedersen
30c2e54c25
Replace all usage of CopyOnWriteFs with OverlayFs
...
Fixes #9761
2022-04-10 13:49:31 +02:00
Joe Mooring
3117e58595
deps: Update github.com/tdewolff/minify/v2 v2.10.0 => v2.11.0
...
Fixes #9713
Fixes #9740
Adds support for minify.tdewolff.svg.keepComments (bool)
2022-04-08 21:44:29 +02:00
Bjørn Erik Pedersen
5b5dcb8d5a
Merge commit 'ec920363cdeb687c8bcac9c242767d366fb058cb'
2022-04-08 13:32:01 +02:00
Bjørn Erik Pedersen
ec920363cd
Squashed 'docs/' changes from 63386081c..4c5edacfe
...
4c5edacfe cSpell config update (#1700 )
9df788b25 Fix broken link (hugo modules) (#1710 )
9928a70d6 Fix workspace formatting (#1707 )
55467e7c8 Update partials.md
9f4bd0023 Update formats.md
9b3913c86 Remove footnoteAnchorPrefix and footnoteReturnLinkContents (#1704 )
94502a09b Code block render hooks are introduced in v0.93.0 (#1701 )
c447270ef Update sitemap-template.md
78665c1e0 Update sitemap-template.md
60653c17d Update the caddy error docs link (#1696 )
9a3675aad Update sitemap templates (#1699 )
e0d08cdbb Add wpxr-to-static to list of migration tools (#1512 )
b53eb5a08 Add page for deploying with rclone (#1511 )
4207c57ff netlify: Hugo 0.96.0
a18d646ea docs: Regen docshelper
e3e0981ed docs: Regen CLI docs
fda988d01 Merge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'
e4a26dbca tpl/crypto: Add optional encoding arg to hmac function
git-subtree-dir: docs
git-subtree-split: 4c5edacfee
2022-04-08 13:32:01 +02:00
Bjørn Erik Pedersen
ffe3eb9195
docs: Regen CLI docs
2022-04-08 13:31:50 +02:00
Bjørn Erik Pedersen
d070bdf10f
Rework the Destination filesystem to make --renderStaticToDisk work
...
See #9626
2022-04-08 13:26:17 +02:00
Bjørn Erik Pedersen
b08193971a
Revert "Revert "Some minor adjustments to the new static filesystem logic""
...
This reverts commit 5ef8a9f32c .
2022-04-08 13:26:17 +02:00
Bjørn Erik Pedersen
0a56f2af4e
Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode""
...
This reverts commit 64b7b7a897 .
2022-04-08 13:26:16 +02:00
dependabot[bot]
9e360d3844
build(deps): bump github.com/evanw/esbuild from 0.14.31 to 0.14.34
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.31 to 0.14.34.
- [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.14.31...v0.14.34 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-07 11:38:43 +02:00
Joe Mooring
a8c221d33b
modules/client: Vendor config directory if present
...
Fixes #9751
2022-04-05 20:39:04 +02:00
Bjørn Erik Pedersen
e58a540895
resources: Create a common ResourceFinder interface
...
And make both .Resources and resources implement it.
This gets us 2 new methods/functions, so you can now also do:
* .Resources.Get
* resources.ByType
Note that GetRemote is not covered by this interface, as that is only available as a global template function.
Fixes #8653
2022-04-05 18:00:44 +02:00
dependabot[bot]
20162518c4
build(deps): bump gocloud.dev from 0.20.0 to 0.25.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.20.0 to 0.25.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.20.0...v0.25.0 )
---
updated-dependencies:
- dependency-name: gocloud.dev
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 17:01:25 +02:00
dependabot[bot]
6b469cc8fb
build(deps): bump golang.org/x/tools from 0.1.9 to 0.1.10
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.1.9...v0.1.10 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 16:14:00 +02:00
dependabot[bot]
080dcac6b8
build(deps): bump github.com/magefile/mage from 1.12.1 to 1.13.0
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.12.1 to 1.13.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.12.1...v1.13.0 )
---
updated-dependencies:
- dependency-name: github.com/magefile/mage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 16:13:27 +02:00
dependabot[bot]
072fc8cc34
build(deps): bump github.com/gobuffalo/flect from 0.2.4 to 0.2.5
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.4...v0.2.5 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 16:12:17 +02:00
Bjørn Erik Pedersen
658e11ebaa
Localize all the GroupBy*Date methods
...
Fixes #9745
2022-04-05 16:11:11 +02:00
dependabot[bot]
e0a882fd3b
build(deps): bump github.com/getkin/kin-openapi from 0.93.0 to 0.94.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.93.0 to 0.94.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.93.0...v0.94.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 13:54:36 +02:00
David Jones
d0657a436e
deploy: Set an MD5 attribute and use that if eTag not available
...
During Hugo deploy when a remote MD5 is invalid (e.g due to multipart eTag) Hugo reads the entire remote file and calculates the MD5 again which can be slow.
This commit updates the file upload so that it will also store an MD5 hash in the cloud provider's attributes. e.g in AWS this looks like x-amz-meta-md5chksum: 26fe392386a8123bf8956a16e08cb841.
2022-04-05 10:42:54 +02:00
dependabot[bot]
a6e2e38bb2
build(deps): bump github.com/sanity-io/litter from 1.5.2 to 1.5.4
...
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter ) from 1.5.2 to 1.5.4.
- [Release notes](https://github.com/sanity-io/litter/releases )
- [Changelog](https://github.com/sanity-io/litter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sanity-io/litter/compare/v1.5.2...v1.5.4 )
---
updated-dependencies:
- dependency-name: github.com/sanity-io/litter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 10:39:27 +02:00
dependabot[bot]
510e179003
build(deps): bump github.com/evanw/esbuild from 0.14.25 to 0.14.31
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.25 to 0.14.31.
- [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.14.25...v0.14.31 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 09:42:11 +02:00
dependabot[bot]
21484f9e12
build(deps): bump github.com/frankban/quicktest from 1.14.2 to 1.14.3
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.14.2 to 1.14.3.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.2...v1.14.3 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 09:41:45 +02:00
Cathrine Paulsen
da00e7714e
Add environment as a new filter to _cascade.target
...
Fixes #9612
2022-04-05 09:41:24 +02:00
Bjørn Erik Pedersen
ed9aa374dd
Merge branch 'release-0.96.0'
2022-04-03 19:57:04 +02:00
Further
2a231b0b57
Snap: Add {system,user}-gitconfig plugs to read gitconfig ( #9619 )
...
* Add system-gitconfig plug to read /etc/gitconfig
* Add user-gitconfig plug to read user-specific gitconfig file(s)
* Add app environment setting to set $HOME as $SNAP_REAL_HOME
2022-04-01 02:52:39 -06:00
hugoreleaser
69c590080f
releaser: Prepare repository for 0.97.0-DEV
...
[ci skip]
2022-03-26 09:53:13 +00:00
hugoreleaser
2fd4a7d3d6
releaser: Bump versions for release of 0.96.0
...
[ci skip]
2022-03-26 09:15:58 +00:00
hugoreleaser
5a4ac2dac1
releaser: Add release notes for 0.96.0
...
[ci skip]
2022-03-26 09:15:58 +00:00
Bjørn Erik Pedersen
db1562e134
docs: Regen docshelper
2022-03-26 11:06:04 +02:00
Bjørn Erik Pedersen
5b18e10841
docs: Regen CLI docs
2022-03-26 11:05:30 +02:00
Bjørn Erik Pedersen
d276e901b3
Squashed 'docs/' changes from a393f4cf4..63386081c
...
63386081c update cSpell config update
15c76494b Update cSpell custom dictionary (#1694 )
34f3167b7 Update image processing (#1625 )
7462cc798 fix: pipes in sample code break table creation (#1686 )
48736447e Update anchorize.md
2ff0bd10b netlify: Hugo 0.95.0
0fc1d21b2 Update configuration.md
41855e372 Fix #1682
8c663433e Update related.md
7aa072eab netlify: Hugo 0.94.2
1682c7ee7 Update render-hooks.md
ce1283cc4 Move the Render Hooks doc to its own page
bbbbfbfc6 Update configuration-markup.md
92d91a316 Update configuration-markup.md
2e8068823 Update configuration-markup.md
ff2dbca60 Update configuration-markup.md
89d8e5d65 Add code block documenation
e993539f0 Update shortcodes.md
c1b28dbfe netlify: Hugo 0.94.1
81b8c9b83 Merge branch 'tempv0.94.1'
4763b3d50 docs: Regenerate CLI docs
b18463971 netlify: Bump to Hugo 0.94.0
4152ebc1d Merge branch 'tempv0.94.0'
ba3a11ac2 docs: Regenerate docshelper
e64016d13 docs: Regenerate docshelper
29180e4d2 add `.html` suffix to partial usage and references
3213e00f2 Docs tidy-up
6cfcae4b7 docs: Regenerate CLI docs
8a6cd0b4d docs: Regenerate docshelper
b20ab262f Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'
git-subtree-dir: docs
git-subtree-split: 63386081c5
2022-03-26 11:04:57 +02:00
Bjørn Erik Pedersen
d7497b28c1
Merge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'
2022-03-26 11:04:57 +02:00
Sara Op den Orth
94459680ba
Deprecate .File.Extension
...
Fixes #9352
2022-03-26 10:03:36 +01:00
Bjørn Erik Pedersen
9202117ba0
resources: Add more details to .Err
...
This commit adds a .Data object (a map with `Body`, `StatusCode` etc.) to the .Err returned from `resources.GetRemote`, which means you can now do:
```
{{ with .Err }}
{{ range $k, $v := .Data }}
{{ end }}
{{ end }}
```
Fixes #9708
2022-03-25 16:40:36 +01:00
Joe Mooring
a6fa290f67
commands: Change link protocol to https
2022-03-25 15:29:50 +01:00
dependabot[bot]
0bbc2fb523
build(deps): bump github.com/getkin/kin-openapi from 0.91.0 to 0.93.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.91.0 to 0.93.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.91.0...v0.93.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-25 11:08:23 +01:00
Joe Mooring
94e8a90769
tpl/crypto: Add optional encoding arg to hmac function
...
Closes #9709
2022-03-23 19:42:56 +01:00
Panagiotis Koursaris
a461e9d01a
Fix typo
2022-03-22 00:39:33 -06:00
cuishuang
48c98a8d24
Fix some typos
...
Signed-off-by: cuishuang <imcusg@gmail.com >
[foka@debian.org: Resolve merge conflict and squash 2 commits]
Signed-off-by: Anthony Fok <foka@debian.org>
2022-03-22 00:38:23 -06:00
Anthony Fok
bbd455fe79
Update CONTRIBUTING.md to use "go install" to install mage
...
In Go 1.18, "go get" no longer builds packages.
2022-03-21 21:01:24 -06:00
Anthony Fok
8309a2b1c1
Dockerfile: Make it build with Go 1.18
2022-03-21 21:01:24 -06:00
Anthony Fok
2b7231097f
snap: Make it build with Go 1.18
2022-03-21 21:01:24 -06:00
dependabot[bot]
13ff4ded76
build(deps): bump github.com/yuin/goldmark from 1.4.10 to 1.4.11
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.10 to 1.4.11.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.10...v1.4.11 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-21 17:31:27 +01:00
dependabot[bot]
c3289eb5b8
build(deps): bump github.com/spf13/cobra from 1.3.0 to 1.4.0
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.3.0 to 1.4.0.
- [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.3.0...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-21 14:08:38 +01:00
Bjørn Erik Pedersen
9539069f5e
commands: Improve server startup to make tests less flaky
...
Do this by announcing/listen on the local address before we start the server.
2022-03-21 09:32:35 +01:00
Bjørn Erik Pedersen
0e305d6958
all: Use strings.Cut
...
Updates #9687
2022-03-21 09:32:35 +01:00
Luke de Waal
5adb81ce39
Support '-u=patch' in hugo mod get
...
The control-flow for running `hugo mod get` was adapted to allow for passing `-u=patch`
instead of only being able to pass `-u`.
Fixes #9127
2022-03-20 22:07:26 +01:00
Bjørn Erik Pedersen
1c0e7c1ae1
Make sure file mounts higher up wins
...
Fixes #9693
2022-03-20 20:23:03 +01:00
Joe Mooring
cad2d8cc70
resources/images: Require width and height for Crop, Fill, and Fit
...
Closes #9696
2022-03-20 19:44:41 +01:00
Bjørn Erik Pedersen
b80853de90
all: gofmt -w -r 'interface{} -> any' .
...
Updates #9687
2022-03-17 22:03:27 +01:00
Bjørn Erik Pedersen
423594e03a
dartsass: Enable deprecation, @warn and @debug logging
...
* @warn and Sass deprecations are printed as WARN
* @debug is currently logged as INFO (needs the `--verbose` flag). We may adjust this if it gets too chatty.
Fixes #9683
2022-03-17 21:45:43 +01:00
Bjørn Erik Pedersen
64afb7ca51
Use revision etc. from debug.BuildInfo
...
Fixes #9680
2022-03-17 17:14:38 +01:00
hugoreleaser
004bec2e9a
releaser: Prepare repository for 0.96.0-DEV
...
[ci skip]
2022-03-16 15:00:05 +00:00
hugoreleaser
9f2e76af65
releaser: Bump versions for release of 0.95.0
...
[ci skip]
2022-03-16 14:20:17 +00:00
hugoreleaser
f1d1576822
releaser: Add release notes for 0.95.0
...
[ci skip]
2022-03-16 14:20:17 +00:00
Bjørn Erik Pedersen
5930173cd0
readme: Add note about Go 1.18
2022-03-16 13:20:30 +01:00
Bjørn Erik Pedersen
3476b53343
tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break }}" bug
2022-03-16 13:14:23 +01:00
Bjørn Erik Pedersen
e792d27017
readme: Add a contribution note
2022-03-16 13:09:17 +01:00
Bjørn Erik Pedersen
9d6495d774
github: Make it build with Go 1.18
...
I also ran some benchmarks comparing it to Go 1.17.8:
```bash
name old time/op new time/op delta
SiteNew/Regular_Bundle_with_image-10 5.13ms ± 7% 4.23ms ± 7% -17.47% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 5.12ms ± 1% 4.16ms ± 1% -18.65% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 17.3ms ± 2% 15.1ms ± 1% -12.53% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 106ms ± 1% 90ms ± 0% -15.86% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 34.0ms ± 1% 30.0ms ± 2% -11.72% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 22.7ms ± 2% 20.2ms ± 1% -10.93% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 16.7ms ± 0% 14.6ms ± 1% -12.89% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 22.2ms ± 1% 19.5ms ± 1% -12.07% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 7.71ms ± 0% 6.59ms ± 1% -14.52% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Bundle_with_image-10 2.07MB ± 0% 2.04MB ± 0% -1.40% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 1.85MB ± 0% 1.83MB ± 0% -1.54% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 11.8MB ± 0% 11.1MB ± 0% -6.11% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 95.8MB ± 0% 95.2MB ± 0% -0.63% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 27.4MB ± 0% 26.9MB ± 0% -1.68% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 15.2MB ± 0% 14.4MB ± 0% -4.93% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 8.45MB ± 0% 8.24MB ± 0% -2.43% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 16.5MB ± 0% 16.2MB ± 0% -1.78% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 3.73MB ± 0% 3.64MB ± 0% -2.30% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Bundle_with_image-10 25.0k ± 0% 24.1k ± 0% -3.60% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 25.1k ± 0% 24.1k ± 0% -3.60% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 237k ± 0% 234k ± 0% -1.29% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 365k ± 0% 363k ± 0% -0.47% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 284k ± 0% 279k ± 0% -1.98% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 252k ± 0% 249k ± 0% -1.48% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 117k ± 0% 115k ± 0% -1.68% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 184k ± 0% 181k ± 0% -1.74% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 49.9k ± 0% 48.5k ± 0% -2.79% (p=0.029 n=4+4)
```
2022-03-16 11:32:39 +01:00
Bjørn Erik Pedersen
42cc5f88b6
tpl: Adjustments and an integration test for Go 1.18
...
Updates #9677
2022-03-16 10:36:46 +01:00
Bjørn Erik Pedersen
a6488e7bad
Remove Go 1.17 support
...
Go 1.18 had some breaking changes on source level meaning we cannot build on older Go versions anymore.
The improvements in Go 1.18 (e.g. `break` and `continue`) were to good to pass on.
Note that you don't need Go (or Go 1.18) to run a pre-built binary.
Updates #9677
2022-03-16 08:57:58 +01:00
Bjørn Erik Pedersen
65a78cae1e
tpl: Sync go_templates for Go 1.18
...
Using Go tag go1.18 4aa1efed4853ea067d665a952eee77c52faac774
Updates #9677
2022-03-16 08:54:25 +01:00
Bjørn Erik Pedersen
4d6d1d08da
build: Bump to Go 1.18
...
Updates #9677
2022-03-16 08:43:18 +01:00
Bjørn Erik Pedersen
b60e1bbdfe
dartsass: Improve error message when no read access
...
Fixes #9662
2022-03-15 16:34:54 +01:00
Cathrine Paulsen
61cf3c9f63
Fix and refactor typos
2022-03-14 19:39:07 +01:00
Bjørn Erik Pedersen
31fbc081c9
Improve server startup/shutdown
...
Closes #9671
2022-03-14 19:38:17 +01:00
Bjørn Erik Pedersen
cebd886ac1
commands: Improve server tests
...
Updates #9647
2022-03-14 09:16:33 +01:00
hugoreleaser
38f778cfcc
releaser: Prepare repository for 0.95.0-DEV
...
[ci skip]
2022-03-12 11:02:38 +00:00
hugoreleaser
48fb9e4de3
releaser: Bump versions for release of 0.94.2
...
[ci skip]
2022-03-12 10:28:41 +00:00
hugoreleaser
0958167b38
releaser: Add release notes for 0.94.2
...
[ci skip]
2022-03-12 10:28:41 +00:00
Bjørn Erik Pedersen
b37183e48d
deps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10
...
Fixes #9658
2022-03-12 11:24:11 +01:00
hugoreleaser
04ccde3e94
releaser: Prepare repository for 0.95.0-DEV
...
[ci skip]
2022-03-11 14:30:03 +00:00
hugoreleaser
0fcd9a5d87
releaser: Bump versions for release of 0.94.1
...
[ci skip]
2022-03-11 13:53:32 +00:00
hugoreleaser
4146084367
releaser: Add release notes for 0.94.1
...
[ci skip]
2022-03-11 13:53:32 +00:00
Bjørn Erik Pedersen
3bc742bea0
docs: Regenerate CLI docs
2022-03-11 14:47:27 +01:00
Bjørn Erik Pedersen
1a796d723c
deps: Fix Goldmark regression with HTML comments
...
Fixes #9650
2022-03-11 14:44:01 +01:00
Bjørn Erik Pedersen
64b7b7a897
Revert "Allow rendering static files to disk and dynamic to memory in server mode"
...
This reverts commit 7d8011ed63 .
Updates #9647
2022-03-11 13:10:47 +01:00
Bjørn Erik Pedersen
5ef8a9f32c
Revert "Some minor adjustments to the new static filesystem logic"
...
This reverts commit 63bb2a5b18 .
2022-03-11 13:10:47 +01:00
hugoreleaser
3bc34666c8
releaser: Prepare repository for 0.95.0-DEV
...
[ci skip]
2022-03-10 10:25:00 +00:00
hugoreleaser
63b236603e
releaser: Bump versions for release of 0.94.0
...
[ci skip]
2022-03-10 09:46:35 +00:00
hugoreleaser
b107b4b291
releaser: Add release notes for 0.94.0
...
[ci skip]
2022-03-10 09:46:35 +00:00
Bjørn Erik Pedersen
a4ac188c19
docs: Regenerate docshelper
2022-03-10 10:08:04 +01:00
Bjørn Erik Pedersen
b82d95575d
Revert "markup/highlight: Add hl_inline option"
...
This reverts commit a360cab75a .
2022-03-10 10:06:22 +01:00
Bjørn Erik Pedersen
4e14cf7607
Fail with error when double-rendering text in markdownify/RenderString
...
This commit prevents the most commons case of infinite recursion in link render hooks when the `linkify` option is enabled (see below). This is always a user error, but getting a `stack overflow` (the current stack limit in Go is 1 GB on 64-bit, 250 MB on 32-bit) error isn't very helpful. This fix will not prevent all such errors, though, but we may do better once #9570 is in place.
So, these will fail:
```
<a href="{{ .Destination | safeURL }}" >{{ .Text | markdownify }}</a>
<a href="{{ .Destination | safeURL }}" >{{ .Text | .Page.RenderString }}</a>
```
`.Text` is already rendered to `HTML`. The above needs to be rewritten to:
```
<a href="{{ .Destination | safeURL }}" >{{ .Text | safeHTML }}</a>
<a href="{{ .Destination | safeURL }}" >{{ .Text | safeHTML }}</a>
```
Fixes #8959
2022-03-10 08:19:03 +01:00
Bjørn Erik Pedersen
5697348e17
markup/goldmark: Default to https for linkify
...
Fixes #9639
2022-03-09 22:30:10 +01:00
Joe Mooring
f98e570b17
Add lang attribute to internal alias template
...
Closes #9586
2022-03-09 19:06:59 +01:00
Bjørn Erik Pedersen
cdb8b0842b
docs: Regenerate docshelper
2022-03-09 11:33:53 +01:00
Bjørn Erik Pedersen
a360cab75a
markup/highlight: Add hl_inline option
...
If set to true, the highlighted code will not be wrapped in any div.
Closes #9442
2022-03-09 11:33:13 +01:00
Joe Mooring
c97fed08f9
minifiers: Make keepWhitespace = false default for HTML (note)
...
Closes #9456
2022-03-09 07:48:18 +01:00
Bjørn Erik Pedersen
53a6210d82
markup/goldmark/codeblocks: Fix slice bounds out of range
...
For the Position in code blocks we try to match the .Inner with the original source. This isn't always possible.
This commits avoids panics in these situations.
Fixes #9627
2022-03-08 21:50:21 +01:00
Bjørn Erik Pedersen
7182809d96
docs: Regenerate CLI docs
2022-03-08 19:40:50 +01:00
Bjørn Erik Pedersen
1f8cd2614d
docs: Regenerate docshelper
2022-03-08 19:40:07 +01:00
Bjørn Erik Pedersen
9d76b8fa34
Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'
2022-03-08 19:39:33 +01:00
Bjørn Erik Pedersen
d706529720
Squashed 'docs/' changes from 3f95a2ace..a393f4cf4
...
a393f4cf4 Add a Spellcheck GitHub Action and config
8b6b1c381 netlify: Bump to Hugo 0.93.3
84515c183 Delete deployment-with-nanobox.md
dd45f9899 Fix typos in docs
e69de81a9 Update build-options.md
7745b7891 netlify: Hubo 0.93.2
037d63364 Clarify GitHub Pages Branches
94660c34b add missing %s
325de15e2 fix link to latest release note since the release notes were moved to GitHub: https://gohugo.io/news/no-more-releasenotes-here/
dbff41d01 Update introduction.md
0ecd627f7 netlify: Hugo 0.93.1
a74e16582 Update diagrams.md
33e310956 Add Goat example to test styling
fa0100a5b Update diagrams.md
64ac75367 Adjust diagram docs
f1d600044 Update theme
95bedff1a netlify: Bump to Hugo 0.93.0
849a8437f Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'
c0c60c43c docs: Regenerate docs helper
2c63fe518 cod: Regen CLI docs
f33ba4e5a CodeblockContext method renames
979b47968 Move the Goat template to the correct place
2df37e9e8 Add Markdown diagrams and render hooks for code blocks
bd8037d43 Allow images to be cropped without being resized
8b2af4b49 modules: Add modules.Workspace config for Go 1.18
46b99dea1 Add --printUnusedTemplates
1285302c9 commands: Rename --i18n-warnings to printI18nWarnings
dea2242c6 commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage
db782ea46 deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0
git-subtree-dir: docs
git-subtree-split: a393f4cf43
2022-03-08 19:37:17 +01:00
Bjørn Erik Pedersen
4576c82ed4
Cache reflect.MethodByName
...
The isolated benchmark for the function is obviously much faster:
```bash
name old time/op new time/op delta
GetMethodByName-10 1.21µs ± 7% 0.23µs ± 5% -81.42% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
GetMethodByName-10 680B ± 0% 0B -100.00% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
GetMethodByName-10 20.0 ± 0% 0.0 -100.00% (p=0.029 n=4+4)
```
But more pleasing is the overall performance looking at the site benchmarks:
```bash
name old time/op new time/op delta
SiteNew/Regular_Bundle_with_image-10 6.25ms ± 2% 6.10ms ± 2% ~ (p=0.057 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 6.30ms ± 2% 5.66ms ±11% ~ (p=0.057 n=4+4)
SiteNew/Regular_Tags_and_categories-10 22.2ms ± 2% 17.4ms ± 1% -21.88% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 108ms ± 0% 107ms ± 0% -1.20% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 36.1ms ± 1% 33.8ms ± 1% -6.44% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 24.9ms ± 1% 22.6ms ± 1% -9.30% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 17.9ms ± 1% 16.7ms ± 1% -6.43% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 23.3ms ± 1% 22.0ms ± 0% -5.58% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 8.00ms ± 1% 7.63ms ± 0% -4.62% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Bundle_with_image-10 2.10MB ± 0% 2.07MB ± 0% -1.46% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 1.88MB ± 0% 1.85MB ± 0% -1.76% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 13.5MB ± 0% 11.6MB ± 0% -13.99% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 96.1MB ± 0% 95.8MB ± 0% -0.40% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 28.4MB ± 0% 27.3MB ± 0% -3.83% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 16.9MB ± 0% 15.1MB ± 0% -10.58% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 8.98MB ± 0% 8.44MB ± 0% -6.04% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 17.1MB ± 0% 16.5MB ± 0% -3.91% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 3.92MB ± 0% 3.72MB ± 0% -5.03% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Bundle_with_image-10 25.8k ± 0% 24.9k ± 0% -3.49% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 25.8k ± 0% 24.9k ± 0% -3.49% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 288k ± 0% 233k ± 0% -18.90% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 375k ± 0% 364k ± 0% -2.80% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 314k ± 0% 283k ± 0% -9.77% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 302k ± 0% 252k ± 0% -16.55% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 133k ± 0% 117k ± 0% -11.81% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 202k ± 0% 183k ± 0% -9.55% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 55.6k ± 0% 49.8k ± 0% -10.40% (p=0.029 n=4+4)
```
Thanks to @quasilyte for the suggestion.
Fixes 9386
2022-03-08 19:36:55 +01:00
Bjørn Erik Pedersen
ff02d41721
releaser: Remove the GitHub link syntax around release contributors
...
Fixes #9581
2022-03-08 19:36:31 +01:00
Bjørn Erik Pedersen
63bb2a5b18
Some minor adjustments to the new static filesystem logic
...
Closes #9625
2022-03-08 19:27:54 +01:00
SatowTakeshi
7d8011ed63
Allow rendering static files to disk and dynamic to memory in server mode
...
Updates #9625
2022-03-08 19:27:54 +01:00
dependabot[bot]
b9a1be2f99
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.8 to 2.2.9
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.8 to 2.2.9.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.8...v2.2.9 )
---
updated-dependencies:
- dependency-name: github.com/kyokomi/emoji/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-08 16:10:04 +01:00
dependabot[bot]
0978245039
build(deps): bump github.com/evanw/esbuild from 0.14.23 to 0.14.25
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.23 to 0.14.25.
- [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.14.23...v0.14.25 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-08 16:09:17 +01:00
dependabot[bot]
ff37df830c
build(deps): bump github.com/niklasfasching/go-org from 1.6.0 to 1.6.2
...
Bumps [github.com/niklasfasching/go-org](https://github.com/niklasfasching/go-org ) from 1.6.0 to 1.6.2.
- [Release notes](https://github.com/niklasfasching/go-org/releases )
- [Commits](https://github.com/niklasfasching/go-org/compare/v1.6.0...v1.6.2 )
---
updated-dependencies:
- dependency-name: github.com/niklasfasching/go-org
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-08 16:08:32 +01:00
dependabot[bot]
5857d5524a
build(deps): bump github.com/getkin/kin-openapi from 0.90.0 to 0.91.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.90.0 to 0.91.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.90.0...v0.91.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-08 16:05:40 +01:00
hugoreleaser
d86eca5bb2
releaser: Prepare repository for 0.94.0-DEV
...
[ci skip]
2022-03-08 10:50:30 +00:00
hugoreleaser
44e3c002a8
releaser: Bump versions for release of 0.93.3
...
[ci skip]
2022-03-08 10:15:27 +00:00
hugoreleaser
9177849f9b
releaser: Add release notes for 0.93.3
...
[ci skip]
2022-03-08 10:15:27 +00:00
Bjørn Erik Pedersen
0e0d672bcb
Remove the decorator from the fs used in ReadDir
...
There have been a site breakage reported in the wild after 0.93.1. With this commit we shoudl be back to how it behaved in 0.92.2.
Closes #9609
2022-03-08 09:51:59 +01:00
Bjørn Erik Pedersen
19f816f77e
Update stale.yml
...
operations-per-run: 999
We need to get this done so the notification gets back to normal.
2022-03-08 09:09:38 +01:00
dependabot[bot]
970f385c48
build(deps): bump github.com/yuin/goldmark from 1.4.7 to 1.4.8
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.7 to 1.4.8.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.7...v1.4.8 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-07 09:59:16 +01:00
Bjørn Erik Pedersen
76c1248f70
Remove the examples/ folder
...
These are not maintained and do not belong in this repository.
2022-03-06 11:09:41 +01:00
hugoreleaser
9e76507da2
releaser: Prepare repository for 0.94.0-DEV
...
[ci skip]
2022-03-04 12:57:53 +00:00
hugoreleaser
643b5ae9cf
releaser: Bump versions for release of 0.93.2
...
[ci skip]
2022-03-04 12:21:48 +00:00
hugoreleaser
2f7feca9a1
releaser: Add release notes for 0.93.2
...
[ci skip]
2022-03-04 12:21:48 +00:00
Bjørn Erik Pedersen
673cde1eb1
tpl/os: Revert readDir in theme behaviour
...
Fixes #9599
2022-03-04 08:43:47 +01:00
Joe Mooring
e46e9ceb29
markup/goldmark: Escape image alt attribute
...
Fixes #9594
2022-03-02 21:05:33 +01:00
hugoreleaser
883e71c96a
releaser: Prepare repository for 0.94.0-DEV
...
[ci skip]
2022-03-02 12:52:43 +00:00
hugoreleaser
e9669fed14
releaser: Bump versions for release of 0.93.1
...
[ci skip]
2022-03-02 12:16:06 +00:00
hugoreleaser
fefb1caacf
releaser: Add release notes for 0.93.1
...
[ci skip]
2022-03-02 12:16:06 +00:00
Bjørn Erik Pedersen
0327da050f
tpl/transform: Fix it when template.HTML is passes as option to Hightlight
...
Fixes #9591
2022-03-02 12:30:35 +01:00
Bjørn Erik Pedersen
9b8b6d34e2
tpl/partials: Fix partialCached deadlock regression
...
This is a rollback of 0927cf739f
We cannot do that change until we either completes #9570 or possibly also use the new TryLock in GO 1.18.
Fixes #9588
Opens #4086
2022-03-02 11:16:21 +01:00
Bjørn Erik Pedersen
376704d382
tpl/collections: Fix apply when function have Context as first arg
...
As introduced in `partial` and `partialCached` in Hugo 0.93.0.
Fixes #9585
2022-03-01 13:18:02 +01:00
Bjørn Erik Pedersen
c1398b91a9
Squashed 'docs/' changes from 93f7baf80..3f95a2ace
...
3f95a2ace Update merge function examples (#1662 )
e8d518011 requires -> require typo fix (#1666 )
e714066cb Update GitLab deployment instructions (#1661 )
11946a218 update GitLab CI/CD yaml syntax (#1649 )
3568ddc03 Add explicit `contentDir` to module-config-mounts (#1658 )
798ac8f68 Add default value to isHTML
d376565ce Create extensions.json
git-subtree-dir: docs
git-subtree-split: 3f95a2ace3
2022-02-28 10:37:27 +01:00
Bjørn Erik Pedersen
41b5bc9637
Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'
2022-02-28 10:37:27 +01:00
hugoreleaser
5a1b394f2a
releaser: Prepare repository for 0.94.0-DEV
...
[ci skip]
2022-02-28 09:05:08 +00:00
hugoreleaser
0746908247
releaser: Bump versions for release of 0.93.0
...
[ci skip]
2022-02-28 08:30:42 +00:00
hugoreleaser
75084bfc72
releaser: Add release notes for 0.93.0
...
[ci skip]
2022-02-28 08:30:42 +00:00
Bjørn Erik Pedersen
12d00d288c
docs: Regenerate docs helper
2022-02-28 08:59:57 +01:00
Bjørn Erik Pedersen
260ff1374d
markup/highlight: Ignore HL_lines_parsed in the gen docs
2022-02-28 08:33:34 +01:00
Bjørn Erik Pedersen
14915a0c32
cod: Regen CLI docs
2022-02-28 08:12:35 +01:00
Bjørn Erik Pedersen
fd0c1a5e9b
tpl/diagrams: Rename the SVG accessor to Wrapped
...
Not perfect, but it gets it in line with the other .Inner/.Wrapped combos.
2022-02-27 19:51:40 +01:00
Bjørn Erik Pedersen
3ad39001df
markup/highlight: Rework the return value from HighlightCodeblock
...
To make it possible to render it with a custom HTML ("<div>") wrapper.
Updates #9573
2022-02-27 19:51:40 +01:00
Bjørn Erik Pedersen
39261b689e
tpl/transform: Add CanHighlight
...
Closes #9573
2022-02-27 19:51:40 +01:00
Bjørn Erik Pedersen
cff14144a6
Rename Codeowners() to CodeOwners()
2022-02-27 19:40:07 +01:00
Bjørn Erik Pedersen
5f67151550
tpl/diagrams: Rename Body to Inner
...
This relates to #9577 – there's no concept a body element in SVG, so we might as well use an exsisting "Hugo term".
2022-02-27 17:59:36 +01:00
Bjørn Erik Pedersen
f7109771a0
CodeblockContext method renames
...
Fixes #9577
2022-02-27 17:59:36 +01:00
dependabot[bot]
e1f696911e
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.29 to 2.10.0
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.29 to 2.10.0.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.29...v2.10.0 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-27 14:04:08 +01:00
Bjørn Erik Pedersen
5f65c17a12
markup/goldmark: Adjust test for Windows
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
579ff9b652
markup/goldmark: Improve attributes vs options
...
Fixes #9571
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
928a896962
markup/goldmark: Add Position to CodeblockContext
...
But note that this is not particulary fast and the recommendad usage is error logging only.
Updates #9574
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
2e54c00933
markup/goldmark: Unify some code block tests
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
10928a4f78
Remove the trailing new line in .Code
...
Fixes #9572
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
afd63bf7d5
markup/goldmark: Rename extension struct
2022-02-26 21:54:36 +01:00
dependabot[bot]
228126b7f5
build(deps): bump github.com/gobuffalo/flect from 0.2.3 to 0.2.4
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.3...v0.2.4 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-26 10:24:59 +01:00
Bjørn Erik Pedersen
0f80be341f
markup/goldmark: Use Ordinal to create default lineanchors
...
The `Ordinal` starts at 0, so with a `hl-` prefix, this gives `hl-0-1` as a starting point.
Fixes #9567
2022-02-25 17:22:43 +01:00
dependabot[bot]
78afdb88ab
build(deps): bump github.com/gorilla/websocket from 1.4.2 to 1.5.0
...
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket ) from 1.4.2 to 1.5.0.
- [Release notes](https://github.com/gorilla/websocket/releases )
- [Commits](https://github.com/gorilla/websocket/compare/v1.4.2...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-25 08:18:20 +01:00
dependabot[bot]
3ed83227ba
build(deps): bump github.com/sanity-io/litter from 1.5.1 to 1.5.2
...
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter ) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/sanity-io/litter/releases )
- [Changelog](https://github.com/sanity-io/litter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sanity-io/litter/compare/v1.5.1...v1.5.2 )
---
updated-dependencies:
- dependency-name: github.com/sanity-io/litter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-25 08:17:48 +01:00
Bjørn Erik Pedersen
1a257bb2ba
Move the Goat template to the correct place
...
Updates #7765
2022-02-25 00:09:07 +01:00
dependabot[bot]
97514f17d6
build(deps): bump google.golang.org/api from 0.63.0 to 0.70.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.63.0 to 0.70.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.63.0...v0.70.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-24 23:05:09 +01:00
RheingoldRiver
0df096b868
Update error message about failed menus in config.toml
2022-02-24 23:04:06 +01:00
dependabot[bot]
308ad611b6
build(deps): bump github.com/getkin/kin-openapi from 0.85.0 to 0.90.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.85.0 to 0.90.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.85.0...v0.90.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-24 22:59:41 +01:00
Kaushal Modi
6bffcdbd26
Add test for line anchor attributes with code fences
...
Fixes https://github.com/gohugoio/hugo/issues/9385 .
2022-02-24 22:54:49 +01:00
dependabot[bot]
7248f43188
build(deps): bump github.com/evanw/esbuild from 0.14.22 to 0.14.23
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.22 to 0.14.23.
- [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.14.22...v0.14.23 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-24 21:30:30 +01:00
Bjørn Erik Pedersen
08fdca9d93
Add Markdown diagrams and render hooks for code blocks
...
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`).
We also used this new hook to add support for diagrams in Hugo:
* Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams.
* Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information.
Updates #7765
Closes #9538
Fixes #9553
Fixes #8520
Fixes #6702
Fixes #9558
2022-02-24 18:59:50 +01:00
dependabot[bot]
2c20f5bc00
build(deps): bump github.com/aws/aws-sdk-go from 1.41.14 to 1.43.5
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.41.14 to 1.43.5.
- [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.41.14...v1.43.5 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-24 17:25:24 +01:00
dependabot[bot]
723b2c485b
build(deps): bump github.com/google/go-cmp from 0.5.6 to 0.5.7
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.6...v0.5.7 )
---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-24 17:24:46 +01:00
Marshall Cottrell
06bac57ab0
Add support for CODEOWNERS
...
Fixes #9474
2022-02-23 22:43:19 +01:00
Bjørn Erik Pedersen
ec8b767fa6
Remove Viper as a dependency
2022-02-23 22:40:23 +01:00
Cameron Moore
6407b2cd01
helpers: Allow hyphens in UnicodeSanitize
...
Improve handling of existing hyphens in input to UnicodeSanitize.
This commit accomplishes three things:
1. Explicitly allow hyphens
2. Avoid appending a hyphen if a preceeding hyphen is found
3. Avoid prepending a hyphen if a trailing hyphen is found
Fixes #7288
2022-02-23 21:21:46 +01:00
Akimo
6ff39fd908
Change disqus_config to window.disqus_config
2022-02-23 21:19:30 +01:00
Anthony Fok
96c0bdf3aa
deps: Update github.com/spf13/cobra v1.2.1 => v1.3.0
2022-02-23 20:53:51 +01:00
Bjørn Erik Pedersen
e97d3c640f
Add page.Store
...
Fixes #9546
2022-02-23 10:02:16 +01:00
John Elliott
7732da9f93
Allow images to be cropped without being resized
...
Introduces the Crop method for image processing which implements gift.CropToSize. Also allows a smartCrop without resizing, and updates the documentation.
Fixes #9499
2022-02-23 10:01:50 +01:00
Bjørn Erik Pedersen
aebde49b88
commands: Fix server panic regression
...
And now with a proper server test.
Fixes #9518
Fixes #9530
Fixes #9539
2022-02-21 21:43:26 +01:00
Bjørn Erik Pedersen
4ada09415d
markup/goldmark: Add BenchmarkCodeblocks
2022-02-21 20:53:52 +01:00
Joe Mooring
bddcfd911c
deps: Update github.com/gohugoio/localescompressed v0.14.0 => v0.15.0
...
Fixes #9446
2022-02-19 11:34:00 +01:00
Bjørn Erik Pedersen
d485f95431
deps: Update github.com/yuin/goldmark v1.4.4 => v1.4.7
...
Closes #9397
2022-02-19 11:30:16 +01:00
Bjørn Erik Pedersen
a87be597af
modules: Add modules.Workspace config for Go 1.18
...
Sets `GOWORK` env var for Go 1.18.
Fixes #9525
2022-02-18 15:06:58 +01:00
Bjørn Erik Pedersen
b0eea00756
Update stale.yml
...
Updates #9522
2022-02-18 11:43:35 +01:00
Bjørn Erik Pedersen
ef8b781b14
Update stale.yml
...
Updates #9522
2022-02-18 11:38:24 +01:00
Bjørn Erik Pedersen
3136ff67d8
github: Configure stale to be run manually
...
Updates #9522
2022-02-18 11:31:57 +01:00
Bjørn Erik Pedersen
929808190f
tpl/partials: Fix recently introduced deadlock in partials cache
...
The change in lock logic for `partialCached` in 0927cf739f was naive as it didn't consider cached partials calling other cached partials.
This changeset may look on the large side for this particular issue, but it pulls in part of a working branch, introducing `context.Context` in the template execution.
Note that the context is only partially implemented in this PR, but the upcoming use cases will, as one example, include having access to the top "dot" (e.g. `Page`) all the way down into partials and shortcodes etc.
The earlier benchmarks rerun against master:
```bash
name old time/op new time/op delta
IncludeCached-10 13.6ms ± 2% 13.8ms ± 1% ~ (p=0.343 n=4+4)
name old alloc/op new alloc/op delta
IncludeCached-10 5.30MB ± 0% 5.35MB ± 0% +0.96% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
IncludeCached-10 74.7k ± 0% 75.3k ± 0% +0.77% (p=0.029 n=4+4)
```
Fixes #9519
2022-02-17 18:47:36 +01:00
Bjørn Erik Pedersen
667f3a4ba8
tpl/partials: Add some more partials to BenchmarkIncludeCached
2022-02-17 16:45:59 +01:00
Bjørn Erik Pedersen
c061b253a4
deps: Update github.com/evanw/esbuild v0.14.11 => v0.14.22
2022-02-17 12:34:13 +01:00
Bjørn Erik Pedersen
0927cf739f
tpl/partials: Make sure a cached partial is invoked only once
...
This commit revises the locking strategy for `partialCached`. We have added a benchmark that may be a little artificial, but it should at least show that we're not losing any performance over this:
```bash
name old time/op new time/op delta
IncludeCached-10 12.2ms ± 2% 11.3ms ± 1% -7.36% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
IncludeCached-10 7.17MB ± 0% 5.09MB ± 0% -29.00% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
IncludeCached-10 128k ± 1% 70k ± 0% -45.42% (p=0.029 n=4+4)
```
This commit also revises the template metrics hints logic a little, and add a test for it, which output is currently this:
```bash
cumulative average maximum cache percent cached total
duration duration duration potential cached count count template
---------- -------- -------- --------- ------- ------ ----- --------
163.334µs 163.334µs 163.334µs 0 0 0 1 index.html
23.749µs 5.937µs 19.916µs 25 50 2 4 partials/dynamic1.html
9.625µs 4.812µs 6.75µs 100 50 1 2 partials/static1.html
7.625µs 7.625µs 7.625µs 100 0 0 1 partials/static2.html
```
Some notes:
* The duration now includes the cached invocations (which should be very short)
* A cached template gets executed once before it gets cached, so the "percent cached" will never be 100.
Fixes #4086
Fixes #9506
2022-02-17 11:53:24 +01:00
dependabot[bot]
26a5e89faa
build(deps): bump github.com/rogpeppe/go-internal from 1.8.0 to 1.8.1
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-17 09:55:06 +01:00
dependabot[bot]
e9fa7e81b3
build(deps): bump github.com/magefile/mage from 1.11.0 to 1.12.1
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.11.0 to 1.12.1.
- [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.11.0...v1.12.1 )
---
updated-dependencies:
- dependency-name: github.com/magefile/mage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-17 09:54:29 +01:00
Joe Mooring
ff545f4276
markup/goldmark: Exclude event attributes from markdown render hook
...
Fixes #9511
2022-02-16 19:56:23 +01:00
Bjørn Erik Pedersen
b2a827c52c
markup/goldmark: Fix mangling of headers/links in render hooks
...
```bash
name old time/op new time/op delta
SiteWithRenderHooks-10 11.9ms ± 1% 11.9ms ± 1% ~ (p=0.486 n=4+4)
name old alloc/op new alloc/op delta
SiteWithRenderHooks-10 11.2MB ± 0% 11.3MB ± 0% +0.16% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteWithRenderHooks-10 145k ± 0% 145k ± 0% +0.14% (p=0.029 n=4+4)
```
Fixes #9504
2022-02-16 17:46:30 +01:00
Bjørn Erik Pedersen
77c7059ff8
markup/goldmark: Add a render hook benchmark
...
Updates #9504
2022-02-16 13:30:53 +01:00
Bjørn Erik Pedersen
f4c90bd6ba
Fix BenchmarkCascadeTarget
2022-02-16 13:23:43 +01:00
Cameron Moore
d16228334d
metrics: Add cached count tracking
...
Track cached partial executions and display more useful info when
showing the hints output. Also group cache hints and counters together
to the right of the timing measurements.
Sample output:
cumulative average maximum cache percent cached total
duration duration duration potential cached count count template
---------- -------- -------- --------- ------- ------ ----- --------
2.6973ms 674.325µs 857.3µs 0 0 0 4 _internal/_default/rss.xml
2.6295ms 657.375µs 861.3µs 0 0 0 4 _default/single.html
1.2563ms 314.075µs 381.5µs 0 0 0 4 news/single.html
799.2µs 399.6µs 573.3µs 0 0 0 2 _internal/_default/sitemap.xml
667.3µs 66.73µs 238.6µs 84 0 0 10 partials/header.html
656.7µs 328.35µs 459.4µs 0 0 0 2 _default/list.html
479.7µs 47.97µs 158µs 92 0 0 10 partials/head.html
323.3µs 323.3µs 323.3µs 0 0 0 1 _internal/alias.html
200.7µs 200.7µs 200.7µs 0 0 0 1 _internal/_default/sitemapindex.xml
36.1µs 6.016µs 32.6µs 100 33 2 6 partials/footer.html
27.4µs 13.7µs 26.7µs 0 0 0 2 index.html
Fixes #8375
2022-02-16 10:05:17 +01:00
Bjørn Erik Pedersen
ea6bcd6944
tpl: Remove TODO comment
2022-02-15 23:39:54 +01:00
Bjørn Erik Pedersen
f2e7b49acf
Add --printUnusedTemplates
...
Fixes #9502
2022-02-15 20:01:57 +01:00
Joe Mooring
923419d7fd
deps: Update github.com/tdewolff/minify/v2 v2.9.22 => v2.9.29
...
Fixes #9244
Fixes #9132
Fixes https://discourse.gohugo.io/t/36523
2022-02-15 17:36:29 +01:00
Bjørn Erik Pedersen
837fdfdf45
commands: Rename --i18n-warnings to printI18nWarnings
...
To get it in line with the others.
2022-02-15 13:03:36 +01:00
Bjørn Erik Pedersen
6819feab6c
commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage
...
To get it in line with the others.
2022-02-15 13:00:06 +01:00
Bjørn Erik Pedersen
ea54a99ca5
deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0
2022-02-15 10:37:14 +01:00
Bjørn Erik Pedersen
9563c7d13b
Finally remove deprecated Page methods
...
They have been deprecated for a very long time, first with a warning, then with an ERROR. Now they are removed.
Closes #4117
2022-02-14 13:24:36 +01:00
Bjørn Erik Pedersen
230a495941
Squashed 'docs/' changes from b8b20e9a2..93f7baf80
...
93f7baf80 netlify: Hugo 0.92.2
ecd8a6b6b Merge branch 'tempv0.92.2'
ee04caf9f Fix validation of Page Kind in cascade target map
3fce03ed2 Remove the "check" command
70ad71b25 Fix typo (#1651 )
dfd1dc570 Fix internal link (#1650 )
b5e0e0d38 Update rotten Fedora package link
78276390a Add missing word in types.md (#1645 )
45eb945f8 Remove hugo gen autocomplete
2f84d0896 netlify: Hugo 0.92.1
b55f5773b Update complement.md
7013ee43e Remove deprecated RSSLink from page variables
1c3fb6ed3 Remove deprecated page vars (#1638 )
9bd0af3ab Update union.md
4576487a0 Update symdiff.md
58f1b26c7 Update starter-kits.md (#1521 )
285356c1d Move inline partials section (#1635 )
4d08625d2 Improve directions for editing Win 10 path env var (#1632 )
41d9c7804 Update page content (#1629 )
d05536cad Removed unpaired quote character (#1630 )
3b0fdcd88 netlify: Bump to Hugo 0.92.0
cdb068346 docs: Regenerate docshelper
778503ca8 Merge commit 'a8e9fc699a6ff7d578f97a7c553ce844efad8fdb'
2d2401c91 docs: Add dependency table to maintainance page
6bc95c386 Add hugo.Deps
19d0b5e23 docs. Regen CLI docs
76a750d96 docs: Regenerate CLI docs
70156962a docs: Regenerate docshelper
git-subtree-dir: docs
git-subtree-split: 93f7baf80b
2022-02-14 12:58:42 +01:00
Bjørn Erik Pedersen
c707b71cdf
Merge commit '230a495941b191af0bdaa7e2fc8c61607cb38207'
2022-02-14 12:58:42 +01:00
Bjørn Erik Pedersen
b0a9cf0a75
tpl: Use go:embed to load internal templates
...
Fixes #8297
2022-02-14 09:39:46 +01:00
hugoreleaser
9433cc2562
releaser: Prepare repository for 0.93.0-DEV
...
[ci skip]
2022-02-11 14:54:18 +00:00
hugoreleaser
cdf6a0d622
releaser: Bump versions for release of 0.92.2
...
[ci skip]
2022-02-11 14:17:39 +00:00
hugoreleaser
bf1fa71379
releaser: Add release notes for 0.92.2
...
[ci skip]
2022-02-11 14:17:38 +00:00
Joe Mooring
4f4cec73be
Add HUGO_ENV to the os/exec environment
...
Closes #9490
2022-02-11 08:30:26 +01:00
Bjørn Erik Pedersen
da4866c2be
Simplify some integration tests
2022-02-10 20:43:19 +01:00
Joe Mooring
d1109f590a
Fix validation of Page Kind in cascade target map
...
Fixes #8888
2022-02-10 20:42:31 +01:00
Bjørn Erik Pedersen
a7d182cea1
Add another cascade benchmark
2022-02-10 20:40:49 +01:00
Bjørn Erik Pedersen
a2a660ed12
commands: Fix server deadlock on config error
...
Fixes #9486
2022-02-10 19:43:47 +01:00
Joe Mooring
f7bc4cc505
Exclude event attributes when rendering markdown
...
Closes #9463
2022-02-10 18:25:19 +01:00
Joe Mooring
54f8d8a70a
Remove the "check" command
...
Closes #9454
2022-02-10 16:25:23 +01:00
Joe Mooring
3036d0ac9a
Update the application/javascript media type
...
Add jsm and mjs extensions.
Closes #9483
2022-02-10 11:51:28 +01:00
Bjørn Erik Pedersen
6a238a7276
tpl/templates: Fix templates.Exist issue with base templates
...
Fixes #9477
2022-02-09 22:33:07 +01:00
Bjørn Erik Pedersen
f60714b5a1
Add a migration test helper
2022-02-09 16:38:12 +01:00
Bjørn Erik Pedersen
215a715ddd
babel: Port integration tests to their own package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
d128d260b5
js: Port integration tests to its own package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
c4aaf1d516
postcss: Move integration test to its own package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
94f10cf4f9
minifier: Port integration tests to its package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
b06c2103b8
templates: Port integration test to its package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
d22f7795c7
tocss: Port integration tests to their package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
39f69ca7f0
openapi3: Port integration test into correct package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
64f75adcf6
Add a new integration test framework
...
I have had this living in a separate branch for now, but we need this in the main branch sooner rather than later.
One big advantage of this is that integration tests can live in any package, not just hugolib.
2022-02-09 15:41:32 +01:00
Joe Mooring
9262719092
Validate comparison operator argument count
...
Fixes #9462
2022-02-05 17:41:43 +01:00
Joe Mooring
3336762939
Remove hugo gen autocomplete
...
Closes #8862
2022-02-01 23:23:30 +01:00
Bjørn Erik Pedersen
5ca40c8f7c
deps: Update github.com/pelletier/go-toml/v2 to v2.0.0-beta.6
...
Closes #9439
Closes #9417
2022-01-29 13:55:23 +01:00
Bjørn Erik Pedersen
ef7d14a241
Fix erroneous warning with .Page.RenderString on a page without a backing file
...
Fixes #9433
2022-01-28 17:35:49 +01:00
Joe Mooring
c05c99f0c5
Fix typo in panicOnWarning message
2022-01-27 17:50:34 +01:00
hugoreleaser
ff7689ce02
releaser: Prepare repository for 0.93.0-DEV
...
[ci skip]
2022-01-27 12:22:31 +00:00
hugoreleaser
85e2e86266
releaser: Bump versions for release of 0.92.1
...
[ci skip]
2022-01-27 11:44:40 +00:00
hugoreleaser
515f8a6d8e
releaser: Add release notes for 0.92.1
...
[ci skip]
2022-01-27 11:44:40 +00:00
Bjørn Erik Pedersen
f22c4aba04
Make the RenderString content provider fix more general
...
Updates #9383
2022-01-27 11:51:13 +01:00
Paul Gottschling
85d31f7bfb
Fix .RenderString issue in .Translations
...
Fixes #9383
2022-01-27 11:51:13 +01:00
Ephex2
22055176d2
general: Fix issue causing log threads to hang indefinitely when print() panics
...
The function printIfNotPrinted() defined for DistinctLogger unlocked the mutex within
the logger only after the print() function ran. If print panics, the mutex would stay
locked and future attempts to read or write from the logger mutex would cause the goroutine
to hang indefinitely.
Deferred the unlocking of the mutex to prevent this. Also, put l.m[key] before the print()
call since this will prevent another bug where the same warning potentially gets logged
multiple times if the print() call panics.
Fixes #9380
2022-01-27 10:38:50 +01:00
Bjørn Erik Pedersen
7a080b624e
Fix duplicate mount sources
...
Fixes #9426
2022-01-26 20:32:13 +01:00
Bjørn Erik Pedersen
2655739940
tpl/collections: Fix apply with namespaced template funcs
...
We changed the signature to `func(...interface{}) (interface{}, error)` some time ago, but sadly we had no test for this for `apply`. Now we do.
Fixes #9393
2022-01-17 09:50:48 +01:00
Bjørn Erik Pedersen
348d300a71
common: Remove unused code
2022-01-16 17:12:56 +01:00
Bjørn Erik Pedersen
6f07bdb152
common/paths: Remove unused code
2022-01-16 17:12:56 +01:00
Bjørn Erik Pedersen
55a9bc1e70
helpers: Remove unused code
2022-01-16 17:12:56 +01:00
Joe Mooring
20a7ce7c1b
Do not render hl_style as an HTML attribute
...
Fixes #9390
2022-01-16 17:09:18 +01:00
dependabot[bot]
8cd4492407
build(deps): bump github.com/spf13/viper from 1.8.1 to 1.10.1
...
Bumps [github.com/spf13/viper](https://github.com/spf13/viper ) from 1.8.1 to 1.10.1.
- [Release notes](https://github.com/spf13/viper/releases )
- [Commits](https://github.com/spf13/viper/compare/v1.8.1...v1.10.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/viper
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-14 19:04:32 -07:00
Andreas Deininger
9d8f318aab
Fixing typos ( #9387 )
2022-01-14 16:07:17 -08:00
Andreas Deininger
fcbbbef22d
Fix typo in warning message
2022-01-13 12:21:13 +01:00
Bjørn Erik Pedersen
6041adc164
github: Clean up the issue templates a little
2022-01-13 09:44:55 +01:00
Bjørn Erik Pedersen
408da43657
github: Add lock-threads step
2022-01-12 19:55:53 +01:00
hugoreleaser
ed04ed5745
releaser: Prepare repository for 0.93.0-DEV
...
[ci skip]
2022-01-12 08:58:07 +00:00
hugoreleaser
b354940369
releaser: Bump versions for release of 0.92.0
...
[ci skip]
2022-01-12 08:23:17 +00:00
hugoreleaser
bd89aef8ba
releaser: Add release notes for 0.92.0
...
[ci skip]
2022-01-12 08:23:17 +00:00
Bjørn Erik Pedersen
f2bc13dd9e
docs: Regenerate docshelper
2022-01-12 08:17:03 +01:00
Bjørn Erik Pedersen
098254f175
Merge commit 'a8e9fc699a6ff7d578f97a7c553ce844efad8fdb'
2022-01-12 08:16:35 +01:00
Bjørn Erik Pedersen
a8e9fc699a
Squashed 'docs/' changes from 4eb10c1a9..b8b20e9a2
...
b8b20e9a2 Update index.md
f33994fe6 Remove files.Extension (duplicate of files.Ext)
948d6d69d layouts: Use .File.Path
d3050b78c Document .Page.BundleType (#1620 )
8a033918f Image filters: ensure Grayscale is a level-2 heading
98537018f Document .Publish method for global resources
963ddc994 docs: add a link to the mailmap documentation
915f858dc Fix release notes version
58093dafe Update index.md
8008ba1e1 Release 0.91.2
d1788dae8 Merge branch 'tempv0.91.2'
af2970180 Revert "config/security: Add HOME to default exec env var whitelist"
2648d3088 netlify: Hugo 0.91.1
d0801599c Merge branch 'tempv0.91.1'
b343bfd7a config/security: Add HOME to default exec env var whitelist
03fbb403f Update data-templates.md
2f608055f Correct GetRemote docs and examples
4e942166a Update 2021-12-17-no-more-releasenotes.md
dbf9514fd Update security.toml
2c38aa356 Update index.md
562ad8e96 Add timeZone
4bc482152 Update introduction.md
1eb66c758 news: Add a note about the placement of release notes
b2a293abb Remove the default archetype template
f9837793c netlify: Hugo 0.91.0
467256ad5 docs: Regen docs helper
68554cf77 Add some basic security policies with sensible defaults
git-subtree-dir: docs
git-subtree-split: b8b20e9a25
2022-01-12 08:15:10 +01:00
Bjørn Erik Pedersen
cdcd15b6c2
Only create LazyContentProvider for the non-rendering Site
...
Which saves a fair amound of allocations:
```
gobench --package ./hugolib --bench "SiteNew/Regular_D" --base master
```
Before:
```
name old time/op new time/op delta
SiteNew/Regular_Deep_content_tree-10 40.7ms ± 3% 41.2ms ± 1% ~ (p=0.343 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Deep_content_tree-10 27.7MB ± 0% 28.8MB ± 0% +3.76% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Deep_content_tree-10 304k ± 0% 329k ± 0% +8.07% (p=0.029 n=4+4)
```
After:
```
name old time/op new time/op delta
SiteNew/Regular_Deep_content_tree-10 34.2ms ± 1% 34.7ms ± 1% ~ (p=0.114 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Deep_content_tree-10 27.7MB ± 0% 28.1MB ± 0% +1.38% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Deep_content_tree-10 304k ± 0% 314k ± 0% +3.03% (p=0.029 n=4+4)
```
Updates #8919
2022-01-12 07:45:53 +01:00
Paul Gottschling
25d645f47a
Fix missing page data for alternative formats
...
When a template calls the .Translations function and a
Hugo environment is using multiple output formats,
a template that calls methods like .Summary and .Len on
each translation will unexpectedly show empty return
values for these methods.
This is because each pageOutput's ContentProvider is
assigned to a page.NopPage in newPageOutput. When
*HugoSites.render assigns pageContentOutputs to
pageOutputs in *pageState.shiftToOutputFormat, it
reuses pageContentOutputs from other pageOutputs,
leaving some pageContentOutputs as NopPages. While this
approach conserves resources, sometimes it means that
a template will unexpectedly call a method on a
pageContentOutput that is actually a NopPage.
In the case of ContentProvider methods called on
translations for alternative output formats, the methods
were called on NopPages.
This change introduces LazyContentProvider, which
performs late initialization when one of its methods is
called. This way, we can reuse content in "normal" cases
but ensure that ContentProvider methods work as expected
when a pageOutput is not assigned a pageContentOutput
during the initial pre-render phase.
Fixes #8919
2022-01-12 07:45:53 +01:00
Bjørn Erik Pedersen
fbb3c181cb
docs: Add dependency table to maintainance page
...
See #8949
2022-01-11 21:57:37 +01:00
Bjørn Erik Pedersen
9af4ca3861
deps: Upgrade github.com/evanw/esbuild v0.14.8 => v0.14.11
2022-01-11 20:31:50 +01:00
Bjørn Erik Pedersen
7396aa945a
Add hugo.Deps
...
Fixes #8949
2022-01-11 18:06:23 +01:00
roointan
d82cef5c53
hugolib: Fix livereload problem with files including NFC characters in MacOs
...
Fixes #8429
2022-01-08 11:35:30 +01:00
Bjørn Erik Pedersen
74f0777c5f
docs. Regen CLI docs
...
Closes #9363
2022-01-07 12:37:07 +01:00
Bjørn Erik Pedersen
e334a40661
commands: Fix CLI help text for hugo new
...
Updates #9363
2022-01-07 12:36:12 +01:00
Bjørn Erik Pedersen
5bd3c8df40
Update to Go 1.17.6
...
Fixes #9361
2022-01-07 11:07:42 +01:00
Joe Mooring
0aca99fe01
create: Correctly pass newContentEditor flags
...
Fixes #9356
2022-01-07 10:46:32 +01:00
Bjørn Erik Pedersen
c8b5ab75b7
Add --panicOnWarning flag
...
Fixes #9357
Fixes #9359
2022-01-06 12:27:04 +01:00
Bjørn Erik Pedersen
85c5b89593
github: Increase stale days
2022-01-05 15:48:00 +01:00
Bjørn Erik Pedersen
965760835d
docs: Regenerate CLI docs
2022-01-04 17:12:09 +01:00
Bjørn Erik Pedersen
4a0b55330c
docs: Regenerate docshelper
2022-01-04 17:11:17 +01:00
Bjørn Erik Pedersen
1651beb2c1
Remove mmark
...
Closes #9350
2022-01-04 17:10:39 +01:00
Bjørn Erik Pedersen
2b6063c3e3
Misc depreation updates
...
* Deprecate .Page.Path when backed by a file
* site.Permalinks
* --ignoreVendor (use --ignoreVendorPaths)
Closes #9348
Closes #9349
2022-01-04 17:10:39 +01:00
Bjørn Erik Pedersen
56ab83a597
Make the deprecated Page/File methods (from Hugo 0.55) ERROR
...
Closes #9346
2022-01-04 17:10:39 +01:00
Bjørn Erik Pedersen
dad0dc8d86
github: Add add stale GitHub action
2022-01-04 17:08:10 +01:00
Paul Gottschling
d3c4fdb8ff
Fix surprise OutputFormat.Rel overwriting
...
In page.NewOutputFormat, we take an output.Format f and use it to
create a page.OutputFormat. If the format is canonical, we assign
the final OutputFormat's Rel to "canonical" rather than using
f.Rel. However, this leads to unexpected behavior for custom
output formats, where a user can define a "rel" for a format
via the config file.
For example, the standard for "humans.txt" files requires using
rel="author" in HTML "link" elements. Meanwhile, humans.txt is
usually the only format used for its content. As a result, for
Hugo configurations that define a humans.txt custom output format,
Hugo will render "link" elements to content in this format with
rel="canonical," rather than "author" as required by the standard.
This commit changes page.NewOutputFormat to check whether a given
format is user defined and, if so, skips assigning Rel to
"canonical," even if isCanonical is true.
Fixes #8030
2022-01-04 10:38:38 +01:00
Bjørn Erik Pedersen
d632dd7d74
hugolib: Make an RST test optional
...
If no RST installed.
2022-01-01 12:20:07 +01:00
Joe Mooring
0671ef5593
deps: Upgrade github.com/niklasfasching/go-org v1.5.0 => v1.6.0
...
Fixes #8921
2021-12-30 22:40:43 +01:00
Bjørn Erik Pedersen
672481f1f0
Update stale.yml
2021-12-30 20:13:08 +01:00
hugoreleaser
1dbfc0f930
releaser: Prepare repository for 0.92.0-DEV
...
[ci skip]
2021-12-23 16:10:18 +00:00
hugoreleaser
1798bd3fd1
releaser: Bump versions for release of 0.91.2
...
[ci skip]
2021-12-23 15:33:33 +00:00
hugoreleaser
f0b55a68ee
releaser: Add release notes for 0.91.2
...
[ci skip]
2021-12-23 15:33:33 +00:00
Bjørn Erik Pedersen
623dda7174
Revert "config/security: Add HOME to default exec env var whitelist"
...
There have been one report in the wild suggesting that this needs to be tested better before doing:
https://discourse.gohugo.io/t/hugo-mod-failing-in-v0-91-1-but-works-in-v0-91-0/36180/5
This reverts commit fca266ebbb .
2021-12-23 16:23:15 +01:00
Bjørn Erik Pedersen
aee9e11a40
Make sure we always create the /public folder
...
* Before this commit, when you had static files in the root of /content and no /public folder, that folder would not be created unless the /static syncer had already run.
* So, with a common pattern doing `rm -rf public && hugo` would the fail now and then because /static and /content are processed in parallel (unless you have cleanDestinationDir=true)
* This was even worse before commit 0b918e131f – a frozen build.
Closes #8166
2021-12-23 15:09:27 +01:00
Bjørn Erik Pedersen
bd63c1aa56
Fix "stuck on build" in error situations in content processing
...
Updates #8166
2021-12-23 15:09:27 +01:00
Bjørn Erik Pedersen
9eb05807c6
deps: Run "go mod tidy"
2021-12-23 10:19:10 +01:00
Bjørn Erik Pedersen
654f513a4c
deps: Upgrade github.com/evanw/esbuild v0.14.7 => v0.14.8
2021-12-23 10:19:10 +01:00
hugoreleaser
759cdf3fc8
releaser: Prepare repository for 0.92.0-DEV
...
[ci skip]
2021-12-22 16:07:34 +00:00
hugoreleaser
f423505746
releaser: Bump versions for release of 0.91.1
...
[ci skip]
2021-12-22 15:31:05 +00:00
hugoreleaser
af165d5b6d
releaser: Add release notes for 0.91.1
...
[ci skip]
2021-12-22 15:31:05 +00:00
Bjørn Erik Pedersen
6779117f72
media: Also consider extension in FromContent
...
As used in `resources.GetRemote`.
This will now reject image files with text and text files with images.
2021-12-22 11:35:53 +01:00
Bjørn Erik Pedersen
ce04011096
media: Add missing BMP and GIF to the default MediaTypes list
2021-12-22 11:35:53 +01:00
Bjørn Erik Pedersen
cdc73526a8
media: Add PDF MIME type
2021-12-22 11:35:53 +01:00
Bjørn Erik Pedersen
425c7d90f0
deps: Update github.com/evanw/esbuild v0.14.5 => v0.14.7
2021-12-22 11:34:21 +01:00
Bjørn Erik Pedersen
fca266ebbb
config/security: Add HOME to default exec env var whitelist
...
See #9309
2021-12-22 11:33:59 +01:00
Bjørn Erik Pedersen
0016e21cd6
modules: Set GOCACHE env var
...
This was introduced in Go 1.15. We do set the GOPATH, which should be enough, but #9309 indicate that's not the case on every platform (GitHub Actions).
Closes #9309
2021-12-22 11:33:59 +01:00
hugoreleaser
728feaecf0
releaser: Prepare repository for 0.92.0-DEV
...
[ci skip]
2021-12-17 10:31:22 +00:00
hugoreleaser
d1dc0e9a54
releaser: Bump versions for release of 0.91.0
...
[ci skip]
2021-12-17 09:50:19 +00:00
hugoreleaser
072bca69d8
releaser: Add release notes for 0.91.0
...
[ci skip]
2021-12-17 09:50:19 +00:00
Bjørn Erik Pedersen
e26e13fbb7
releaser: Drop running tests as part of the release
2021-12-17 10:44:10 +01:00
Bjørn Erik Pedersen
6df2f080c9
docs: Regen docs helper
2021-12-17 10:31:08 +01:00
Bjørn Erik Pedersen
b84745d497
tpl/resources: Add empty method mapping for GetRemote
...
To get auto generated documentation for it.
2021-12-17 10:30:10 +01:00
Bjørn Erik Pedersen
44954497bc
Always use content to resolve content type in resources.GetRemote
...
This is a security hardening measure; don't trust the URL extension or any `Content-Type`/`Content-Disposition` header on its own, always look at the file content using Go's `http.DetectContentType`.
This commit also adds ttf and otf media type definitions to Hugo.
Fixes #9302
Fixes #9301
2021-12-17 09:50:28 +01:00
Bjørn Erik Pedersen
22ef5da20d
Add resources.GetRemote
...
In Hugo 0.89 we added remote support to `resources.Get`.
In hindsight that was not a great idea, as a poll from many Hugo users showed. See Issue #9285 for more details.
After this commit `resources.Get` only supports local resource lookups. If you want to support both, you need to use a construct similar to:
Also improve some option case handling.
```
{{ resource := "" }}
{{ if (urls.Parse $url).IsAbs }}
{{ $resource = resources.GetRemote $url }}
{{ else }}
{{ $resource = resources.Get $url }}
{{ end }}
```
Fixes #9285
Fixes #9296
2021-12-17 09:33:51 +01:00
Paul Gottschling
5758c370ea
Allow for return partials with falsy arguments ( #9298 )
...
Partials with returns values are parsed, then inserted into a
partial return wrapper via wrapInPartialReturnWrapper in order
to assign the return value via *contextWrapper.Set. The
predefined wrapper template for partials inserts a partial's nodes
into a "with" template action in order to set dot to a
*contextWrapper within the partial. However, because "with" is
skipped if its argument is falsy, partials with falsy arguments
were not being evaluated.
This replaces the "with" action in the partial wrapper with a
"range" action that isn't skipped if .Arg is falsy.
Fixes #7528
2021-12-17 08:35:21 +01:00
Bjørn Erik Pedersen
8ee6de6d96
deps: Upgrade github.com/evanw/esbuild v0.14.2 => v0.14.5
2021-12-17 08:26:45 +01:00
Joachim Ansorg
a4b9f1a92c
don't use path.Join, because it cleans the final path
2021-12-16 21:14:33 +01:00
Bjørn Erik Pedersen
f4389e48ce
Add some basic security policies with sensible defaults
...
This ommmit contains some security hardening measures for the Hugo build runtime.
There are some rarely used features in Hugo that would be good to have disabled by default. One example would be the "external helpers".
For `asciidoctor` and some others we use Go's `os/exec` package to start a new process.
These are a predefined set of binary names, all loaded from `PATH` and with a predefined set of arguments. Still, if you don't use `asciidoctor` in your project, you might as well have it turned off.
You can configure your own in the new `security` configuration section, but the defaults are configured to create a minimal amount of site breakage. And if that do happen, you will get clear instructions in the loa about what to do.
The default configuration is listed below. Note that almost all of these options are regular expression _whitelists_ (a string or a slice); the value `none` will block all.
```toml
[security]
enableInlineShortcodes = false
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
[security.funcs]
getenv = ['^HUGO_']
[security.http]
methods = ['(?i)GET|POST']
urls = ['.*']
```
2021-12-16 09:40:22 +01:00
Bjørn Erik Pedersen
803f572e66
Simplify Babel test assertions
...
To make the tests pass on my grand old Windows 8 VM.
2021-12-14 07:26:53 +01:00
Bjørn Erik Pedersen
6183184b96
Merge commit '45e6fdb315d113ba13e20a633ed0c67e3f25170d'
2021-12-13 21:05:10 +01:00
Bjørn Erik Pedersen
45e6fdb315
Squashed 'docs/' changes from 316cec249..4eb10c1a9
...
4eb10c1a9 Set a sensible maxAge on the image cache
2c37f4f89 Update lists.md
8690c018f Update introduction.md
0458c3d88 Update index.md
150982f5e Update index.md
50dc0b6b9 Update multilingual.md
648598090 Configure image cache to use :cacheDir/images
4dfb523c3 Update introduction.md
b94d42e6f Add text to social images
d3253d2aa Add resources/_gen/images/ to .gitignore
8a56e1dfd Delete resources/_gen/images
1521e79b6 Update introduction.md
c7110a597 Update introduction.md
f7c4d220f Update introduction.md
c14ecf1ff Update introduction.md
c4b388c20 Fix shortcode in hugo-pipes/introduction (#1605 )
d9876bd68 Update introduction.md
a39a532d5 Update introduction.md
fa8758122 netlify: Hugo 0.90.1
50cc40570 Update Contribute to Hugo Development
fc98fc82c Add .vscode dir to .gitignore (#1602 )
8f8bcdefc Add frontmatter param to code-toggle shortcode (#1601 )
f3b432c7c Add markdownlint configuration file (#1597 )
7ea3aea92 netlify: Bump to 0.90.0
e2b6f990b docs: Regenerate docs helper
c02259e33 Merge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d'
2e3573899 Add custom font support to images.Text
3186e6458 images: Text filter that draws text with the given options (#9239 )
424f219eb tpl/transform: Optional options for highlight func
7993f17d0 Implement XML data support
1eb9d34cf Make resources.Get use a file cache for remote resources
8a0fffd56 Add remote support to resources.Get
git-subtree-dir: docs
git-subtree-split: 4eb10c1a96
2021-12-13 21:04:12 +01:00
Joe Mooring
a037be774d
Improve handling of remote image/jpeg resources ( #9278 )
...
Add jpe, jif, and jfif to image/jpeg extensions.
For remote image/jpeg without extension, always use jpg extension.
Closes #9275
2021-12-13 08:55:15 +01:00
hitzhangjie
8a005538db
Fix Dockerfile
...
Mage uses git, so we should install git before run mage.
Closes #9261
2021-12-12 14:45:08 +01:00
Joe Mooring
657d0272e3
Remove debug statement
2021-12-11 22:59:36 +01:00
Bjørn Erik Pedersen
159120cddd
Fix deprecation notice
...
Asterisks needs to be quoted on command line.
2021-12-11 11:54:28 +01:00
hugoreleaser
3f0d49e502
releaser: Prepare repository for 0.91.0-DEV
...
[ci skip]
2021-12-10 11:42:18 +00:00
hugoreleaser
4890788974
releaser: Bump versions for release of 0.90.1
...
[ci skip]
2021-12-10 10:56:40 +00:00
hugoreleaser
3075eaa3b0
releaser: Add release notes for 0.90.1
...
[ci skip]
2021-12-10 10:56:40 +00:00
Bjørn Erik Pedersen
3bc6830411
Remove the retries on error in remote resources.Get
...
Fixes #9271
See #9259
2021-12-10 11:10:41 +01:00
Bjørn Erik Pedersen
e4d6ec94b5
Allow user to handle/ignore errors in resources.Get
...
In Hugo 0.90.0 we introduced remote support in `resources.Get`.
But with remote resources comes with a higher chance of failing a build (network issues, remote server down etc.).
Before this commit we always failed the build on any unexpected error.
This commit allows the user to check for any error (and potentially fall back to a default local resource):
```htmlbars
{{ $result := resources.Get "https://gohugo.io/img/hugo-logo.png " }}
{{ with $result }}
{{ if .Err }}
{{/* log the error, insert a default image etc. *}}
{{ else }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
{{ end }}
{{ end }}
```
Note that the default behaviour is still to fail the build, but we will delay that error until you start using the `Resource`.
Fixes #9529
2021-12-10 11:10:41 +01:00
Bjørn Erik Pedersen
6260455ba7
Make resource.Get return nil on 404 not found
...
This is in line with the interface declaration and also how local lookups work.
Fixes #9267
2021-12-10 11:10:41 +01:00
Bjørn Erik Pedersen
c397975af8
Update to Go 1.17.5
...
Fixes #9269
2021-12-10 10:36:02 +01:00
Bjørn Erik Pedersen
965a6cbff9
Update to Go 1.17.4 and remove timeout in resources.Get
...
Fixes #9265
2021-12-09 13:33:30 +01:00
hugoreleaser
34a96290fa
releaser: Prepare repository for 0.91.0-DEV
...
[ci skip]
2021-12-08 10:11:31 +00:00
hugoreleaser
dd0d3fdbbe
releaser: Bump versions for release of 0.90.0
...
[ci skip]
2021-12-08 09:33:46 +00:00
hugoreleaser
b921752331
releaser: Add release notes for 0.90.0
...
[ci skip]
2021-12-08 09:33:46 +00:00
Bjørn Erik Pedersen
0fa40ce58f
releaser: Simplify the release process
...
Make it into a one step even for major releases.
2021-12-08 09:38:15 +01:00
Bjørn Erik Pedersen
bf537f1c6d
releaser: Remove unused code
2021-12-08 09:02:45 +01:00
Bjørn Erik Pedersen
e86b331138
docs: Regenerate docs helper
2021-12-08 08:56:16 +01:00
Bjørn Erik Pedersen
6c841a691e
Merge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d'
2021-12-08 08:54:25 +01:00
Bjørn Erik Pedersen
8d9511a08f
Squashed 'docs/' changes from 39a7fac34..316cec249
...
316cec249 Update future events template example (#1595 )
3bde7d489 Install mage outside module (#1592 )
762e27eff Clarify ignoreFiles regex matching
4d0032051 Add id attribute to h2 elements (#1590 )
8262b077c Improve inline resource examples (#1587 )
2eae7c7ec fix disqus example name (#1588 )
a772f4804 Added install instructions for openSUSE Tumbleweed (#1459 )
7ad1c301b Remove screen capture from Hosting on GitHub page (#1586 )
a58541f49 add more details on about gh-pages and baseURL on hosting-on-github.md (#1346 )
3bd0b46dc Update configuration page (#1585 )
4cf1f013e Update OS functions
2c45a95c2 Remove getting-started/code-toggle/
40fdff598 Describe artificial language private use subtags (#1577 )
91011d210 Remove google_news from list of internal templates (#1576 )
36c7879e4 Update the .Unix function
731063488 Remove a showcase
818c371a0 Update index.md
3136d39d9 netlify: Hugo 0.89.4
092bc9278 Merge branch 'tempv0.89.4'
18e01f105 releaser: Add release notes to /docs for release of 0.89.4
79135281f Correct and sort list of target image formats (#1574 )
af4170c7e netlify: Hugo 0.89.3
7f5444251 Merge branch 'tempv0.89.3'
a32e4a6c2 releaser: Add release notes to /docs for release of 0.89.3
6dd3dc3f9 Update configuration.md
5fbe741d7 Update index.md (#1570 )
37a69496f netlify: Bump to Hugo 0.89.2
3b293f1f4 Merge branch 'tempv0.89.2'
64c934e7a releaser: Add release notes to /docs for release of 0.89.2
919c51c7d Update index.md
13dd463b1 netlify: Hugo 0.89.1
d8cda1474 releaser: Add release notes to /docs for release of 0.89.1
a2adf7742 releaser: Add release notes to /docs for release of 0.89.1
c3088c4fc Add code toggle to menus page (#1568 )
2d0f38978 Remove blank lines from code-toggle output (#1564 )
7cf058bfd Add localization examples (#1563 )
cf8627c2e Fixing typos, fixing incomplete link (#1561 )
c78cc014b Document the removePathAccents setting
70beddaf4 Make corrections to 0.89.0 release notes (#1560 )
1917195f0 Update index.md
7fb8e070c Run hugo --gc
1772d45fb Release 0.89.0
d9006179b Merge branch 'tempv0.89.0'
8db86b61e releaser: Add release notes to /docs for release of 0.89.0
abf268571 docs: Regen CLI docs
fbbdb0ab1 Update the timeout default
9cbd1c15a Fix description of lang.FormatNumberCustom
6043b54cc Remove "render" keyword from Host on Render page
f8ea8e84f Clarify description of front matter url (#1557 )
91a0c9954 Update Twitter shortcode oEmbed endpoint
79a7405b8 Merge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'
57667bae6 hugofs: Add includeFiles and excludeFiles to mount configuration
0c9ee0a04 Allow multiple plugins in the PostCSS options map
155799e6b docs: Create path.Clean documentation
git-subtree-dir: docs
git-subtree-split: 316cec2494
2021-12-08 08:42:31 +01:00
Bjørn Erik Pedersen
e71d715b9b
Add custom font support to images.Text
...
Fixes #9253
2021-12-07 16:53:02 +01:00
Bjørn Erik Pedersen
e61cdf335f
images: Fix cache busting of image text filter
...
See #9238
2021-12-07 16:53:02 +01:00
dependabot[bot]
6c3bc5ebad
build(deps): bump github.com/getkin/kin-openapi from 0.80.0 to 0.85.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.80.0 to 0.85.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.80.0...v0.85.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-07 13:12:42 +01:00
Paul van Brouwershaven
283394a4fd
images: Text filter that draws text with the given options ( #9239 )
...
Fixes #9238
2021-12-07 11:29:55 +01:00
Joe Mooring
5538507e90
tpl/transform: Optional options for highlight func
...
Closes #9249
Fixes gohugoio/hugoDocs#63
2021-12-07 11:26:56 +01:00
Bjørn Erik Pedersen
b4f27ef8e7
deps: Upgrade github.com/evanw/esbuild v0.13.12 => v0.14.2 (note)
...
Note: ESBuild v0.14.0 contains backwards-incompatible changes, see https://github.com/evanw/esbuild/releases/tag/v0.14.0
Fixes #9244
2021-12-04 16:28:50 +01:00
Bjørn Erik Pedersen
3473e31eb1
releaser: Add "note" to Note regexp
2021-12-04 16:27:56 +01:00
dependabot[bot]
fa0da004a9
build(deps): bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.2...v1.4.3 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-03 18:16:50 +01:00
Bjørn Erik Pedersen
24a893cf83
releaser: Rework and simplify to use GitHub only for release notes
2021-12-03 17:02:20 +01:00
dependabot[bot]
bf1564bd2c
build(deps): bump google.golang.org/api from 0.51.0 to 0.61.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.51.0 to 0.61.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.51.0...v0.61.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-03 17:01:37 +01:00
Paul van Brouwershaven
cd44d409ba
media: Add rss suffix for application/rss+xml
...
Closes #9233
2021-12-03 12:45:49 +01:00
Bjørn Erik Pedersen
9a326d5636
parser: Add a test case in format resolution
...
See #9233
2021-12-03 10:34:34 +01:00
Bjørn Erik Pedersen
b10381fbe0
lazy: Reset error in Reset
...
To prevent sticky errors on server rebuilds.
Fixes #7043
Closes #9194
2021-12-02 18:06:19 +01:00
Paul van Brouwershaven
0eaaa8fee3
Implement XML data support
...
Example:
```
{{ with resources.Get "https://example.com/rss.xml " | transform.Unmarshal }}
{{ range .channel.item }}
<strong>{{ .title | plainify | htmlUnescape }}</strong><br />
<p>{{ .description | plainify | htmlUnescape }}</p>
{{ $link := .link | plainify | htmlUnescape }}
<a href="{{ $link }}">{{ $link }}</a><br />
<hr>
{{ end }}
{{ end }}
```
Closes #4470
2021-12-02 17:30:36 +01:00
Joe Mooring
58adbeef88
Validate private use language tags
...
Fixes #9119
2021-12-02 16:30:53 +01:00
Bjørn Erik Pedersen
93572e5318
resources: Add timeout to the HTTP request in Get
...
Workaround for https://github.com/golang/go/issues/49366
2021-12-02 16:11:14 +01:00
Bjørn Erik Pedersen
94f149b21e
Add a remote retry for resources.Get
2021-12-02 16:11:14 +01:00
Paul van Brouwershaven
66753416b5
Make resources.Get use a file cache for remote resources
...
Closes #9228
2021-12-02 12:56:25 +01:00
Joe Mooring
133e4bfbee
Remove empty href element from pagination template
...
Closes #9149
2021-12-02 09:14:30 +01:00
Joe Mooring
f122771fb1
Check for empty deployment targets and matchers
...
Fixes #9220
2021-12-01 10:17:42 +01:00
Bjørn Erik Pedersen
08a863e1e8
resources: Adjust the remote Get cache so it does not get evicted on restarts
...
We fill improve this, soon.
2021-11-30 16:54:01 +01:00
Paul van Brouwershaven
8aa7257f65
Add remote support to resources.Get
...
Closes #5255
Supports #9044
2021-11-30 11:49:51 +01:00
Joe Mooring
75a823a36a
Add deprecation warning to google_news template
...
Closes #9172
2021-11-21 11:25:17 +01:00
Bjørn Erik Pedersen
5e0947c5b5
helpers: Make UniqueStringsReuse allocation free
...
This should be faster for all of our use cases (small string slices), but more important, it makes UniqueStringsReuse allocation free.
```bash
name old time/op new time/op delta
UniqueStrings/Safe-16 776ns ± 0% 305ns ± 0% -60.68% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16 621ns ± 3% 174ns ± 0% -72.01% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16 319ns ± 4% 313ns ± 0% -2.01% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
UniqueStrings/Safe-16 224B ± 0% 128B ± 0% -42.86% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16 96.0B ± 0% 0.0B -100.00% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16 24.0B ± 0% 24.0B ± 0% ~ (all equal)
name old allocs/op new allocs/op delta
UniqueStrings/Safe-16 7.00 ± 0% 1.00 ± 0% -85.71% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16 6.00 ± 0% 0.00 -100.00% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16 1.00 ± 0% 1.00 ± 0% ~ (all equal)
```
2021-11-17 10:44:03 +01:00
hugoreleaser
0b70b46aad
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-17 09:05:38 +00:00
hugoreleaser
ab01ba6e7e
releaser: Add release notes to /docs for release of 0.89.4
...
[ci skip]
2021-11-17 08:24:08 +00:00
hugoreleaser
cc08c09592
releaser: Bump versions for release of 0.89.4
...
[ci skip]
2021-11-17 08:24:08 +00:00
hugoreleaser
f97da9eca9
releaser: Add release notes for 0.89.4
...
[ci skip]
2021-11-17 08:24:08 +00:00
Bjørn Erik Pedersen
2e70f61fb0
Fix content dir resolution when main project is a Hugo Module
...
Fixes #9177
2021-11-16 20:42:34 +01:00
hugoreleaser
1ed8069a3a
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-15 12:56:41 +00:00
hugoreleaser
c88cdb5610
releaser: Add release notes to /docs for release of 0.89.3
...
[ci skip]
2021-11-15 12:17:45 +00:00
hugoreleaser
e1064d2195
releaser: Bump versions for release of 0.89.3
...
[ci skip]
2021-11-15 12:17:45 +00:00
hugoreleaser
bf489b96d3
releaser: Add release notes for 0.89.3
...
[ci skip]
2021-11-15 12:17:45 +00:00
Bjørn Erik Pedersen
b8155452ac
Improve error when we cannot determine content directory in "hugo new"
...
See #9166
2021-11-15 11:21:39 +01:00
Joe Mooring
08552a7a4c
deps: Upgrade github.com/yuin/goldmark v1.4.3 => v1.4.4
...
Fixes #9159
2021-11-15 09:43:24 +01:00
Bjørn Erik Pedersen
fdad91fd96
commands: Make sure pollInterval is always set
...
Fixes #9165
2021-11-13 21:45:51 +01:00
Bjørn Erik Pedersen
5f3f60898c
create: Improve archetype directory discovery and tests
...
Updates #9146
2021-11-12 12:05:31 +01:00
Bjørn Erik Pedersen
057d02de25
create: Add a log statement when archetype is a directory
...
See #9157
2021-11-12 12:05:31 +01:00
Bjørn Erik Pedersen
43ac59da85
create: Always print "Content ... created"
...
This indeliberately changed to INFO level in Hugo 0.89.0.
Fixes #9157
2021-11-12 12:05:31 +01:00
Bjørn Erik Pedersen
ab5c6990a5
commands: Fix missing file locking in server partial render
...
Fixes #9162
2021-11-12 09:29:04 +01:00
Patrick Kollitsch
9369d13e59
modules: Improve error message
2021-11-10 09:32:17 +01:00
hugoreleaser
805c24c32c
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-08 15:56:14 +00:00
hugoreleaser
63e3a5ebb2
releaser: Add release notes to /docs for release of 0.89.2
...
[ci skip]
2021-11-08 15:22:23 +00:00
hugoreleaser
eaa6c96a79
releaser: Bump versions for release of 0.89.2
...
[ci skip]
2021-11-08 15:22:23 +00:00
hugoreleaser
cf3eb580bf
releaser: Add release notes for 0.89.2
...
[ci skip]
2021-11-08 15:22:23 +00:00
Bjørn Erik Pedersen
2b01c85d14
Fix path resolution in hugo new
...
With theme and project with content directories and command on the form `hugo new posts/test.md`.
Fixes #9129
2021-11-08 14:10:46 +01:00
Bjørn Erik Pedersen
c09f5c5fd3
deps: Upgrade github.com/yuin/goldmark v1.4.2 => v1.4.3
...
Fixes #9137
2021-11-08 11:54:51 +01:00
hugoreleaser
9232e28446
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-05 16:24:06 +00:00
hugoreleaser
b6a4ae4ad5
releaser: Add release notes to /docs for release of 0.89.1
...
[ci skip]
2021-11-05 15:44:32 +00:00
hugoreleaser
84de0c3255
releaser: Bump versions for release of 0.89.1
...
[ci skip]
2021-11-05 15:44:32 +00:00
hugoreleaser
a074102262
releaser: Add release notes for 0.89.1
...
[ci skip]
2021-11-05 15:44:32 +00:00
Bjørn Erik Pedersen
da4406ea50
Revert "releaser: Fat MacOS binaries"
...
This had some side effect that I'm not prepared to fix today ...
This reverts commit 3a977485eb .
Updates #9131
Updates #9128
2021-11-05 16:31:19 +01:00
Bjørn Erik Pedersen
166862a096
create: Make sure the build lock is released before we open editor
...
Fixes #9121
2021-11-04 15:40:02 +01:00
Andreas Deininger
82c33c7105
readme: Update dependency list
2021-11-03 17:15:33 +01:00
hugoreleaser
41e9e9fe14
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-02 10:40:00 +00:00
hugoreleaser
ade966b84b
releaser: Add release notes to /docs for release of 0.89.0
...
[ci skip]
2021-11-02 10:00:17 +00:00
hugoreleaser
a93d4ba64e
releaser: Bump versions for release of 0.89.0
...
[ci skip]
2021-11-02 10:00:17 +00:00
hugoreleaser
110512a65c
releaser: Add release notes for 0.89.0
2021-11-02 10:47:54 +01:00
Bjørn Erik Pedersen
f503b63957
docs: Regen CLI docs
2021-11-02 09:01:26 +01:00
Bjørn Erik Pedersen
30aba7fb09
source: Make ContentBaseName() return the directory for branch bundles
...
Fixes #9112
2021-11-01 21:06:39 +01:00
Joe Mooring
04a3b45db4
Fix description of lang.FormatNumberCustom
...
It currently refers to itself as a simple alternative, when it should
refer to lang.FormatNumber.
2021-11-01 18:54:43 +01:00
Joe Mooring
0cc39af682
Update Twitter shortcode oEmbed endpoint
...
The existing endpoint will be retired and removed on November 23, 2021.
References:
- https://twittercommunity.com/t/consolidating-the-oembed-functionality/154690
- https://developer.twitter.com/en/docs/twitter-for-websites/oembed-api#Embedded
This is a backward compatible change.
The existing endpoint requires a single parameter: the id of the tweet.
The new endpoint requires two parameters: the id of the tweet, and the
user with whom it is associated. For the moment, if you supply the wrong
user, the request will be redirected (with a small delay) to the correct
user/id pair. This behavior is undocumented, but we will take advantage
of it as Hugo site authors transition to the new syntax.
{{< tweet 1453110110599868418 >}} --> works, throws warning, deprecate at some point
{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}} --> new syntax
Fixes #8130
2021-11-01 15:51:00 +01:00
Bjørn Erik Pedersen
ed6fd26ce8
common/htime: Fix time.Format with Go layouts
...
Fixes #9107
2021-11-01 15:45:59 +01:00
dependabot[bot]
7fa66425aa
build(deps): bump github.com/evanw/esbuild from 0.13.10 to 0.13.12
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.13.10 to 0.13.12.
- [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.13.10...v0.13.12 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-01 15:44:19 +01:00
dependabot[bot]
69210cfdf3
build(deps): bump github.com/yuin/goldmark from 1.4.1 to 1.4.2
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-01 15:43:42 +01:00
Bjørn Erik Pedersen
4b36498a85
Merge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'
2021-10-31 13:53:55 +01:00
Bjørn Erik Pedersen
aa5ac36a3e
Squashed 'docs/' changes from 327003421..39a7fac34
...
39a7fac34 Add .hugo_build.lock to .gitignore
920c716a4 fix a typo: to -> two (#1545 )
6f0ba9593 Remove godocref from front matter (#1543 )
8ec3d5948 remove link to wercker (#1544 )
b56008719 Delete deployment-with-wercker.md (#1542 )
e33d29b02 Fix broken links (#1538 )
29e9d4c21 Sort commenting systems (#1541 )
0b7ea60a7 Delete the news page "HTTP/2 Server Push in Hugo"
6e1515857 Fix quick-start.md (#1525 )
62168ab35 Update comments.md (#1535 )
d92191512 Small typo (#1539 )
129c8834a Correct the PostCSS noMap default value (#1534 )
6a5b29fcc Add example to index function (#1536 )
e3dd8c507 Update output-formats.md
0c9321ca0 Remove reference to using LiveReload in production environment
4072d6776 Mod testing
09fabf7d6 Fix typo (#1524 )
2fce813c8 Fix grammatical error in quick-start.md (#1523 )
45230ab4a Hugo Mod testing
2dd4cd9e7 Update index.md
2c3ed62fd netlify: Bump to 0.88.1
648e2a007 Merge branch 'tempv0.88.1'
f216eade1 releaser: Add release notes to /docs for release of 0.88.1
8a7b64d4b Fix typographical errors in 0.88.0 release notes
a4bf86300 Release 0.88
738bb8f38 releaser: Add release notes to /docs for release of 0.88.0
8fcf2c55d highlight: Remove some pygments references
f2b173de2 HTTPS link
c88881c8e Adding link to nginx documentation
6b0a74fe0 Fix typos in docs (#1516 )
498b8f0f1 Fix typos in time.Format (#1515 )
28723fad6 Fix taxonomy and term examples (#1514 )
3ffd00e12 Update front-matter.md
7cc1da82e Fix grammar in 0.86.1 release notes (#1510 )
0009c51c3 Update docs helper
7e2f430f4 Update index.md
7857eae7e releaser: Add release notes to /docs for release of 0.87.0
1f08b684b releaser: Add release notes to /docs for release of 0.87.0
36a9e701c docs: Adjust config docs
0f588438e docs: Regen CLI docs
1b4682cd8 docs: Regen docs helper
bc8bbaae9 Merge commit 'bd77f6e1c99e04a476f0b1bb4e44569134e02399' into release-0.87.0
6f2480643 docs: Adjust time zone docs
git-subtree-dir: docs
git-subtree-split: 39a7fac343
2021-10-31 13:51:51 +01:00
Bjørn Erik Pedersen
3a977485eb
releaser: Fat MacOS binaries
...
Fixes #9035
2021-10-31 11:30:12 +01:00
Bjørn Erik Pedersen
0f248606d5
releaser: Only build amd64 binary for freebsd, netbsd, openbsd, dragonfly
...
Fixes #9102
2021-10-31 10:04:01 +01:00
Bjørn Erik Pedersen
e82cbd746f
tpl/time: Use configured location when date passed to Format is string
...
Updates #9084
2021-10-30 16:09:38 +02:00
dependabot[bot]
3339c2bb61
build(deps): bump github.com/aws/aws-sdk-go from 1.40.8 to 1.41.14
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.40.8 to 1.41.14.
- [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.40.8...v1.41.14 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-30 11:17:12 +02:00
dependabot[bot]
03bbdba8be
build(deps): bump github.com/getkin/kin-openapi from 0.79.0 to 0.80.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.79.0 to 0.80.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.79.0...v0.80.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-30 11:16:46 +02:00
dependabot[bot]
a772b8fc38
build(deps): bump github.com/evanw/esbuild from 0.13.8 to 0.13.10
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.13.8 to 0.13.10.
- [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.13.8...v0.13.10 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-30 09:35:06 +02:00
Anthony Fok
dce49d1333
resources: Rename excepted filenames for image golden testdata
...
As documented in commit 30eea3915b ,
some filenames have changed due to cache busting of PNG and Webp images.
This resolves recent TestImageOperationsGolden failure on arm64, ppc64le
and s390x.
See #6387 and #8729
2021-10-30 08:47:22 +02:00
dependabot[bot]
61c5b7a2e6
build(deps): bump github.com/frankban/quicktest from 1.13.1 to 1.14.0
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-27 14:30:23 +02:00
Joe Mooring
1d60bd1efa
Fix typo in error message
2021-10-26 12:59:15 +02:00
Bjørn Erik Pedersen
75c9b893d9
create: Validate the target path in hugo new
...
Fixes #9072
2021-10-25 19:50:18 +02:00
Bjørn Erik Pedersen
64e1613fb3
Fix panic when specifying multiple excludeFiles directives
...
Fixes #9076
2021-10-25 19:50:18 +02:00
satotake
b959ecbc81
htime: Set zone of datetime from from go-toml
...
`go-toml/v2`'s unmarshaler does not specify zone name even if value has
offset explicitly.
To make time-formatting behaviour consistent, convert them into string
in hugo.
Close #8895
2021-10-25 19:49:44 +02:00
Sergio Garcia
70e454812e
Added nodesource apt repository to snap package
2021-10-22 16:26:07 -06:00
Anthony Fok
355ff83e74
config: Set HUGO_ENABLEGITINFO=false override in Set_in_string
...
This allows TestLoadConfigWithOsEnvOverrides/Set_in_string to PASS
even if there is no .git directory, e.g. during Debian package build.
2021-10-22 19:40:18 +02:00
Bjørn Erik Pedersen
471ed91c60
hugofs: Add includeFiles and excludeFiles to mount configuration
...
Fixes #9042
2021-10-20 05:00:17 +02:00
dependabot[bot]
94a5bac5b2
build(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-20 04:17:44 +02:00
Bjørn Erik Pedersen
9830ca9e31
resources: Always preserve the original transform error
2021-10-19 20:38:38 +02:00
itsAftabAlam
b64fd0577b
readme: Add hyperlink to the banner
2021-10-19 15:59:12 +02:00
dependabot[bot]
2706437a7d
build(deps): bump github.com/getkin/kin-openapi from 0.78.0 to 0.79.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.78.0 to 0.79.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.78.0...v0.79.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-19 15:35:31 +02:00
Bjørn Erik Pedersen
ec7c993cfe
deps: github.com/evanw/esbuild v0.13.5 => v0.13.8
2021-10-19 15:33:29 +02:00
Bjørn Erik Pedersen
32c6f656d9
create: Return error on no content dirs
...
Closes #9056
2021-10-19 08:08:21 +02:00
Bjørn Erik Pedersen
e02e0727e5
Fix file permissions in new archetype implementation
...
Closes #9057
2021-10-18 19:08:19 +02:00
Bjørn Erik Pedersen
096f5e1921
Fix the "page picker" logic in --navigateToChanged
...
Fixes #9051
2021-10-18 12:13:13 +02:00
Bjørn Erik Pedersen
ba35e69856
Add a cross process build lock and use it in the archetype content builder
...
Fixes #9048
2021-10-18 12:13:13 +02:00
nabbisen
c7957c90e8
readme: Fix a typo on OpenBSD
2021-10-17 21:23:01 +02:00
Bjørn Erik Pedersen
bb05377033
deps: github.com/alecthomas/chroma v0.9.2 => v0.9.4
...
Fixes #8532
2021-10-17 17:14:03 +02:00
Bjørn Erik Pedersen
9185e11eff
Reimplement archetypes
...
The old implementation had some issues, mostly related to the context (e.g. name, file paths) passed to the template.
This new implementation is using the exact same code path for evaluating the pages as in a regular build.
This also makes it more robust and easier to reason about in a multilingual setup.
Now, if you are explicit about the target path, Hugo will now always pick the correct mount and language:
```bash
hugo new content/en/posts/my-first-post.md
```
Fixes #9032
Fixes #7589
Fixes #9043
Fixes #9046
Fixes #9047
2021-10-16 15:22:03 +02:00
dependabot[bot]
168a3aab46
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.21 to 2.9.22
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.21 to 2.9.22.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.21...v2.9.22 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-14 10:40:23 +02:00
Bjørn Erik Pedersen
8bcfa3bdf6
deps: Update github.com/evanw/esbuild v0.13.5
2021-10-14 10:25:42 +02:00
Iskander (Alex) Sharipov
d7331aaa7e
releaser: Fix regexp
...
Original regexp used a char class which caused the regexp to only
check 1 symbol instead of a substring like "See" and "Closes".
So it would match `e #x` instead of `See #x` and many other
weird combinations.
Tests were passing as they never checked against an input that
would confuse that regexp.
Found with go-critic static analyzer, `badRegexp` checker.
2021-10-12 11:32:09 +02:00
dependabot[bot]
cd4e67af18
build(deps): bump github.com/mattn/go-isatty from 0.0.13 to 0.0.14
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.13 to 0.0.14.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.13...v0.0.14 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-10 20:45:38 +02:00
dependabot[bot]
e6ad1f0e76
build(deps): bump github.com/getkin/kin-openapi from 0.75.0 to 0.78.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.75.0 to 0.78.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.75.0...v0.78.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-10 20:30:52 +02:00
Bjørn Erik Pedersen
625d2c257a
releaser: Update to Go go1.17.2
...
* This now uses the `golang:1.17.2-buster` Docker image which runs GLIBC 2.28-10.
* Also added a build hook to warn us if this happens again in the future.
Fixes #8955
2021-10-10 16:53:44 +02:00
Joe Mooring
e6e44b7c41
Fix value of useResourceCacheWhen in TestResourceChainPostCSS
2021-10-10 11:12:01 +02:00
Joe Mooring
64abc83fc4
Allow multiple plugins in the PostCSS options map
...
Usage:
{{ $options := dict "use" "autoprefixer postcss-color-alpha" }}
{{ $style := resources.Get "main.css" | resources.PostCSS $options }}
Fixes #9015
2021-10-10 11:11:43 +02:00
Joe Mooring
f8d132d731
docs: Create path.Clean documentation
...
Related to #9005
2021-10-09 20:36:57 +02:00
Bjørn Erik Pedersen
26f1919ae0
Skip a test assertion on CI
...
Need to investigate later, but got to get the tests green.
2021-10-09 20:36:32 +02:00
Brad
e55466ce70
tpl/path: Add path.Clean
...
Fixes #8885
2021-10-05 16:15:10 +02:00
Shalabh Kamboj
ecf025f006
readme: Remove tracking image
...
The server for the tracking image for analytics is currently down,
therefore I found it convenient to remove the link in order to maintain our readme
2021-10-05 15:09:11 +02:00
digitalcraftsman
fab1e43de5
Revert "Remove credit from release notes"
...
See b2eaf4c8c2
2021-09-23 14:02:00 +02:00
Paul Gottschling
e03f82eef2
Pass minification errors to the user
...
Previously, *minifyTransformation.Transform suppressed the
error returned by t.m.Minify. This meant that when minification
returned an error, the error would not reach the user. Instead,
minification would silently fail. For example, if a JavaScript
file included a call to the Date constructor with:
new Date(2020, 04, 02)
The package that the minification library uses to parse JS files,
github.com/tdewolff/parse would return an error, since "04" would
be parsed as a legacy octal. However, the JS file would remain
un-minified with no error.
Fixing this is not as simple as replacing "_" with an "err" in
*minifyTransformation.Transform, however (though this is
necessary). If we only returned this error from Transform,
then hugolib.TestResourceMinifyDisabled would fail. Instead of
being a no-op, as TestResourceMinifyDisabled expects, using the
"minify" template function with a "disableXML=true" config
setting instead returns the error, "minifier does not exist for
mimetype."
The "minifier does not exist" error is returned because of the
way minifiers.New works. If the user's config disables
minification for a particular MIME type, minifiers.New does
not add it to the resulting Client's *minify.M. However, this
also means that when the "minify" template function is executed,
a *resourceAdapter's transformations still add a minification.
When it comes time to call the minify.Minifier for a specific
MIME type via *M.MinifyMimetype, the github.com/tdewolff/minify
library throws the "does not exist" error for the missing MIME
type.
The solution was to change minifiers.New so, instead of skipping
a minifier for each disabled MIME type, it adds a NoOpMinifier,
which simply copies the source to the destination without
minification. This means that when the "minify" template
function is used for a particular resource, and that resource's
MIME type has minification disabled, minification is genuinely
skipped, and does not result in an error.
In order to add this, I've fixed a possibly unwanted interaction
between minifiers.TestConfigureMinify and
hugolib.TestResourceMinifyDisabled. The latter disables
minification and expects minification to be a no-op. The former
disables minification and expects it to result in an error. The
only reason hugolib.TestResourceMinifyDisabled passes in the
original code is that the "does not exist" error is suppressed.
However, we shouldn't suppress minification errors, since they
can leave users perplexed. I've changed the test assertion in
minifiers.TestConfigureMinify to expect no errors and a no-op
if minification is disabled for a particular MIME type.
Fixes #8954
2021-09-22 20:54:40 +02:00
Paul Gottschling
a864ffe9ac
Clarify "precision" in currency format functions
...
The documentation of the FormatAccounting and FormatCurrency
functions could be clearer in terms of how the precision param
works. This commit makes it more explicit that adding a precision
of < 2 will not format the return values to include fewer decimals.
Resolves #8858
2021-09-22 20:00:30 +02:00
dependabot[bot]
b49da33280
build(deps): bump github.com/evanw/esbuild from 0.12.24 to 0.12.29
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.12.24 to 0.12.29.
- [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.12.24...v0.12.29 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-22 20:00:05 +02:00
Emmanuel T Odeke
7c21eca74f
resources: Use default math/rand.Source for concurrency safety
...
The source from NewSource is documented not to be safe for
concurrency, and instead use the eefault source which is documented
as safe.
Fixes #8981
2021-09-19 12:18:30 +02:00
Bjørn Erik Pedersen
13ad8408fc
commands: Make the error handling for the mod commands more lenient
...
So it at least is possible to do a `hugo mod clean --all` if the cache is in a funky state.
2021-09-17 17:16:34 +02:00
Bjørn Erik Pedersen
1cabf61ddf
modules: Add some help text to the 'unknown revision' error
...
I had a head scratching moment with this myself, so it's safe to say that others will.
See #6825
2021-09-17 09:34:35 +02:00
Joe Mooring
268e3069f3
deps: Update github.com/yuin/goldmark v1.4.0 => v1.4.1
...
Fixes #8855
2021-09-12 21:55:37 +02:00
hugoreleaser
3efc2e2af8
releaser: Prepare repository for 0.89.0-DEV
...
[ci skip]
2021-09-04 10:33:09 +00:00
hugoreleaser
5bc547389a
releaser: Add release notes to /docs for release of 0.88.1
...
[ci skip]
2021-09-04 09:39:19 +00:00
hugoreleaser
bb3254385a
releaser: Bump versions for release of 0.88.1
...
[ci skip]
2021-09-04 09:39:19 +00:00
hugoreleaser
9b1d6d7e30
releaser: Add release notes for 0.88.1
...
[ci skip]
2021-09-04 09:39:19 +00:00
Bjørn Erik Pedersen
e1ead4dbca
Bump down again to Go 1.16.7 for the release builds
...
Note that this commit has nothing to do with "Hugo not working with Go 1.17", but this is the simplest fix of some build related issues in Hugo 0.88.0.
Updates #8952
Updates #8955
2021-09-04 11:22:51 +02:00
hugoreleaser
5b59b9c171
releaser: Prepare repository for 0.89.0-DEV
...
[ci skip]
2021-09-02 09:57:36 +00:00
hugoreleaser
acc5eb5b51
releaser: Add release notes to /docs for release of 0.88.0
...
[ci skip]
2021-09-02 09:27:27 +00:00
hugoreleaser
6cacfa329c
releaser: Bump versions for release of 0.88.0
...
[ci skip]
2021-09-02 09:27:27 +00:00
Bjørn Erik Pedersen
4d03cd780e
Release 0.88.0
2021-09-02 11:11:08 +02:00
Bjørn Erik Pedersen
8b14fdbf89
Update 0.88.0-relnotes.md
...
[ci skip]
2021-09-02 11:10:40 +02:00
hugoreleaser
fc21b63b46
releaser: Add release notes for 0.88.0
...
Rename to *-ready.md to continue.
[ci skip]
2021-09-02 08:09:25 +00:00
Bjørn Erik Pedersen
6631c9c7e0
Run go mod tidy
2021-09-01 10:48:13 +02:00
Bjørn Erik Pedersen
cf73cc2ece
js: Fix import order for ./foo when both ./foo.js and ./foo/index.js exists
...
This is in line with how both Node and ESBuild's native import resolver does it.
The ambiguous situations above were discovered trying to build AlpineJS v3.
Note that the above was never an issue if you used `./foo.js` and similar to import the component.
Fixes #8945
2021-09-01 10:47:41 +02:00
Bjørn Erik Pedersen
7d1f806ecb
commands: Don't fail on template errors on go mod graph etc.
...
Fixes #8942
2021-08-31 22:16:12 +02:00
dependabot[bot]
04b5959961
build(deps): bump github.com/getkin/kin-openapi from 0.74.0 to 0.75.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.74.0 to 0.75.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.74.0...v0.75.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-31 12:11:39 +02:00
dependabot[bot]
c278b6e45d
build(deps): bump github.com/frankban/quicktest from 1.13.0 to 1.13.1
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-31 12:11:08 +02:00
dependabot[bot]
107c86febb
build(deps): bump github.com/evanw/esbuild from 0.12.22 to 0.12.24
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.12.22 to 0.12.24.
- [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.12.22...v0.12.24 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-31 12:10:32 +02:00
Bjørn Erik Pedersen
a0489c2dfd
Avoid failing with "module not found" for hugo mod init and similar
...
Fixes #8940
2021-08-31 12:08:11 +02:00
Bjørn Erik Pedersen
0fc2ce9e4b
Update to Go 1.17
...
Go 1.17 now lazy-loads dependencies when `go.mod` is version `go17`. This does not work for us for new projects started with `hugo mod init`.
Before this commit, starting a project with Go 1.17 with `hugo mod init` and then start adding dependencies with transitive dependenies to `config.toml` would treat the transitive dependencies as new, and you would potentially get a too recent version of those.
Note that this does not effect existing projects, where all dependencies are already recorded in `go.mod`.
Fixes #8930
2021-08-31 11:19:51 +02:00
Anthony Fok
32569285c1
Remove Pygments from snapcraft.yml
...
Pygments support was removed in Hugo v0.60.0
2021-08-25 10:43:32 -06:00
Bjørn Erik Pedersen
5a46eefbc6
Revert "build(deps): bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0"
...
This reverts commit f70165242b .
Closes #8920
2021-08-23 18:20:29 +02:00
Helder Pereira
7a15edafe2
highlight: Add tabindex when code is not highlighted
2021-08-23 12:28:45 +02:00
dependabot[bot]
2f0945bafe
build(deps): bump github.com/evanw/esbuild from 0.12.17 to 0.12.22
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.12.17 to 0.12.22.
- [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.12.17...v0.12.22 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-22 13:58:10 +02:00
Bjørn Erik Pedersen
f4ffeea71d
Fix it so disableKinds etc. does not get merged in from theme
...
Unless the merge strategy is set up to do so.
For `disableKinds` the current workaround is to make sure the project config has an entry, even if is empty:
```
disableKinds = []
```
Note that this issue only touches root, non-map config-values that either is not set in project config or in Hugo's defaults.
Fixes #8866
2021-08-22 13:25:20 +02:00
dependabot[bot]
7ba3f3d201
build(deps): bump golang.org/x/text from 0.3.6 to 0.3.7
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.6 to 0.3.7.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.6...v0.3.7 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-22 12:52:31 +02:00
dependabot[bot]
f70165242b
build(deps): bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.4.9 to 1.5.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.4.9...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-22 12:52:04 +02:00
Bjørn Erik Pedersen
bc0743ed8e
Prevent minifier from removing quoutes around post-processed attributes
...
Fixes #8884
2021-08-22 12:47:47 +02:00
Bjørn Erik Pedersen
ffa2fe6117
Revert "commands: Avoid too many watch file handles causing the server to fail to start"
...
This reverts commit 3f38c785b7 .
2021-08-21 16:32:20 +02:00
Helder Pereira
d966f5d08d
highlight: Remove some pygments references
2021-08-21 15:50:49 +02:00
Shiming Zhang
3f38c785b7
commands: Avoid too many watch file handles causing the server to fail to start
...
Fixes #8904
2021-08-19 11:04:09 +02:00
dependabot[bot]
24589c0814
build(deps): bump github.com/getkin/kin-openapi from 0.68.0 to 0.74.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.68.0 to 0.74.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.68.0...v0.74.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-17 10:50:10 +02:00
Bjørn Erik Pedersen
efebd756eb
deps: Update github.com/spf13/cast v1.4.0 => v1.4.1
...
Closes #8891
2021-08-16 09:16:41 +02:00
Bjørn Erik Pedersen
58b6742cfe
Import time/tzdata on Windows
...
Updates #8892
2021-08-14 12:09:41 +02:00
Bjørn Erik Pedersen
32ead4b1e7
releaser: Bump to Go 1.16.7
2021-08-10 14:00:49 +02:00
Bjørn Erik Pedersen
abd969a670
Revert "tpl/time: Handle nil values in time.AsTime"
...
This reverts commit 3e11072892 .
2021-08-10 13:21:49 +02:00
Bjørn Erik Pedersen
3e11072892
tpl/time: Handle nil values in time.AsTime
...
Closes #8865
2021-08-09 18:44:35 +02:00
Bjørn Erik Pedersen
9bba9a3a98
parser: Indent TOML tables
...
Fixes #8850
2021-08-04 11:39:16 +02:00
Salim B
d6c8cd7718
Fix lang.FormatPercent description
...
Successor PR for https://github.com/gohugoio/hugoDocs/pull/1504
2021-08-03 16:56:06 +02:00
hugoreleaser
dfe54d3216
releaser: Prepare repository for 0.88.0-DEV
...
[ci skip]
2021-08-03 12:11:56 +00:00
hugoreleaser
b0c541e496
releaser: Add release notes to /docs for release of 0.87.0
...
[ci skip]
2021-08-03 10:57:26 +00:00
hugoreleaser
2ed7be295c
releaser: Bump versions for release of 0.87.0
...
[ci skip]
2021-08-03 10:57:26 +00:00
Bjørn Erik Pedersen
d9d1ef8b07
Release 0.87
2021-08-03 12:42:22 +02:00
Bjørn Erik Pedersen
ec1c1c3459
Merge branch 'b087' into release-0.87.0
2021-08-03 12:38:58 +02:00
Bjørn Erik Pedersen
c7fd134625
Update 0.87.0-relnotes.md
...
[ci skip]
2021-08-03 12:31:41 +02:00
Bjørn Erik Pedersen
a5d2632ebb
Update 0.87.0-relnotes.md
...
[ci skip]
2021-08-03 12:30:42 +02:00
Bjørn Erik Pedersen
494f284be3
docs: Adjust config docs
2021-08-03 12:22:02 +02:00
Bjørn Erik Pedersen
bf738d2f43
docs: Regen CLI docs
2021-08-03 11:55:02 +02:00
Bjørn Erik Pedersen
8d19850e2d
docs: Regen docs helper
2021-08-03 11:53:34 +02:00
Bjørn Erik Pedersen
0934983529
Merge commit 'bd77f6e1c99e04a476f0b1bb4e44569134e02399' into release-0.87.0
2021-08-03 11:52:57 +02:00
Bjørn Erik Pedersen
bd77f6e1c9
Squashed 'docs/' changes from 60a58d123..327003421
...
327003421 Update index.md
cafdccc13 Hugo 0.86.1
467a89a02 Merge branch 'v0861'
a22c37bc9 Merge branch 'release-0.86.1'
276da91a8 releaser: Add release notes to /docs for release of 0.86.1
198cdf8f0 tpl/lang: Add new localized versions of lang.FormatNumber etc.
93f986ecc Add timezone support for front matter dates without one
b30b876bb Localize time.Format
950fdab90 Fix AddDate documentation
78d7b52b6 Document config.cascade
fd1e1e4b7 Fix grammar and spelling (#1497 )
05bf3aa32 Fix grammar / typos in news
32060a3b4 One more try
f6e24ddfa PNG to JPG for the rel notes image
9ec5bdfad Update index.md
5f5d7f69d Release Hugo 0.86.0
2dd60bb71 releaser: Add release notes to /docs for release of 0.86.0
6445fb36c Merge commit '53a352795a69a9d4a373f50ec62138595948c6ea'
cb57ca73a Simplify "active menu" logic for section menus
git-subtree-dir: docs
git-subtree-split: 327003421d
2021-08-03 11:51:36 +02:00
Bjørn Erik Pedersen
1c5b025dd0
docs: Adjust time zone docs
2021-08-03 11:51:28 +02:00
hugoreleaser
c13d33dd5e
releaser: Add release notes for 0.87.0
...
Rename to *-ready.md to continue.
[ci skip]
2021-08-03 08:45:16 +00:00
Bjørn Erik Pedersen
d70c485707
Make sure module config loading errors have file positioning info
...
Fixes #8845
2021-08-03 09:57:14 +02:00
Bjørn Erik Pedersen
9ff17c3324
tpl/time: Adjust tests to handle matching local time zones
...
Closes #8843
2021-08-03 08:54:45 +02:00
Bjørn Erik Pedersen
7aaaf7e33a
mod: Remove superflous replace statement
2021-08-02 20:33:13 +02:00
Bjørn Erik Pedersen
3a96655592
Reduce binary size vs locale, update to CLDR v36.1
...
Test building with `go build -ldflags="-s -w"`
Hugo 0.86.2: 46MB
Before this commit: 77MB
After this commit: 54MB
Fixes #8839
Fixes #8841
2021-08-02 19:40:32 +02:00
Joe Mooring
9a7383caf3
deps: Update github.com/tdewolff/minify/v2 v2.9.20 => v2.9.21
...
Closes #8831
2021-08-02 17:27:07 +02:00
Bjørn Erik Pedersen
6c70e1f22f
Fix error handling for the time func alias
...
Fixes #8835
2021-08-01 13:39:30 +02:00
Bjørn Erik Pedersen
4d221ce468
Fail on invalid time zone
...
Fixes #8832
2021-08-01 13:39:30 +02:00
Bjørn Erik Pedersen
e3dc5240f0
Improve handling of <nil> Params
...
Fixes #8825
2021-07-30 21:07:52 +02:00
Bjørn Erik Pedersen
268065cb2d
Merge branch 'release-0.86.1'
2021-07-30 12:58:26 +02:00
hugoreleaser
e0304c06ed
releaser: Add release notes for 0.86.1
...
[ci skip]
2021-07-30 12:58:03 +02:00
hugoreleaser
7aa8b1cd7d
releaser: Prepare repository for 0.87.0-DEV
...
[ci skip]
2021-07-30 10:54:50 +00:00
hugoreleaser
f6821b88ab
releaser: Add release notes to /docs for release of 0.86.1
...
[ci skip]
2021-07-30 10:13:32 +00:00
hugoreleaser
580d320a66
releaser: Bump versions for release of 0.86.1
...
[ci skip]
2021-07-30 10:13:32 +00:00
hugoreleaser
b75d4526e4
releaser: Add release notes for 0.86.1
...
[ci skip]
2021-07-30 10:13:32 +00:00
Bjørn Erik Pedersen
94b616bdfa
config: Fix a potential deadlock in config reading
...
Note that the deadlock has not been seen earlier, in tests on in real Hugo sites.
Fixes #8791
2021-07-30 11:53:27 +02:00
dependabot[bot]
e90b3591a1
build(deps): bump github.com/evanw/esbuild from 0.12.16 to 0.12.17
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.12.16 to 0.12.17.
- [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.12.16...v0.12.17 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-30 11:11:10 +02:00
dependabot[bot]
4b7da6a9d7
build(deps): bump github.com/getkin/kin-openapi from 0.67.0 to 0.68.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.67.0 to 0.68.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.67.0...v0.68.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-30 11:10:45 +02:00
Bjørn Erik Pedersen
7907d24ba1
tpl/lang: Add new localized versions of lang.FormatNumber etc.
...
Fixes #8820
2021-07-29 16:40:06 +02:00
Bjørn Erik Pedersen
726fe9c3c9
Go back to WARNING for Page deprecations
...
Do that in the next release, let's reduce the noise, we have enough changes as it is.
2021-07-29 16:18:38 +02:00
Bjørn Erik Pedersen
b5de37ee79
Handle toml.LocalDate and toml.LocalDateTime in front matter
...
See #8801
2021-07-28 18:02:42 +02:00
Bjørn Erik Pedersen
bf301daf15
deps: Upgrade github.com/pelletier/go-toml/v2 v2.0.0-beta.3 => v2.0.0-beta.3.0.20210727221244-fa0796069526
2021-07-28 17:27:31 +02:00
Bjørn Erik Pedersen
a3701e0931
Switch to go-toml v2
...
We have been using `go-toml` for language files only. This commit makes it the only TOML library.
It's spec compliant and very fast.
A benchark building a site with 200 pages with TOML front matter:
```bash
name old time/op new time/op delta
SiteNew/Regular_TOML_front_matter-16 48.5ms ± 1% 47.1ms ± 1% -2.85% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_TOML_front_matter-16 16.9MB ± 0% 16.7MB ± 0% -1.56% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_TOML_front_matter-16 302k ± 0% 296k ± 0% -2.20% (p=0.029 n=4+4)
```
Note that the front matter unmarshaling is only a small part of building a site, so the above is very good.
Fixes #8801
2021-07-28 11:51:13 +02:00
dependabot[bot]
40b6016cf3
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.19 to 2.9.20
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.19 to 2.9.20.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.19...v2.9.20 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-28 11:21:50 +02:00
Bjørn Erik Pedersen
7e1305710f
Add a TOML front matter benchmark
2021-07-27 19:27:54 +02:00
Bjørn Erik Pedersen
efa5760db5
Add timezone support for front matter dates without one
...
Fixes #8810
2021-07-27 19:02:48 +02:00
Bjørn Erik Pedersen
a57dda854b
Localize time.Format
...
Fixes #8797
2021-07-27 19:02:48 +02:00
dependabot[bot]
f9afba9335
build(deps): bump github.com/getkin/kin-openapi from 0.61.0 to 0.67.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.61.0 to 0.67.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.61.0...v0.67.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 16:25:09 +02:00
dependabot[bot]
a5d2ba429d
build(deps): bump github.com/spf13/cast from 1.3.1 to 1.4.0
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.3.1...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cast
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 15:37:30 +02:00
dependabot[bot]
31972f3647
build(deps): bump google.golang.org/api from 0.45.0 to 0.51.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.45.0 to 0.51.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.45.0...v0.51.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 15:04:20 +02:00
dependabot[bot]
2e58782f96
build(deps): bump github.com/sanity-io/litter from 1.5.0 to 1.5.1
...
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/sanity-io/litter/releases )
- [Changelog](https://github.com/sanity-io/litter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sanity-io/litter/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: github.com/sanity-io/litter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 15:01:24 +02:00
dependabot[bot]
7b68f6524d
build(deps): bump github.com/mattn/go-isatty from 0.0.12 to 0.0.13
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.12 to 0.0.13.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.12...v0.0.13 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 14:58:39 +02:00
dependabot[bot]
81265af2cc
build(deps): bump github.com/spf13/cobra from 1.1.3 to 1.2.1
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.1.3 to 1.2.1.
- [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.3...v1.2.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 14:05:28 +02:00
dependabot[bot]
c102c9719b
build(deps): bump github.com/mitchellh/mapstructure from 1.3.3 to 1.4.1
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.3.3 to 1.4.1.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.3.3...v1.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 13:16:44 +02:00
dependabot[bot]
7c0f904f29
build(deps): bump github.com/google/go-cmp from 0.5.5 to 0.5.6
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.5...v0.5.6 )
---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 12:42:16 +02:00
dependabot[bot]
b2fbd4d13a
build(deps): bump github.com/mitchellh/hashstructure from 1.0.0 to 1.1.0
...
Bumps [github.com/mitchellh/hashstructure](https://github.com/mitchellh/hashstructure ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/mitchellh/hashstructure/releases )
- [Commits](https://github.com/mitchellh/hashstructure/compare/v1.0.0...v1.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 12:36:11 +02:00
dependabot[bot]
90041d1b6d
build(deps): bump github.com/gobuffalo/flect from 0.2.2 to 0.2.3
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.2...v0.2.3 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 10:07:34 +02:00
dependabot[bot]
05047096f5
build(deps): bump github.com/pelletier/go-toml from 1.9.0 to 1.9.3
...
Bumps [github.com/pelletier/go-toml](https://github.com/pelletier/go-toml ) from 1.9.0 to 1.9.3.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v1.9.0...v1.9.3 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 09:37:05 +02:00
dependabot[bot]
a469156ea4
build(deps): bump github.com/aws/aws-sdk-go from 1.38.23 to 1.40.8
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.23 to 1.40.8.
- [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.38.23...v1.40.8 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-26 21:21:26 +02:00
dependabot[bot]
18fdd85bcc
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.18 to 2.9.19
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.18 to 2.9.19.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.18...v2.9.19 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-26 20:23:32 +02:00
Bjørn Erik Pedersen
aeb1935d44
deps: Update github.com/evanw/esbuild v0.11.16 => v0.12.16
2021-07-26 20:23:00 +02:00
Bjørn Erik Pedersen
c7252224c4
Deprecate Blackfriday and fix a potential deadlock in config
...
Note that the deadlock has not been seen earlier, in tests on in real Hugo sites.
Fixes #8792
Fixes #8791
2021-07-26 16:28:16 +02:00
Bjørn Erik Pedersen
e09d7882c8
deps: Update github.com/yuin/goldmark v1.3.9 => v1.4.0
2021-07-26 14:54:56 +02:00
dependabot[bot]
15c0eed048
build(deps): bump github.com/frankban/quicktest from 1.12.0 to 1.13.0
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.12.0...v1.13.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-26 11:31:33 +02:00
Bjørn Erik Pedersen
91cbb96302
Bump all long-living deprecations to ERRORs
2021-07-25 17:17:21 +02:00
Digitalcraftsman
a352d19d88
Fix theme count in release notes
2021-07-21 16:35:38 +02:00
hugoreleaser
11bb67dcfd
releaser: Prepare repository for 0.87.0-DEV
...
[ci skip]
2021-07-21 11:13:04 +00:00
hugoreleaser
41c6c52ead
releaser: Add release notes to /docs for release of 0.86.0
...
[ci skip]
2021-07-21 09:53:11 +00:00
hugoreleaser
d270eaf4fc
releaser: Bump versions for release of 0.86.0
...
[ci skip]
2021-07-21 09:53:11 +00:00
Bjørn Erik Pedersen
b2e67505f8
Release 0.86.0
2021-07-21 11:37:16 +02:00
Bjørn Erik Pedersen
32508045d3
navigation: Check Page first in URL()
...
In Hugo #8776 we added `pageRef`, a way to connect menu items in site config to pages.
This means that you now can have both a Page and a configured URL.
Having the configured URL as a fallback if the Page isn't found is obviously more useful, especially in multilingual sites.
See #8776
2021-07-21 11:36:15 +02:00
Bjørn Erik Pedersen
e521c9a36d
Update 0.86.0-relnotes.md
...
[ci skip]
2021-07-21 11:28:32 +02:00
hugoreleaser
dfb1cc4315
releaser: Add release notes for 0.86.0
...
Rename to *-ready.md to continue.
[ci skip]
2021-07-21 09:04:02 +00:00
Bjørn Erik Pedersen
0294a4a4f8
Merge commit '53a352795a69a9d4a373f50ec62138595948c6ea'
2021-07-21 10:45:53 +02:00
Bjørn Erik Pedersen
53a352795a
Squashed 'docs/' changes from 6ebb5dad9..60a58d123
...
60a58d123 Remove outdated references in scss-sass.md
225a03834 Revert "Update menus.md"
7d149dd1e Update menus.md
3694ecafc Fix theme submission process/repository
0277c202c Update index.md - fix typo (#1490 )
8921f0462 Fix link to theme components in 0.42 release notes (#1489 )
c948bd519 Release 0.85.0
ee5bc5be9 releaser: Add release notes to /docs for release of 0.85.0
f2f692c32 commands: Make the --poll flag a duration
13070337a docs: Regen CLI docs
git-subtree-dir: docs
git-subtree-split: 60a58d123d
2021-07-21 10:45:05 +02:00
Bjørn Erik Pedersen
351ed0f569
commands: Fix panic on invalid config in "hugo mod get" and similar
...
Fixes #8773
2021-07-20 18:23:09 +02:00
Bjørn Erik Pedersen
d831d2fce8
Simplify "active menu" logic for section menus
...
Fixes #8776
2021-07-20 17:50:59 +02:00
Bjørn Erik Pedersen
634481ba8c
Fix Params case handling for menu items defined in site config
...
Fixes #8775
2021-07-20 17:50:59 +02:00
Bjørn Erik Pedersen
c19f65f956
minifiers: Make keepWhitespace = true default for HTML
...
Fixes #8771
2021-07-19 23:35:20 +02:00
Bjørn Erik Pedersen
022c479551
hugofs: Make FileMeta a struct
...
This commit started out investigating a `concurrent map read write` issue, ending by replacing the map with a struct.
This is easier to reason about, and it's more effective:
```
name old time/op new time/op delta
SiteNew/Regular_Deep_content_tree-16 71.5ms ± 3% 69.4ms ± 5% ~ (p=0.200 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Deep_content_tree-16 29.7MB ± 0% 27.9MB ± 0% -5.82% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Deep_content_tree-16 313k ± 0% 303k ± 0% -3.35% (p=0.029 n=4+4)
```
See #8749
2021-07-15 17:14:26 +02:00
rhymes
f27e542442
markup: Add tabindex="0" to default <pre> wrapper
...
Currently the generated `<pre>` element isn't fully accessible as it can't be focused by keyboard users.
To make this fully accessible, the attribute `tabindex="0"` should be added to the `<pre>` tag.
Closes #7194
2021-07-15 16:48:39 +02:00
Bjørn Erik Pedersen
ae6cf93c84
Fix default values when loading from config dir
...
By waiting until we've loaded the config dir config before applying the default values.
Fixes #8763
2021-07-15 16:15:32 +02:00
Bjørn Erik Pedersen
a70da2b74a
Fix the deprecation error/warn log levels
2021-07-15 12:24:20 +02:00
Bjørn Erik Pedersen
805664818d
markup/goldmark: Rename/reorder the hook methods
...
To make them easier to follow.
See #8755
2021-07-15 10:14:52 +02:00
Bjørn Erik Pedersen
ee3d2bb1d3
markup/goldmark: Support auto links in render hook
...
Fixes #8755
2021-07-15 10:14:52 +02:00
Bjørn Erik Pedersen
eb2a500367
Adjust a test helper
2021-07-14 21:47:26 +02:00
Bjørn Erik Pedersen
5cb52c2315
Add config.cascade
...
This commit adds support for using the `cascade` keyword in your configuration file(s), e.g. `config.toml`.
Note that
* Every feature of `cascade` is available, e.g. `_target` to target specific page sets.
* Pages, e.g. the home page, can overwrite the cascade defined in config.
Fixes #8741
2021-07-10 11:13:41 +02:00
Bjørn Erik Pedersen
30eea3915b
resources: Regenerate image golden testdata
...
Keep this as a separate commit as this isn't because the files have changed. The filenames have changed due to cache busting of PNG and Webp images.
See #8729
2021-07-07 17:25:14 +02:00
Bjørn Erik Pedersen
8f40f34cd1
Fix transparency problem when converting 32-bit images to WebP
...
Fixes #8729
2021-07-07 17:25:14 +02:00
hugoreleaser
8ddbc95466
releaser: Prepare repository for 0.86.0-DEV
...
[ci skip]
2021-07-05 11:37:38 +00:00
hugoreleaser
724d5db580
releaser: Add release notes to /docs for release of 0.85.0
...
[ci skip]
2021-07-05 10:46:25 +00:00
hugoreleaser
875fe4050c
releaser: Bump versions for release of 0.85.0
...
[ci skip]
2021-07-05 10:46:25 +00:00
Bjørn Erik Pedersen
56362e4bc7
Update 0.85.0-relnotes.md
2021-07-05 12:38:14 +02:00
hugoreleaser
f5cfb9e251
releaser: Add release notes for 0.85.0
...
Rename to *-ready.md to continue.
[ci skip]
2021-07-05 10:27:32 +00:00
John Hollowell
04dc469fbd
commands: Move time notification to after any build errors
...
This allows error parsers (VSCode problemMatchers) to use the time notification as bounds for detecting errors.
Closes #8403
2021-07-05 10:38:54 +02:00
Brandon Woodford
07919d1ccb
exif: Log warning for metadata decode error
...
see #8519
2021-07-05 10:31:35 +02:00
Raoul
f75f90079a
Fix tab selection of disabled items in internal pagination template
2021-07-05 10:30:59 +02:00
Bjørn Erik Pedersen
e31b1d1946
commands: Make the --poll flag a duration
...
So you can do:
```
hugo server --poll 700ms
```
See #8720
2021-07-05 10:23:29 +02:00
Bjørn Erik Pedersen
43a23239b2
docs: Regen CLI docs
2021-07-04 16:35:21 +02:00
Bjørn Erik Pedersen
4479f09c9c
Merge commit '7eb0e10a80708c638554b8221a3120dc1168566c'
2021-07-04 16:34:53 +02:00
Bjørn Erik Pedersen
7eb0e10a80
Squashed 'docs/' changes from 710856e5a..6ebb5dad9
...
6ebb5dad9 Remove file
27cc23ef4 Hugo 0.84.4
94dccbfa4 Merge branch 'tempv0.84.4'
e9d8b61fb releaser: Add release notes to /docs for release of 0.84.4
51e472005 Improve readability of examples on shortcode templates page
0aef26479 Fix lookup order typos (#1484 )
534a527fe Fix two typos (#1483 )
394aabd5a Higo "0.84.3
03ee92c1c Merge branch 'tempv0.84.3'
96a8be0f1 releaser: Add release notes to /docs for release of 0.84.3
9a770323f Update index.md
7f65cfcbe Hugo 0.84.2
444422515 releaser: Add release notes to /docs for release of 0.84.2
a2f29c5d8 modules: Add module.import.noMounts config
e00e4a7e7 releaser: Add release notes to /docs for release of 0.84.2
af04b53b3 modules: Add module.import.noMounts config
f7d5669c7 Remove Appernetic (#1481 )
14f8d4029 Clarify interaction of sections and top-level leaf bundles
d140b6a62 Update lookup-order.md
399904959 Update shortcode-templates.md
e78aa4865 Hugo 0.84.1
35d7c1c22 Merge branch 'tempv0.84.1'
a6be65b0d releaser: Add release notes to /docs for release of 0.84.1
7b3b3ca45 Hugo 0.84.0 News Grammar fixes
cbc23bf5a Remove trailing newlines
69349198d Fix erroridf docs
dbc1157c1 Fix missing deep
git-subtree-dir: docs
git-subtree-split: 6ebb5dad9a
2021-07-04 16:34:26 +02:00
Bjørn Erik Pedersen
24ce98b6d1
Add polling as a fallback to native filesystem events in server watch
...
Fixes #8720
Fixes #6849
Fixes #7930
2021-07-04 16:12:28 +02:00
Bjørn Erik Pedersen
0019d60f67
deps: Bump github.com/yuin/goldmark v1.3.9
...
Closes #8727
2021-07-04 15:48:33 +02:00
Bjørn Erik Pedersen
e451b984cf
Fix panic when theme has permalinks config
...
Fixes #8724
2021-07-03 15:53:21 +02:00
hugoreleaser
b4d60b3db1
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-07-01 12:59:47 +00:00
hugoreleaser
020e4acee4
releaser: Add release notes to /docs for release of 0.84.4
...
[ci skip]
2021-07-01 11:51:53 +00:00
hugoreleaser
4c34faf426
releaser: Bump versions for release of 0.84.4
...
[ci skip]
2021-07-01 11:51:53 +00:00
hugoreleaser
a339f62664
releaser: Add release notes for 0.84.4
...
[ci skip]
2021-07-01 11:51:53 +00:00
Bjørn Erik Pedersen
4c8552b114
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
2021-06-30 12:58:43 +02:00
Joe Mooring
34e4742f0c
Fix date format in schema and opengraph templates
...
Fixes #8671
2021-06-29 20:20:38 +02:00
hugoreleaser
bffa2a2a98
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-06-29 12:27:15 +00:00
hugoreleaser
a1b0353ccb
releaser: Add release notes to /docs for release of 0.84.3
...
[ci skip]
2021-06-29 11:40:19 +00:00
hugoreleaser
bc6f84c581
releaser: Bump versions for release of 0.84.3
...
[ci skip]
2021-06-29 11:40:19 +00:00
hugoreleaser
80410257e3
releaser: Add release notes for 0.84.3
...
[ci skip]
2021-06-29 11:40:19 +00:00
Bjørn Erik Pedersen
6c8c0c8b6a
config: Fix Netlify default cache dir logic
...
Fixes #8710
2021-06-29 09:51:09 +02:00
Bjørn Erik Pedersen
49fedbc51c
config: Fix handling of invalid OS env config overrides
...
Fixes #8709
2021-06-29 09:38:05 +02:00
hugoreleaser
8290720107
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-06-28 11:41:38 +00:00