Bjørn Erik Pedersen
0257eb50a4
Avoid impporting deploy from config when nodeploy tag is set
...
Test:
```
go list -tags nodeploy ./... | grep deploy
```
Fixes #12009
2024-02-07 20:38:13 +01:00
Bjørn Erik Pedersen
a65622a13e
Fix rebuild of changed bundled content files
...
Fixes #12000
2024-02-06 21:53:33 +01:00
Bjørn Erik Pedersen
146aedd7aa
Fix site.Taxonomies for taxonomies with space in name
...
Fixes #12001
2024-02-06 18:17:30 +01:00
Bjørn Erik Pedersen
bd0200da6e
commands: Remove unused memstats flag
2024-02-05 19:06:27 +01:00
Bjørn Erik Pedersen
a80c3021ba
source: Remove unused Filesystem struct
2024-02-05 15:03:03 +01:00
Bjørn Erik Pedersen
9df7b295bc
Filter dot files etc. in i18n
...
Closes #11993
2024-02-05 14:54:02 +01:00
Bjørn Erik Pedersen
c37bf19c89
commands: Revert the recent changes that allowed profiling on server rebuilds
...
There have been indications that this may freeze the server.
2024-02-05 14:27:35 +01:00
Bjørn Erik Pedersen
9c6d377872
commands: Make the server flag --renderToDisk into --renderToMemory (note)
...
Fixes #11987
2024-02-05 14:04:17 +01:00
dependabot[bot]
58d7f83390
build(deps): bump github.com/yuin/goldmark from 1.6.0 to 1.7.0
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-05 11:48:46 +01:00
Bjørn Erik Pedersen
609d798e34
Handle resource changes when the resources is already evicted from cache
...
Also fix a logical flaw in the cache resizer that made it too aggressive. After this I haven't been able to reproduce #11988 , but I need to look closer.
Closes #11973
Updates #11988
2024-02-04 16:55:06 +01:00
Bjørn Erik Pedersen
53f204310e
all: Rename Unmormalized => Unnormalized
2024-02-03 18:10:38 +01:00
Joe Mooring
7f82461407
hugolib: Formally deprecate .Page.NextPage .Page.PrevPage
...
Use .Page.Next and .Page.Prev instead.
2024-02-03 17:28:52 +01:00
Bjørn Erik Pedersen
b72f909725
hugio: Rename strigReadSeeker => stringReadSeeker
2024-02-03 17:25:34 +01:00
Joe Mooring
3a665ddbf9
resources/page: Formally deprecate .Site.LastChange
...
Use .Site.Lastmod instead.
2024-02-03 17:11:06 +01:00
Bjørn Erik Pedersen
46575baa02
Preserve file/dir name case when loading data
...
Fixes #11979
2024-02-03 16:30:10 +01:00
Bjørn Erik Pedersen
058f230a1b
Detect now invalid path patterns in cascade
...
Closes #11977
2024-02-03 15:07:59 +01:00
Bjørn Erik Pedersen
a66480f70c
Handle build vs _build in front matter
...
* Throw a detailed error message in the mentioned case
* Also fixed a dropped error
Fixes #11970
2024-02-03 15:07:59 +01:00
Bjørn Erik Pedersen
e33a632551
resources: Optimize reading resource Content when it's already a string
2024-02-03 15:07:59 +01:00
Bjørn Erik Pedersen
2873324898
Misc resource fixes/improvements
...
* Add --pprof flag to server to enable profile debugging.
* Don't cache the resource content, it seem to eat memory on bigger sites.
* Keep --printMemoryUsag running in server
Fixes #11974
2024-02-02 18:46:23 +01:00
Joe Mooring
d0788b96ae
tpl/tplimpl: Update embedded instagram, twitter, and vimeo shortcodes
...
- Replace data.GetJSON calls with resources.GetRemote
- Remove usage of Facebook’s oEmbed Read feature
Fixes #11971
2024-02-02 08:01:45 +01:00
Bjørn Erik Pedersen
034fbef50d
Add some more context to error
...
Updates #11970
2024-02-01 21:40:32 +01:00
dependabot[bot]
54ad51e8a6
build(deps): bump github.com/getkin/kin-openapi from 0.122.0 to 0.123.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.122.0 to 0.123.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.122.0...v0.123.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>
2024-02-01 19:56:04 +01:00
dependabot[bot]
bd1bcc0f91
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.13 to 2.20.16
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.13 to 2.20.16.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.13...v2.20.16 )
---
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>
2024-02-01 19:55:31 +01:00
Bjørn Erik Pedersen
8d42a7942a
Improve nilpointer error message
2024-02-01 19:53:51 +01:00
Bjørn Erik Pedersen
4174a7866b
Fix disabled languages regression
...
Fixes #11959
2024-02-01 19:42:55 +01:00
Joe Mooring
5dd06b4136
tpl/data: Fix GetCSV deprecation message
2024-02-01 19:21:15 +01:00
Bjørn Erik Pedersen
f5ec75db36
hugolib: Adjust a test case
2024-02-01 18:20:13 +01:00
Joe Mooring
6cb3bda3d1
hugolib: Revert deprecation of .Page.Lang
...
Deprecation message was also emitted when calling .Page.Language.Lang.
Reverting for now, but will remove all references to .Page.Lang from
documentation.
2024-02-01 18:00:50 +01:00
Joe Mooring
963cecc12c
all: Deprecate .Page.Lang and .Page.File.Lang
...
Use .Page.Language.Lang instead.
2024-02-01 17:12:52 +01:00
Bjørn Erik Pedersen
d8f0e30715
Fix failing test on Windows
2024-02-01 15:10:52 +01:00
Joe Mooring
b6def61727
config/security: Add SYSTEMDRIVE to OsEnv allowlist
2024-02-01 15:10:05 +01:00
Bjørn Erik Pedersen
1891d5e6b5
hugolib: Add some more details to the "paginator not supported" error
...
See #11949
2024-02-01 08:18:11 +01:00
Bjørn Erik Pedersen
156f08de35
Run go mod tidy
2024-02-01 08:08:58 +01:00
dependabot[bot]
b332f243fd
build(deps): bump github.com/evanw/esbuild from 0.19.12 to 0.20.0
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.12 to 0.20.0.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.19.12...v0.20.0 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 22:13:09 +01:00
Bjørn Erik Pedersen
d8c2734178
deploy: Fix CloudFront invalidation with AWS SDK2
2024-01-31 22:12:48 +01:00
Bjørn Erik Pedersen
d8e1e82188
deps: Update gocloud.dev/aws
2024-01-31 22:12:48 +01:00
Franky W
a1c64989df
Upgrade to deploy to use AWS SDK V2
2024-01-31 22:12:48 +01:00
Bjørn Erik Pedersen
6c3b6ba3e6
Improve error message when attempting to paginate from a single page template
...
Fixes #11953
2024-01-31 16:54:34 +01:00
dependabot[bot]
4d98b0ed6a
build(deps): bump github.com/aws/aws-sdk-go from 1.48.6 to 1.50.7
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.48.6 to 1.50.7.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.48.6...v1.50.7 )
---
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>
2024-01-31 13:43:46 +01:00
dependabot[bot]
15b9976b7a
build(deps): bump golang.org/x/image from 0.14.0 to 0.15.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/image/compare/v0.14.0...v0.15.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 13:42:24 +01:00
Bjørn Erik Pedersen
34d63c8d1c
Fix build error
2024-01-31 13:00:56 +01:00
Bjørn Erik Pedersen
51615440bf
docs: Make null booleans falsy in the docs helper
2024-01-31 12:34:28 +01:00
Bjørn Erik Pedersen
bd66d30295
Filter out duplicate content resource files
...
We do a slight normalisation of the content paths (lower case, replacing " " with "-") and remove andy language identifier before inserting them into the content tree.
This means that, given that that the default content language is `en`:
```
index.md
index.html
Foo Bar.txt
foo-bar.txt
foo-bar.en.txt
Foo-Bar.txt
```
The bundle above will be reduced to one content file with one resource (`foo-bar.txt`).
Before this commit, what version of the `foo-bar.txt` you ended up with was undeterministic. No we pick the first determined by sort order.
Note that the sort order is stable, but we recommend avoiding situations like the above.
Closes #11946
2024-01-31 10:06:04 +01:00
Bjørn Erik Pedersen
7caa5b3e50
docs: Regen docs helper
2024-01-31 09:45:35 +01:00
Bjørn Erik Pedersen
309d61b220
output: Prevent setting Name directly in new output formats
...
Name is derived from the map key.
Closes #11947
2024-01-31 09:43:02 +01:00
Bjørn Erik Pedersen
5b7cb258ec
Create default link and image render hooks
...
Fixes #11933
2024-01-30 20:12:19 +01:00
Bjørn Erik Pedersen
80595bbe3e
Fix recent regression .Resources.Get for resources with spaces in filename
...
Fixes #11944
2024-01-30 20:12:03 +01:00
Bjørn Erik Pedersen
afee781f03
Emit a warning that can be turned off when overwriting built-in .Params values
...
Fixes #11941
2024-01-30 20:12:03 +01:00
Bjørn Erik Pedersen
4e84f57efb
Add warnidf template function
...
Also rename config `ignoreErrors` => `ignoreLogs`
But the old still works.
Closes #9189
2024-01-30 20:12:03 +01:00
Bjørn Erik Pedersen
f31a6db797
Add path, kind and lang to content front matter
...
Note that none of these can be set via cascade (you will get an error)
Fixes #11544
2024-01-30 20:12:03 +01:00