hugoreleaser
1904ba40e8
releaser: Bump versions for release of 0.123.5
...
[ci skip]
2024-02-28 15:47:09 +00:00
Bjørn Erik Pedersen
6a8b25e291
Fix .Page.Pages with similary named sections
...
Fixes #12169
2024-02-28 16:43:19 +01:00
Bjørn Erik Pedersen
a322282e70
Fix single mount rename panic
...
Fixes #12141
2024-02-28 13:38:12 +01:00
Bjørn Erik Pedersen
6bc0d745a5
Fix multihost processed image not copied to non-default content languages
...
Fixes #12163
2024-02-27 10:43:23 +01:00
dependabot[bot]
218690328c
build(deps): bump github.com/bep/overlayfs from 0.9.1 to 0.9.2
...
Bumps [github.com/bep/overlayfs](https://github.com/bep/overlayfs ) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/bep/overlayfs/releases )
- [Commits](https://github.com/bep/overlayfs/compare/v0.9.1...v0.9.2 )
---
updated-dependencies:
- dependency-name: github.com/bep/overlayfs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 09:59:15 +01:00
hugoreleaser
673c634131
releaser: Prepare repository for 0.124.0-DEV
...
[ci skip]
2024-02-26 16:46:48 +00:00
hugoreleaser
21a41003c4
releaser: Bump versions for release of 0.123.4
...
[ci skip]
2024-02-26 16:33:05 +00:00
Bjørn Erik Pedersen
1736ef7459
Fix cascade-pattern-with-extension for cascade in site config
...
Also clean up the log handling in the integration tester, most notably lost logs during the config loading.
Fixes #12151
2024-02-26 17:29:37 +01:00
dependabot[bot]
d4be1643a0
build(deps): bump github.com/spf13/fsync from 0.10.0 to 0.10.1
...
Bumps [github.com/spf13/fsync](https://github.com/spf13/fsync ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/spf13/fsync/releases )
- [Commits](https://github.com/spf13/fsync/compare/v0.10.0...v0.10.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/fsync
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-26 17:08:34 +01:00
Bjørn Erik Pedersen
f27e578718
Fix term template lookup when its backed by a content file
...
Closes #12146
2024-02-25 18:28:16 +01:00
Bjørn Erik Pedersen
d310595a2b
resource: Revert the normalization of Resource.Name
...
Which means that .Name now returns the same as it did in 0.122.0.
Closes #12142
2024-02-25 14:57:29 +01:00
Bjørn Erik Pedersen
049dd1d7e0
Fix panic for disableKinds page for content resources
...
Fixes #12144
2024-02-25 11:38:52 +01:00
Bjørn Erik Pedersen
189b72331e
tocss: Fix the import resolving from absolute to relative assets paths
...
Fixes #12137
2024-02-24 16:41:18 +01:00
Bjørn Erik Pedersen
b2b7bfdd3a
Maek Resoyrce.Key as (mostly) internal
2024-02-24 15:17:15 +01:00
Joe Mooring
80e69344da
config/allconfig: Fix typo
...
Closes #12134
2024-02-23 12:40:15 -08:00
hugoreleaser
7508a16470
releaser: Prepare repository for 0.124.0-DEV
...
[ci skip]
2024-02-23 17:22:38 +00:00
hugoreleaser
a75a659f6f
releaser: Bump versions for release of 0.123.3
...
[ci skip]
2024-02-23 17:09:20 +00:00
Bjørn Erik Pedersen
03b88c6ddb
cache/dynacache: Reset ticker in case one cache eviction takes some time
...
Updates #12129
2024-02-23 17:56:29 +01:00
Bjørn Erik Pedersen
7ee0f70507
Revert "cache/dynacache: Prevent multiple concurrent resizes"
...
This reverts commit 564bae06f6 .
Thinking about it, the above doesn't make any sense/having any effect.
2024-02-23 17:44:32 +01:00
Bjørn Erik Pedersen
564bae06f6
cache/dynacache: Prevent multiple concurrent resizes
...
Updates #12129
2024-02-23 17:27:52 +01:00
Bjørn Erik Pedersen
bf14d0cb26
Speed up GetPage
...
```
name old time/op new time/op delta
GetPage-10 413ns ± 0% 287ns ± 1% -30.47% (p=0.029 n=4+4)
GetPageRegular/From_root-10 757ns ± 1% 706ns ± 1% -6.75% (p=0.029 n=4+4)
GetPageRegular/Page_relative-10 838ns ± 1% 786ns ± 1% -6.16% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
GetPage-10 312B ± 0% 24B ± 0% -92.31% (p=0.029 n=4+4)
GetPageRegular/From_root-10 328B ± 0% 200B ± 0% -39.02% (p=0.029 n=4+4)
GetPageRegular/Page_relative-10 360B ± 0% 232B ± 0% -35.56% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
GetPage-10 8.00 ± 0% 2.00 ± 0% -75.00% (p=0.029 n=4+4)
GetPageRegular/From_root-10 7.00 ± 0% 5.00 ± 0% -28.57% (p=0.029 n=4+4)
GetPageRegular/Page_relative-10 9.00 ± 0% 7.00 ± 0% -22.22% (p=0.029 n=4+4)
```
2024-02-23 16:29:21 +01:00
Bjørn Erik Pedersen
f521336c81
hugolib: Fix a .Page.GetPage from bundle case
...
Fixes #12120
2024-02-23 14:40:29 +01:00
Bjørn Erik Pedersen
c4fe45ff4c
resources: Skip the image golden tests when running locally
...
See #12119
2024-02-23 10:30:11 +01:00
Benjamin Altpeter
554aa58db6
js: Support JSX and JSXImportSourceOptions
...
Fixes #12118
2024-02-23 10:25:27 +01:00
Joe Mooring
36bf3cb98c
hugolib: Add capitalizeListTitles config option
...
Whether to capitalize automatic page titles, applicable to section,
taxonomy, and term pages. Default is true.
Closes #9793
Closes #12115
2024-02-23 09:32:32 +01:00
hugoreleaser
ea0ba9751d
releaser: Prepare repository for 0.124.0-DEV
...
[ci skip]
2024-02-22 15:41:43 +00:00
hugoreleaser
929b91fe75
releaser: Bump versions for release of 0.123.2
...
[ci skip]
2024-02-22 15:27:15 +00:00
Bjørn Erik Pedersen
db3bb623d4
Fix it so not all bundled resources are removed when one translation is drafted
...
Fixes #12105
2024-02-22 16:16:44 +01:00
Razon Yang
f5fd7ec8cc
commands/mod: Ignore invalid module path
2024-02-22 16:00:03 +01:00
Bjørn Erik Pedersen
16406d9d77
Fix regression on handling of overlapping file mounts
...
But note that the overlay file system is set up horizontally (project -> module1 -> module2), so I would not recommend too complex overlapping mount setups within the same module.
But this worked in v0.122.0, so we should fix it.
Fixes #12103
2024-02-22 15:36:27 +01:00
Bjørn Erik Pedersen
e75784930d
Sitemap should not use list.xml
...
Fixes #12101
2024-02-21 20:07:51 +01:00
Bjørn Erik Pedersen
b8ab5c9be6
Fix rebuild when adding a bundle with space in name
...
Fixes #12092
2024-02-21 17:49:15 +01:00
Bjørn Erik Pedersen
cf7023cb90
Fix relative import issue in libsass/dart sass
...
Fixes #12094
2024-02-21 17:27:45 +01:00
Bjørn Erik Pedersen
fd0185a84a
Fix relref regression with trailing slash
...
Fixes #12096
2024-02-21 17:27:45 +01:00
hugoreleaser
6da1d8f370
releaser: Prepare repository for 0.124.0-DEV
...
[ci skip]
2024-02-21 08:30:57 +00:00
hugoreleaser
3f8434a62f
releaser: Bump versions for release of 0.123.1
...
[ci skip]
2024-02-21 08:17:45 +00:00
Joe Mooring
c9f7ebf004
tpl/tplimpl: Resolve fragments in link render hook
...
Fixes #12084
2024-02-21 09:11:34 +01:00
Bjørn Erik Pedersen
eceeb19751
Fix rebuilding of pages without default content language
...
Fixes #12082
2024-02-20 18:42:14 +01:00
Bjørn Erik Pedersen
621194a319
Fix dart sass import regression
...
Fixes #12072
2024-02-20 17:00:32 +01:00
Bjørn Erik Pedersen
48eec2a4e6
Fall back to original name in Resources.GetMatch/Match
...
Same as we do in .Get.
Fixes #12076
2024-02-20 16:47:07 +01:00
Bjørn Erik Pedersen
a118cb4138
Fix robots.txt using the built-in template regression
...
Fixes #12071
2024-02-20 11:17:44 +01:00
Bjørn Erik Pedersen
e8cc785a58
Merge commit '2658a71e1b6fe24a8b754a62ce0398a09d270d86'
2024-02-19 18:59:28 +01:00
Bjørn Erik Pedersen
2658a71e1b
Squashed 'docs/' changes from a9584e3d1..8c46b304a
...
8c46b304a Correct description of build options > render > link
f57932df1 Fix front matter example
a7e5fea73 Clarify pagination restriction
3a7e665db Fix typos
f60845249 List translation keys reserved by nicksnyder/go-i18n
94f2a3608 Fix typo
2da1198ac Update FNV32a.md: new-in 0.98.0
d9a4c66ae Fix typo data-templates.md
0d3c2e2c3 Update partials.md
d7e9a0878 Update partials.md
git-subtree-dir: docs
git-subtree-split: 8c46b304a0
2024-02-19 18:59:28 +01:00
hugoreleaser
8406a3e9dc
releaser: Bump versions for release of 0.123.0
...
[ci skip]
2024-02-19 17:28:48 +00:00
dependabot[bot]
f54ba6f9ef
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.16 to 2.20.17
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.16 to 2.20.17.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.16...v2.20.17 )
---
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-19 17:21:17 +01:00
dependabot[bot]
4019b177e6
build(deps): bump github.com/evanw/esbuild from 0.20.0 to 0.20.1
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.20.0 to 0.20.1.
- [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.20.0...v0.20.1 )
---
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 >
2024-02-19 17:12:14 +01:00
Bjørn Erik Pedersen
5dbc29dc6c
Handle rebuilds when resources passed to transform.Unmarshal etc. changes
...
Fixes #12065
2024-02-19 14:50:23 +01:00
Bjørn Erik Pedersen
5ada27bf65
Fix handling of build options for term pages
...
Fixes #12058
2024-02-18 16:50:35 +01:00
Bjørn Erik Pedersen
60b176cb57
docs: Regen docshelper
2024-02-18 13:20:15 +01:00
Bjørn Erik Pedersen
afe5b6d7df
Fix sample logic when adding content files in server
...
The partial rebuilds works by calaulating a baseline from a change set.
For new content, this doesn't work, so to avoid rebuilding everything, we first
try to collect a sample of surrounding identities (e.g. content files in the same section).
This commit fixes a flaw in that logic that in some (many...) cases would return a too small sample set.
Fixes #12054
2024-02-18 12:24:27 +01:00
Christian Oliff
168d375784
all: Fix typos and some URLs
2024-02-18 12:16:30 +01:00
dependabot[bot]
4a53fd56b7
build(deps): bump golang.org/x/tools from 0.17.0 to 0.18.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-17 18:27:49 +01:00
Bjørn Erik Pedersen
fc6aabe938
Fix handling of draft term pages
...
By just removing the term page and all of its page entries.
Fixes #12055
2024-02-17 18:12:25 +01:00
Bjørn Erik Pedersen
9cc65757a1
releaser: Fix archive homepage and description
...
Fixes #12053
2024-02-17 13:32:15 +01:00
Bjørn Erik Pedersen
4835f9e898
commands: Fix --clock with the list command
...
Fixes #11888
2024-02-17 13:14:15 +01:00
Bjørn Erik Pedersen
5bdda0bdbf
Don't use the same value in .Data.Term.Title as in .Title
...
Fixes #12041
2024-02-17 12:34:50 +01:00
Bjørn Erik Pedersen
9679443c15
Fix server panic on i18n file change
...
Fixes #12048
2024-02-17 11:46:45 +01:00
dependabot[bot]
2d1681d915
build(deps): bump golang.org/x/net from 0.20.0 to 0.21.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.20.0 to 0.21.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.21.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-17 11:16:15 +01:00
Bjørn Erik Pedersen
68f67c9aeb
Fix rebuild regression on non-default content language edits
...
Fixes #12043
2024-02-16 19:05:18 +01:00
Fabian Kammel
43ea2cd660
Let standard library handle charset parameter to MIME types
...
Fixes #10734
2024-02-16 18:24:25 +01:00
Bjørn Erik Pedersen
f1491c900e
Fix i18n rebuild regression
...
Fixes #12039
2024-02-16 16:17:57 +01:00
Bjørn Erik Pedersen
639073e4fe
Fix rebuild with resources.Concat
...
Fixes #12017
2024-02-16 13:17:53 +01:00
Joe Mooring
21d9057dbf
Add images.Dither filter
...
Closes #8598
2024-02-11 22:51:11 +02:00
Christian Oliff
0672b5c766
all: Fix typos
2024-02-11 13:51:33 +02:00
Rosano
e309f82efe
resources/page: Fix typo
2024-02-10 21:28:03 +02:00
Joe Mooring
6f59d96bba
markup/goldmark: Update TOC test
...
- Change copyright date
- Change name of site configuration file
- Reference issue numbers in failing tests
2024-02-10 20:16:59 +02:00
Bjørn Erik Pedersen
caba6ba6e7
Fix taxonomy term with backing file regression
...
Fixes #12020
2024-02-10 18:48:53 +02:00
Joe Mooring
f4575e5f29
markup/goldmark: Improve TOC tests
2024-02-10 16:03:37 +02:00
Bjørn Erik Pedersen
0851c175ad
Move the duplicate page/resource filter
...
Move the removal of duplicate content and resource files after we have determined if we're inside a leaf bundle or not.
Note that these would eventually have been filtered out as duplicates when inserting them into the document store, but doing it here will preserve a consistent ordering.
Fixes #12013
2024-02-08 20:11:17 +01:00
Bjørn Erik Pedersen
676e6875da
Make HTML behave exactly like other content formats (note)
...
Fixes #11999
2024-02-07 21:37:04 +01:00
Bjørn Erik Pedersen
068ccde4c7
docs: Regen CLI docs
2024-02-07 20:49:52 +01:00
Bjørn Erik Pedersen
7cb447ab8e
docs: Regenerate docshelper
2024-02-07 20:48:25 +01:00
Bjørn Erik Pedersen
6efb279bfa
Squashed 'docs/' changes from 5c085a37b..a9584e3d1
...
a9584e3d1 ci: bump GitHub workflow actions to latest versions
f37ee374d Fix methods related to time.After
a49214057 Correct heading render hook example
4b696f936 Update README.md
b5a6e4039 Clean up the contributing section
a5d79ed19 Fixed typo: instea → instead
6150a60e3 Remove the "local file templates" page
9395743dc Update/vendor theme
33d8c10cc Remove output format "name" parameter
7200ad97d Add security section to resources.GetRemote page
3f1e056b2 Remove erroneous front matter field
07c9a7e42 Add alpha index to glossary
6619c8aa0 Fix Page.Params example
145a92359 Simplify string concat example in math.Add
42488bb09 Add string concat example to math.Add
eb20521a2 Fix flash of unstyled content with mathematical markup
74603bebe Fix typo in 'typesetting'
git-subtree-dir: docs
git-subtree-split: a9584e3d14
2024-02-07 20:46:41 +01:00
Bjørn Erik Pedersen
b8d5090452
Merge commit '6efb279bfacbd7304cef994be8181c6f804e7dd4'
2024-02-07 20:46:41 +01:00
dependabot[bot]
301bafabe0
build(deps): bump golang.org/x/mod from 0.14.0 to 0.15.0
...
Bumps [golang.org/x/mod](https://github.com/golang/mod ) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/mod/compare/v0.14.0...v0.15.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-07 20:44:21 +01:00
Bjørn Erik Pedersen
9571246bcc
Upgrade to Go 1.22
...
Fixes #12010
2024-02-07 20:42:42 +01:00
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
Lars Lehtonen
ec22bb31a8
hugofs/glob: Fix dropped test error
2024-01-28 23:31:10 +01:00
Bjørn Erik Pedersen
a795acbcd8
all: Run gofumpt -l -w .
2024-01-28 23:14:09 +01:00
Bjørn Erik Pedersen
982d9513e7
testing: Simplify some integration tests
2024-01-28 22:17:22 +01:00
Bjørn Erik Pedersen
6dedb4efc7
Add the [params] concept to front matter
...
This is deliberately very simple, but should not break anything. We need to introduce this in baby steps, but this should allow us to introduce this in the documentation.
Note that the `params` section's key/values will be added to `.Params` last. This means that you can have different values for "Hugo's summary" and the custom ".Params.summary" if you want to.
Updates #11055
2024-01-28 21:38:40 +01:00
Bjørn Erik Pedersen
292626e679
tpl/data: Deprecate data.GetJSON and data.GetCSV
2024-01-28 16:37:36 +01:00
razonyang
60d954c785
modules: Print required Hugo version for incompatible modules
2024-01-28 15:23:21 +01:00
Bjørn Erik Pedersen
63e0a92894
hugolib: Remove unused test image
2024-01-28 15:14:53 +01:00
Kandula Naveen
ce7daa6156
navigation: Improve menu cache
2024-01-28 15:11:57 +01:00
Bjørn Erik Pedersen
2a0329423c
testing: Rename integration_test.go to PACKAGE_integration_test.go
...
Primary motivation making them easier to find in the code editor.
2024-01-28 11:41:59 +01:00
Bjørn Erik Pedersen
50dc327d1a
Port some integration tests to new test setup
...
The method I'm currently using (if other want to help) is:
* Add fmt.Println(b.DumpTxtar()) after the Build step
* Add that to a files var and pass that to Test(t, files) or similar
* Then, if possible, try to reduce the files/content down to what's needed in test.
Note that if the test is small, it's probably faster just to manually re-create the test.
2024-01-28 11:29:23 +01:00
Bjørn Erik Pedersen
7285e74090
all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning
...
There are some breaking changes in this commit, see #11455 .
Closes #11455
Closes #11549
This fixes a set of bugs (see issue list) and it is also paying some technical debt accumulated over the years. We now build with Staticcheck enabled in the CI build.
The performance should be about the same as before for regular sized Hugo sites, but it should perform and scale much better to larger data sets, as objects that uses lots of memory (e.g. rendered Markdown, big JSON files read into maps with transform.Unmarshal etc.) will now get automatically garbage collected if needed. Performance on partial rebuilds when running the server in fast render mode should be the same, but the change detection should be much more accurate.
A list of the notable new features:
* A new dependency tracker that covers (almost) all of Hugo's API and is used to do fine grained partial rebuilds when running the server.
* A new and simpler tree document store which allows fast lookups and prefix-walking in all dimensions (e.g. language) concurrently.
* You can now configure an upper memory limit allowing for much larger data sets and/or running on lower specced PCs.
We have lifted the "no resources in sub folders" restriction for branch bundles (e.g. sections).
Memory Limit
* Hugos will, by default, set aside a quarter of the total system memory, but you can set this via the OS environment variable HUGO_MEMORYLIMIT (in gigabytes). This is backed by a partitioned LRU cache used throughout Hugo. A cache that gets dynamically resized in low memory situations, allowing Go's Garbage Collector to free the memory.
New Dependency Tracker: Hugo has had a rule based coarse grained approach to server rebuilds that has worked mostly pretty well, but there have been some surprises (e.g. stale content). This is now revamped with a new dependency tracker that can quickly calculate the delta given a changed resource (e.g. a content file, template, JS file etc.). This handles transitive relations, e.g. $page -> js.Build -> JS import, or $page1.Content -> render hook -> site.GetPage -> $page2.Title, or $page1.Content -> shortcode -> partial -> site.RegularPages -> $page2.Content -> shortcode ..., and should also handle changes to aggregated values (e.g. site.Lastmod) effectively.
This covers all of Hugo's API with 2 known exceptions (a list that may not be fully exhaustive):
Changes to files loaded with template func os.ReadFile may not be handled correctly. We recommend loading resources with resources.Get
Changes to Hugo objects (e.g. Page) passed in the template context to lang.Translate may not be detected correctly. We recommend having simple i18n templates without too much data context passed in other than simple types such as strings and numbers.
Note that the cachebuster configuration (when A changes then rebuild B) works well with the above, but we recommend that you revise that configuration, as it in most situations should not be needed. One example where it is still needed is with TailwindCSS and using changes to hugo_stats.json to trigger new CSS rebuilds.
Document Store: Previously, a little simplified, we split the document store (where we store pages and resources) in a tree per language. This worked pretty well, but the structure made some operations harder than they needed to be. We have now restructured it into one Radix tree for all languages. Internally the language is considered to be a dimension of that tree, and the tree can be viewed in all dimensions concurrently. This makes some operations re. language simpler (e.g. finding translations is just a slice range), but the idea is that it should also be relatively inexpensive to add more dimensions if needed (e.g. role).
Fixes #10169
Fixes #10364
Fixes #10482
Fixes #10630
Fixes #10656
Fixes #10694
Fixes #10918
Fixes #11262
Fixes #11439
Fixes #11453
Fixes #11457
Fixes #11466
Fixes #11540
Fixes #11551
Fixes #11556
Fixes #11654
Fixes #11661
Fixes #11663
Fixes #11664
Fixes #11669
Fixes #11671
Fixes #11807
Fixes #11808
Fixes #11809
Fixes #11815
Fixes #11840
Fixes #11853
Fixes #11860
Fixes #11883
Fixes #11904
Fixes #7388
Fixes #7425
Fixes #7436
Fixes #7544
Fixes #7882
Fixes #7960
Fixes #8255
Fixes #8307
Fixes #8863
Fixes #8927
Fixes #9192
Fixes #9324
2024-01-27 16:28:14 +01:00
Bjørn Erik Pedersen
5fd1e74903
Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'
...
```
git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash
```
Closes #11925
2024-01-27 10:48:57 +01:00
Bjørn Erik Pedersen
9b0050e9aa
Squashed 'docs/' content from commit 5c085a37b
...
git-subtree-dir: docs
git-subtree-split: 5c085a37b2
2024-01-27 10:48:33 +01:00
Bjørn Erik Pedersen
fc7de7136a
docs: Prepare for new sub tree
...
See #11925
2024-01-27 10:47:28 +01:00
hugoreleaser
1083bf7c08
releaser: Prepare repository for 0.123.0-DEV
...
[ci skip]
2024-01-26 16:06:12 +00:00
hugoreleaser
b9a03bd59d
releaser: Bump versions for release of 0.122.0
...
[ci skip]
2024-01-26 15:54:24 +00:00
dependabot[bot]
e0021f4961
build(deps): bump golang.org/x/tools from 0.16.0 to 0.17.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.16.0 to 0.17.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.16.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-26 13:19:29 +01:00
dependabot[bot]
d25902c0d8
build(deps): bump github.com/rogpeppe/go-internal from 1.11.0 to 1.12.0
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.11.0...v1.12.0 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-26 12:55:48 +01:00
Bjørn Erik Pedersen
50042ee1f4
docs: Regen docshelper
2024-01-26 08:23:37 +01:00
Bjørn Erik Pedersen
3758456b31
Merge commit '7125ad401ad043e46262afc7eca8dceb6d54bb9e'
2024-01-26 08:22:42 +01:00
Bjørn Erik Pedersen
7125ad401a
Squashed 'docs/' changes from 4dd2d6415..3b1a8579d
...
3b1a8579d Update theme
b1f04fd47 params: Adjust the twitter handle
2c8ba029f Fix typo
4421e46ec Update Where.md
5f9fec6a5 Update glossary.md
fb16945cf collections.Where - Clarify description of "collection"
4d6d7018b Update Include.md - improve return statement example
037151073 Update IncludeCached - improve return statement example
b053fa09c Improve return types
f7d615267 Describe minimum required Windows version
e97762b2a Update front matter in math.Sub
9e4d03a79 Fix data.GetJSON examples
9029ee123 Update spellcheck GitHub Action
c852fe421 Add version verification step to quick start guide
8fafca49c Correct front matter example
b412fdf65 Fix closing tag in notes docs
9a64d9579 Add hreflang Tag to Translation Link example
2d2a82101 Fix inverted examples in Permalink and RelPermalink
ff3e67e3f Correct spelling
3904b72e3 Fix documentation contribution steps enumeration
348fd3c02 Fix some typos in the content summaries page
a5823459a Fix two links, one to bonsai.io and one to digital.gov
c36978686 Fix typo
0ee3ff44f Vendor theme
6b0a9b75d Fix typo
44e4cb5c6 Fix typos
815071742 Update min Go version to build from source
192d14df5 Fix typo
e4a18946e Miscellaneous corrections
f12b7b74e netlify: Hugo 0.121.2
97dbc1ea1 Merge branch 'tempv0.121.2'
dc1c0aeeb Add cache note to resources.Concat
a8d1a6020 Correct return type
eca22e97c Fix front matter
7de247a03 Correct return type
5058bc520 collections.Seq: Specify max slice size
e24d81a4b Fix typo on FAQ page
ff8cf5a88 Correct 'related' front matter values
88b21fae0 Adjust deprecation handling
f7e19a25b Update terminology on shortcode templates page
01e10942a Adjust formatting
6ed2e19c2 tpl/math: Add math.Rand template function
b494a8d8d Update js.md
6d78035f4 Add interval description to glossary (#2378 )
f9b612b64 Templates Lookup Order: Add missing parenthesis
741ab1bb2 Show vendorClosest in module default config
eb8cb878f Fix Babel headings
cdcdfc8e8 Change project name in Codeowners example
f31fe0d63 Update link to image filters
9dee1ee0e Update Solus installation instructions
716636fee Add TOC to collections.Sort
f7c64143c Update collections.Sort
4b8f6b991 Add id attributes to Scratch and Store methods
2a1adea79 Add id attributes to GitInfo, File, and Resources methods
b12d9cb8f Add Alpine Linux installation instructions
dfbebeec7 Change writeStats to buildStats
175b8aac8 resources/images: Create AutoOrient image filter
ba8e05c31 Update img shortcode
7fc15a6cc Fix default value of pluralizeListTitles
a0be4fd8a Add Comentario to available comment engines
71aa7d8ab Update GitInfo.md
348441491 EXIF: describe applicable image types
743497eda Disable TOC for lang.Translate
b3b1df75d Describe lang.Translate fallback behavior
a6d9c362c Categorize CLI commands to improve search results
08cc2da4b Document canonical config for enabling inline shortcodes
8945be9c6 Update description of the humanize ordinal conversion
b8b4ccb6f Fix grammatical error
f53f9f936 Fix description of strings.HasSuffix
cdbe19b5b Update Params.md
e00c4eea2 Reformat site config descriptions
6f50c0755 Enumerate root configuration keys
1f2e7b9b2 Use canonical key when documenting menu configs
7d5a13d8d Update images.Text filter
315d2f8c3 Add math.Counter example to warnf
8ed9cdaa9 Miscellaneous edits
2bda491eb Fix front matter example
5c5bbbe3a netlify: Bump to Hugo 0.121.1
ed08f5943 Update Gentoo installation instructions
e4eb48457 Miscellaneous edits
8c3700d12 netlify: Bump to Hugo 0.121.0
1bb5a377f Merge branch 'tempv0.121.0'
8cba89504 Improve where function
0dfc00b0f docs: Regen docshelper
028076a66 Fix link to Gentoo package
52d2db4ff Fix typo
120025c19 Improve Gentooo installation instructions
0c31a4b45 Update GitHub hosting workflow example
dee99c36a Defend against missing aliases in quick-reference shortcode
d305278f1 Add Gentoo installation instructions
be98a37e1 docs: Adjust last merge from docs repository
a703dab53 docs: Regen docs helper
2e9c3532f Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'
f57fdb44b deps: Update github.com/tdewolff/minify/v2 v2.20.7 => v2.20.8
50cad5e38 tpl/transform: Add transform.XMLEscape template function
git-subtree-dir: docs
git-subtree-split: 3b1a8579d2
2024-01-26 08:11:52 +01:00
Jeremy Kun
d0d2c6795e
markup/goldmark: Support passthrough extension
...
Fixes #10894
2024-01-26 08:11:35 +01:00
dependabot[bot]
2dd608378d
build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.0 to 2.1.1
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.1.0...v2.1.1 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-25 19:48:59 +01:00
dependabot[bot]
45f52be7f8
build(deps): bump github.com/evanw/esbuild from 0.19.8 to 0.19.12
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.8 to 0.19.12.
- [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.8...v0.19.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 >
2024-01-25 19:48:32 +01:00
Daniel Terhorst-North
87bf2b9688
tpl/tplimpl: Fix incorrect lastBuildDate
...
Fixes #11600
Co-authored-by: Joe Mooring <joe@mooring.com >
2024-01-25 19:46:52 +01:00
Daniel Terhorst-North
f281ef8a4a
tpl: fix incorrect lastBuildDate
...
Set the `<lastBuildDate>` field to be the most recent Lastmod date
of all the posts in the current selection.
Fixes #11600
2024-01-25 19:46:52 +01:00
August Feng
46f618756f
parser/metadecoders: Accumulate org keywords into arrays
...
Closes #11743
2024-01-25 19:34:12 +01:00
James Tatum
8915343075
deps: Update github.com/tdewolff/minify/v2 v2.20.9 => v2.20.13
...
KeepConditionalComments was deprecated in the upstream library and replaced with KeepSpecialComments. This new option reflects that both conditional comments and Server Side Include comments can be optionally stripped by the minifier. As with KeepConditionalComments, the minifier is configured not to strip them by default.
2024-01-25 19:33:14 +01:00
Bjørn Erik Pedersen
a541e3b4d4
Upgrade to Go 1.21.6
...
Closes #11892
2024-01-16 10:49:03 +01:00
Joe Mooring
912c6576bb
parser/metadecoders: Add CSV lazyQuotes option to transform.Unmarshal
...
If true, a quote may appear in an unquoted field and a non-doubled quote
may appear in a quoted field. It defaults to false.
Closes #11884
2024-01-16 09:26:44 +01:00
Joe Mooring
911bc60a7a
README: Update minimum Go version to 1.20
2024-01-06 05:31:49 -08:00
hugoreleaser
5ff6323320
releaser: Prepare repository for 0.122.0-DEV
...
[ci skip]
2024-01-05 12:34:12 +00:00
hugoreleaser
6d5b44305e
releaser: Bump versions for release of 0.121.2
...
[ci skip]
2024-01-05 12:21:15 +00:00
dependabot[bot]
1ccd3147a0
build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-05 13:17:17 +01:00
Joe Mooring
e40b9fbbcf
tpl/math: Add math.Rand template function
...
Closes #11833
2023-12-29 19:37:27 +01:00
Bjørn Erik Pedersen
9cd8fbb332
Adjust site benchmark
2023-12-29 16:42:33 +01:00
Bjørn Erik Pedersen
abcc61002a
Simplify baseline benchmark
2023-12-29 15:56:02 +01:00
Joe Mooring
648d00c7d8
resources/images: Create AutoOrient image filter
...
Closes #11717
2023-12-20 14:18:24 +01:00
Bjørn Erik Pedersen
8adba648cc
all: Remove unused code
...
Using x/tools/cmd/deadcode
2023-12-18 19:51:26 +01:00
hugoreleaser
6f13430d4a
releaser: Prepare repository for 0.122.0-DEV
...
[ci skip]
2023-12-08 09:01:24 +00:00
hugoreleaser
00b46fed8e
releaser: Bump versions for release of 0.121.1
...
[ci skip]
2023-12-08 08:47:45 +00:00
Bjørn Erik Pedersen
eb9f1eb657
Upgrade to Go 1.21.5
...
Closes #11786
2023-12-07 12:40:10 +01:00
hugoreleaser
5186e762ac
releaser: Prepare repository for 0.122.0-DEV
...
[ci skip]
2023-12-05 15:36:07 +00:00
hugoreleaser
e321c3502a
releaser: Bump versions for release of 0.121.0
...
[ci skip]
2023-12-05 15:22:31 +00:00
Bjørn Erik Pedersen
255e0a9718
docs: Regen docshelper
2023-12-05 16:19:43 +01:00
dependabot[bot]
558f3258a7
build(deps): bump github.com/alecthomas/chroma/v2 from 2.11.1 to 2.12.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.11.1 to 2.12.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.11.1...v2.12.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-05 09:42:04 +01:00
Joe Mooring
6580cd30ad
docs: Adjust last merge from docs repository
2023-12-04 16:57:15 +01:00
Bjørn Erik Pedersen
7617de86cd
docs: Regen docs helper
2023-12-04 15:24:34 +01:00
Bjørn Erik Pedersen
d19ed4d4e6
Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'
2023-12-04 15:24:01 +01:00
Bjørn Erik Pedersen
35dec7c96f
Squashed 'docs/' changes from 4d936aee6..4dd2d6415
...
4dd2d6415 Fix erroridf example
9ae8e9199 Clarify highlight options
f3943f9c8 Fix typo
b57ea5ac8 Add field to glossary of terms
3191e35b4 Clarify comment in the new-in shortcode
870c8d35c Correct description of Ref and RelRef page methods
c9df50e6e Specify encoding in description of crypto functions
749bb37e2 Add Ref, RelRef, and Site shortcode methods
994d4374b Update fmt functions
740f5ef96 Misc additions
77acdcdb6 Remove rssLimit from root config documentation
df84a1795 Document the openapi3.Unmarshal function
24236f57d Miscellaneous edits and corrections
41b54d421 Hide the "new in" button after some period of time
3c1ebac31 Update Ancestors.md
e699eb313 Add new-in tags to select functions and methods
5c41f0bf8 Clarify time.Format method
f7bd43ae1 Add link to built-in render hook for GoAT diagrams
06f9cd4c9 Document the diagrams.Goat function
5e432e12d Adjust quick reference weights
fc915efd6 Update FAQ
5bccf8b19 Use LinkTitle consistently in examples
36f207f3a Add page collection quick reference
699de883d Inlcude example of newScratch.Values
9bb7f8c78 Include RenderString example for emoji shortcodes
783fdd3ac Fix typo
26d5a4399 Fix typo
c7e86f0cf Fix typo
ad2a82fbd Clarify data type returned by partial and partialCached
1de5a52dd Miscellaneous corrections
3509e1b4d Update configuration-markup.md
8c6a9bf02 Clairfy figure shortcode output
c9d0dc8fb Update Markdownify.md
0c4bc1447 Update theme
0f0ab2ade Add methods deprecated in v0.120.0
e1c6ecd0f Miscellaneous edits
ec53b55b9 netlify: Hugo 0.120.4
23a1f3fd5 templates/internal.md: Correct GoogleAnalytics key name
6dcfa9a82 Update troubleshooting section
0c8857e8f Adjust code and code-toggle shortcodes
8820264d3 Reduce number of site audit warnings
526d06b90 Clarify hint option in image processing spec
310849daa Image Processing: Improve sentence and fix code sample
5bb67bfd4 Revert "Image Processing: Improve sentence and fix code sample" (#2318 )
77c926fde Image Processing: Improve sentence and fix code sample
52179fb18 Miscellaneous edits
f4e886715 Revert change to hugo.work
c410fefa8 Update theme
8b72dfedd Rework where function documentation
f35a7126f Minor edits to global page function
903b42ebc Cleanup shortcode calls
c9247e98d Update documentation.md
dff3c4abb Clean up build option descriptions and examples
f46d31308 Use consistent signatures
2af2470b5 Minor correction to resources.GetRemote
45ec53fe0 Remove superfluous shortcode param
2a0544757 Improve deployment documentation
3cf36a7fc Clarify lang keyword
f10d6495d Update front-matter.md
dc94e20be Add Sveltia to CMS list
b15d6d670 Update front-ends.md
bb41588b2 Update FormatCurrency.md
b40fff396 Add showcase for hidden sections without index.html
71316e181 Improve image filter examples
d46f0b1d8 Miscellaneous edits
ad3f9cdb6 Adjust quick reference guides
8657804ba Update theme
d9e981147 Miscellaneous corrections
508666575 Miscellaneous updates
80b2241f9 Miscellaneous updates
723a827fd Namespace functions and methods
40212779a netlify: Hugo 0.120.3
66017c704 Bump GitHub workflows to latest versions
db0f1e682 Update related.md
7e758c23b netlify: Hugo 0.120.2
641ba3976 Update configuration.md
d2a9909d9 Update rss.md
7eb59d7a2 netlify: Hugo 0.120.1
708c351c4 Document debug.Timer
28e2388c2 Add new-in tag to images.Padding
ee24cffb5 Add new-in tags to hugo.IsDevelopment and hugo.IsServer
aa47ca023 netlify: Hugo 0.120.0
9c3e606fc docs: Regen docshelper
159fd971e commands/new: Remove format flag from new content cmd
9f7878092 Merge commit 'aaaf1c8df5d6aa061609d20510f7fa6c42e5cc1a'
65b2dd324 docs: Regenerate docshelper
2be620663 resources/images: Create padding image filter
c777d6c5e Merge commit '3710a5ec7efe6baca6e452f43632c05d22bab3c4'
24f2afeb2 Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'
3f947c19a hugolib: Deprecate .Site.DisqusShortname
6bd1af892 hugolib: Deprecate .Site.GoogleAnalytics
78becc6ee tpl/tplimpl: Deprecate .Site.Social usage with internal templates
e3ec2a4f2 common/hugo: Add hugo.IsServer and hugo.IsDevelopment
git-subtree-dir: docs
git-subtree-split: 4dd2d64153
2023-12-04 15:14:18 +01:00
Bjørn Erik Pedersen
9f978d387f
Pull in the latest code from Go's template packages ( #11771 )
...
Fixes #10707
Fixes #11507
2023-12-04 12:07:54 +01:00
Razon Yang
14d85ec136
tpl: Allow using page resources on the images page parameter for opengraph, schema and twitter_cards templates
...
The page images selection order as follows:
1. Page's images parameter, image resources are supported.
2. Page's image resources that naming in *feature*, *cover* or *thumbnail* pattern.
3. If no page images specified, then the first one of site's images will be used as the fallback, supports site resources.
2023-12-04 12:05:41 +01:00
Joe Mooring
171836cdfa
hugolib: Apply titleCaseStyle to automatic section pages
...
Fixes #11547
2023-12-04 11:42:06 +01:00
Joe Mooring
9ea7103db7
tpl/urls: Retain query and fragment with absURL and absLangURL
...
Closes #11772
2023-12-04 11:41:30 +01:00
Joe Mooring
3fc42da3d0
markup: Add Level to Heading struct
...
Closes #10776
2023-12-04 11:41:01 +01:00
Joe Mooring
d24da1712f
tpl/fmt: Print suppression help with erroridf
...
Closes #11506
2023-12-04 11:39:27 +01:00
Joe Mooring
4583b41305
tpl/transform: Display Chroma highlighting errors
...
Closes #9642
2023-12-04 11:38:23 +01:00
dependabot[bot]
507f4e356b
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.8 to 2.20.9
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.8 to 2.20.9.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.8...v2.20.9 )
---
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 >
2023-12-04 11:36:50 +01:00
dependabot[bot]
a7e721e02d
build(deps): bump github.com/spf13/cast from 1.5.1 to 1.6.0
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.5.1...v1.6.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 >
2023-12-01 11:04:04 +01:00
dependabot[bot]
2627b91d3a
build(deps): bump github.com/getkin/kin-openapi from 0.121.0 to 0.122.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.121.0 to 0.122.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.121.0...v0.122.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 >
2023-12-01 08:35:21 +01:00
Bjørn Erik Pedersen
6d4b012412
github: Fix CI build on Windows
2023-11-30 19:22:29 +01:00
dependabot[bot]
e536d461a5
build(deps): bump golang.org/x/image from 0.13.0 to 0.14.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/image/compare/v0.13.0...v0.14.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 >
2023-11-30 10:55:58 +01:00
Joe Mooring
bfc325f561
deps: Update github.com/tdewolff/minify/v2 v2.20.7 => v2.20.8
...
Closes #5748
2023-11-30 10:13:40 +01:00
dependabot[bot]
36a60f65d0
build(deps): bump github.com/spf13/afero from 1.10.0 to 1.11.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-30 10:05:41 +01:00
dependabot[bot]
de2fcc5e1d
build(deps): bump github.com/evanw/esbuild from 0.19.7 to 0.19.8
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.7 to 0.19.8.
- [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.7...v0.19.8 )
---
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 >
2023-11-30 10:04:51 +01:00
Lars Lehtonen
26a8ec207f
Fix handling of dropped error in test
2023-11-29 09:37:26 +01:00
dependabot[bot]
9ca889ba49
build(deps): bump google.golang.org/api from 0.151.0 to 0.152.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.151.0 to 0.152.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.151.0...v0.152.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 >
2023-11-28 16:53:57 +01:00
Bjørn Erik Pedersen
e2a624dd6c
common/para: Skip flaky test on CI
2023-11-28 12:23:38 +01:00
Bjørn Erik Pedersen
4fb40ee873
deps: Upgrade to libwebp 1.3.2
...
Closes #11746
2023-11-28 12:23:38 +01:00
dependabot[bot]
bc93a36133
build(deps): bump github.com/aws/aws-sdk-go from 1.48.4 to 1.48.6
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.48.4 to 1.48.6.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.48.4...v1.48.6 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 10:57:53 +01:00
dependabot[bot]
3e5bc6f3b3
build(deps): bump golang.org/x/tools from 0.15.0 to 0.16.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.15.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 10:57:23 +01:00
dependabot[bot]
7c47036f18
build(deps): bump github.com/getkin/kin-openapi from 0.120.0 to 0.121.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.120.0 to 0.121.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.120.0...v0.121.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 >
2023-11-28 10:57:02 +01:00
dependabot[bot]
4d07e1fe8a
build(deps): bump github.com/bep/logg from 0.3.0 to 0.4.0
...
Bumps [github.com/bep/logg](https://github.com/bep/logg ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/bep/logg/releases )
- [Commits](https://github.com/bep/logg/compare/v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/logg
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 10:56:09 +01:00
Bjørn Erik Pedersen
1c41232e61
deps: Upgrade to github.com/bep/simplecobra v0.4.0
2023-11-28 09:15:23 +01:00
dependabot[bot]
f11ca0fad4
build(deps): bump github.com/aws/aws-sdk-go from 1.48.2 to 1.48.4
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.48.2 to 1.48.4.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.48.2...v1.48.4 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-27 23:38:35 +01:00
Bjørn Erik Pedersen
30a18e8825
watcher: Skip flaky test for now
2023-11-27 17:54:57 +01:00
dependabot[bot]
d7a2f3f980
build(deps): bump golang.org/x/tools from 0.14.0 to 0.15.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.14.0...v0.15.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-27 10:53:02 +01:00
Joe Mooring
b4c5df42ff
tpl/transform: Add transform.XMLEscape template function
...
Fixes #3268
2023-11-27 10:52:33 +01:00
dependabot[bot]
ef12d169c8
build(deps): bump github.com/gorilla/websocket from 1.5.0 to 1.5.1
...
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/gorilla/websocket/releases )
- [Commits](https://github.com/gorilla/websocket/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-27 10:48:08 +01:00
dependabot[bot]
a62bbfa9ea
build(deps): bump github.com/fatih/color from 1.15.0 to 1.16.0
...
Bumps [github.com/fatih/color](https://github.com/fatih/color ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/fatih/color/releases )
- [Commits](https://github.com/fatih/color/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: github.com/fatih/color
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-27 10:47:37 +01:00
Joe Mooring
8d32ca223d
tpl/tplimpl: Remove superfluous type attr on script elements
...
Closes #6379
2023-11-27 10:45:53 +01:00
dependabot[bot]
5887230b7d
build(deps): bump golang.org/x/net from 0.17.0 to 0.18.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-23 11:14:19 +01:00
dependabot[bot]
a4a66b8216
build(deps): bump github.com/evanw/esbuild from 0.19.5 to 0.19.7
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.5 to 0.19.7.
- [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.5...v0.19.7 )
---
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 >
2023-11-23 11:13:10 +01:00
dependabot[bot]
813390b5a2
build(deps): bump github.com/alecthomas/chroma/v2 from 2.10.0 to 2.11.1
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.10.0 to 2.11.1.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.10.0...v2.11.1 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-23 11:12:18 +01:00
dependabot[bot]
d528bbd6d0
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.5 to 2.20.7
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.5 to 2.20.7.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.5...v2.20.7 )
---
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 >
2023-11-22 18:56:02 +01:00
dependabot[bot]
af7f6c8b3e
build(deps): bump google.golang.org/api from 0.138.0 to 0.151.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.138.0 to 0.151.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.138.0...v0.151.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 >
2023-11-22 12:51:06 +01:00
dependabot[bot]
e70849ea79
build(deps): bump github.com/aws/aws-sdk-go from 1.45.14 to 1.48.2 ( #11724 )
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.45.14 to 1.48.2.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.45.14...v1.48.2 )
---
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 >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates #11723
2023-11-22 12:19:01 +01:00
Joe Mooring
dd6cd6268d
resources/resource: Fix GroupByParamDate with raw TOML dates
...
Closes #11563
2023-11-22 12:09:48 +01:00
Bjørn Erik Pedersen
27620daa20
common/para: Skip flaky tests on Windows
2023-11-16 18:24:20 +01:00
Joe Mooring
80d2fdbaa0
navigation: Unexport menu entry methods
...
- MenuEntry.IsEqual
- MenuEntry.IsSameResource
Closes #11670
2023-11-16 18:22:31 +01:00
Joe Mooring
805cc1773b
markup/goldmark: Sync image render hook code with Goldmark
...
Fixes #11681
2023-11-16 18:21:32 +01:00
Joe Mooring
0bde6931ac
helpers: Fix TrimShortHTML used by markdownify and RenderString
...
Closes #11698
2023-11-16 18:21:01 +01:00
hugoreleaser
ac7cffa7e2
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-11-08 11:32:02 +00:00
hugoreleaser
f11bca5fec
releaser: Bump versions for release of 0.120.4
...
[ci skip]
2023-11-08 11:18:07 +00:00
Bjørn Erik Pedersen
9315a2d2c4
Upgrade to go 1.21.4
...
Closes #11685
2023-11-08 11:53:26 +01:00
Bjørn Erik Pedersen
cee3a56a91
Add a new test helper
2023-11-02 09:50:18 +01:00
hugoreleaser
da2a8e6402
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-11-01 18:11:30 +00:00
hugoreleaser
a4892a07b4
releaser: Bump versions for release of 0.120.3
...
[ci skip]
2023-11-01 17:57:00 +00:00
Joe Mooring
cb98e9061b
tpl/tplimpl: Fix deprecation logic in embedded templates
...
Closes #11658
2023-11-01 17:42:45 +01:00
Bjørn Erik Pedersen
5fa97ee964
Remove some old and unused deprecation code
2023-11-01 16:40:26 +01:00
Bjørn Erik Pedersen
4d38f47250
Add a field prefix to the deprecated log statements
...
To make theme easier to spot, esp. on INFO level.
2023-11-01 16:40:26 +01:00
Bjørn Erik Pedersen
80f793c38d
Avoid double printing INFO deprecation messages
...
Fixes #11645
2023-11-01 16:40:26 +01:00
dependabot[bot]
a9079d7a63
build(deps): bump github.com/tdewolff/parse/v2 from 2.7.1 to 2.7.3
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.7.1 to 2.7.3.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.7.1...v2.7.3 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-01 16:07:37 +01:00
dependabot[bot]
4914b7f18c
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.1 to 2.20.5
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.1 to 2.20.5.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.1...v2.20.5 )
---
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 >
2023-11-01 10:32:33 +01:00
hugoreleaser
9e06fd3394
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-10-31 16:40:29 +00:00
hugoreleaser
9c2b2414d2
releaser: Bump versions for release of 0.120.2
...
[ci skip]
2023-10-31 16:27:18 +00:00
Bjørn Erik Pedersen
ab21433689
Fix deprecation printing on info level
...
Fixes #11638
2023-10-31 10:42:23 +01:00
Joe Mooring
23fcfb7f74
tpl/tplimpl: Fix deprecation logic in RSS template
...
Closes #11639
2023-10-31 08:34:30 +01:00
hugoreleaser
47bf2fcbe2
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-10-30 16:57:41 +00:00
hugoreleaser
16fb2cae88
releaser: Bump versions for release of 0.120.1
...
[ci skip]
2023-10-30 16:44:31 +00:00
Joe Mooring
2bedcf3d18
deps: Update github.com/tdewolff/minify/v2 v2.20.0 => v2.20.1
...
Fixes #11633
2023-10-30 17:41:33 +01:00
hugoreleaser
935999e2fa
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-10-30 14:20:34 +00:00
hugoreleaser
20c3bae2c4
releaser: Bump versions for release of 0.120.0
...
[ci skip]
2023-10-30 14:06:47 +00:00
Bjørn Erik Pedersen
29b6e133a8
docs: Regen docshelper
2023-10-30 15:03:10 +01:00
Bjørn Erik Pedersen
7f8ab74681
Add Solaris build
...
Closes #3500
2023-10-30 12:43:36 +01:00
dependabot[bot]
59bcc098cf
build(deps): bump github.com/fsnotify/fsnotify from 1.6.0 to 1.7.0
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.6.0...v1.7.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 >
2023-10-30 12:42:17 +01:00
dependabot[bot]
e26ba752d2
build(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.9 to 0.6.0.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.9...v0.6.0 )
---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-30 10:31:21 +01:00
dependabot[bot]
bcf07fa639
build(deps): bump github.com/alecthomas/chroma/v2 from 2.9.1 to 2.10.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.9.1 to 2.10.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.9.1...v2.10.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-30 10:28:42 +01:00
Bjørn Erik Pedersen
b6a7568131
Make site.BaseURL and $pager.URL a string
...
Was template.URL.
2023-10-30 10:26:06 +01:00
Joe Mooring
acf01bfb78
create/skeletons: Fix menu template
...
Check identifier existence before calling lang.Translate to prevent
empty warnings when using the --printI18nWarnings flag.
Closes #11519
2023-10-30 09:02:49 +01:00
Joe Mooring
27b22cd87e
commands/new: Remove format flag from new content cmd
...
Fixes #11462
2023-10-30 09:02:26 +01:00
Joe Mooring
a2488b1c95
hugolib: Display correct markup identifier in error message
...
Fixes #11538
2023-10-30 09:01:34 +01:00
Bjørn Erik Pedersen
8f60c0c1ec
livereloadinject: Save some allocations
...
As suggested by @DominoPivot
```
name old time/op new time/op delta
LiveReloadInject-10 1.11µs ± 2% 1.04µs ± 2% -6.45% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
LiveReloadInject-10 1.23kB ± 0% 0.89kB ± 0% -27.69% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
LiveReloadInject-10 12.0 ± 0% 10.0 ± 0% -16.67% (p=0.029 n=4+4)
```
2023-10-29 18:37:05 +01:00
Domino Goupil
9dc608084b
livereloadinject: Use more robust injection method
2023-10-29 18:37:05 +01:00
Joe Mooring
a349aafb7f
tpl/urls: Return strings from URL functions
...
Closes #11511
2023-10-29 18:12:24 +01:00
Bjørn Erik Pedersen
b8fbd4a578
transform/livereloadinject: Add benchmark
2023-10-29 17:50:55 +01:00
dependabot[bot]
e2b2092ce6
build(deps): bump golang.org/x/tools from 0.13.0 to 0.14.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.13.0...v0.14.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-29 16:38:06 +01:00
dependabot[bot]
f4df7b88b3
build(deps): bump github.com/tdewolff/minify/v2 from 2.12.9 to 2.20.0
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.12.9 to 2.20.0.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.12.9...v2.20.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 >
2023-10-29 11:36:23 +01:00
dependabot[bot]
3d9bd404ee
build(deps): bump github.com/mattn/go-isatty from 0.0.19 to 0.0.20
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.19 to 0.0.20.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.19...v0.0.20 )
---
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 >
2023-10-29 11:35:16 +01:00
dependabot[bot]
5f5e55aa8d
build(deps): bump golang.org/x/image from 0.12.0 to 0.13.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/image/compare/v0.12.0...v0.13.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 >
2023-10-29 11:34:13 +01:00
Bjørn Erik Pedersen
aaaf1c8df5
Squashed 'docs/' changes from 417593493..4d936aee6
...
4d936aee6 Fix function signatures
8182a27ed Simplify example usage of apply function
git-subtree-dir: docs
git-subtree-split: 4d936aee62
2023-10-29 11:33:05 +01:00
Bjørn Erik Pedersen
0baa4f9837
Merge commit 'aaaf1c8df5d6aa061609d20510f7fa6c42e5cc1a'
2023-10-29 11:33:05 +01:00
Bjørn Erik Pedersen
d3d4ab41a9
docs: Regenerate docshelper
2023-10-29 11:31:51 +01:00
Bjørn Erik Pedersen
28d844642a
Revert "modules: Throttle the "downloading modules …" log entries"
...
This reverts commit 66904097e0 .
2023-10-29 10:57:27 +01:00
Bjørn Erik Pedersen
eb5fd3127f
Revert "modules: Adjust the log throttle logic a little"
...
This reverts commit 3f64b5a3de .
2023-10-29 10:57:25 +01:00
Joe Mooring
3ed28e4bfe
resources/images: Create padding image filter
...
Closes #11599
2023-10-29 10:16:37 +01:00
OMOTO Tsukasa
db14238ba3
markup/goldmark: Update the CJK extension to allow specifying line break styles
...
This commit follows https://github.com/yuin/goldmark/pull/411
2023-10-29 10:13:56 +01:00
Bjørn Erik Pedersen
3f64b5a3de
modules: Adjust the log throttle logic a little
2023-10-28 17:40:07 +02:00
Bjørn Erik Pedersen
66904097e0
modules: Throttle the "downloading modules …" log entries
2023-10-28 17:15:34 +02:00
Bjørn Erik Pedersen
e54139c85b
tpl/collections: Make delimit return a string
...
Closes #10876
Closes #11502
2023-10-28 11:54:23 +02:00
Bjørn Erik Pedersen
3710a5ec7e
Squashed 'docs/' changes from cb18a5183..417593493
...
417593493 Fix broken link
9829e2862 Mention Go variable naming rules
11ce3a59c Fix typo
0d62feed5 Update glossary
5e9ecb217 Prepare for pending deprecations
c5f76c776 Update Twitter Cards URL
git-subtree-dir: docs
git-subtree-split: 4175934933
2023-10-27 10:06:44 +02:00
Bjørn Erik Pedersen
705e3cd5f5
Merge commit '3710a5ec7efe6baca6e452f43632c05d22bab3c4'
2023-10-27 10:06:44 +02:00
dependabot[bot]
8c61fd2541
build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-27 09:57:12 +02:00
dependabot[bot]
d3145e4e5d
build(deps): bump github.com/evanw/esbuild from 0.19.3 to 0.19.5
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.3 to 0.19.5.
- [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.3...v0.19.5 )
---
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 >
2023-10-27 09:56:40 +02:00
dependabot[bot]
743a1da3ef
build(deps): bump github.com/spf13/afero from 1.9.5 to 1.10.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.5 to 1.10.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.5...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-27 09:56:05 +02:00
dependabot[bot]
123901b741
build(deps): bump github.com/bep/logg from 0.2.0 to 0.3.0
...
Bumps [github.com/bep/logg](https://github.com/bep/logg ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/bep/logg/releases )
- [Commits](https://github.com/bep/logg/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/logg
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-27 09:55:05 +02:00
Bjørn Erik Pedersen
71fd79a3f4
Revise the deprecation logging
...
This introduces a more automatic way of increasing the log levels for deprecation log statements based on the version it was deprecated.
The thresholds are a little arbitrary, but
* We log INFO for 6 releases
* We log WARN for another 6 releases
* THen ERROR (failing the build)
This should give theme authors plenty of time to catch up without having the log filled with warnings.
2023-10-26 20:41:19 +02:00
Bjørn Erik Pedersen
c4a530f104
Remove rest of the now unused emoji code
...
See #11598
2023-10-26 09:20:56 +02:00
Joe Mooring
272484f8bf
markdown: Pass emoji codes to yuin/goldmark-emoji
...
Removes emoji code conversion from the page and shortcode parsers. Emoji
codes in markdown are now passed to Goldmark, where the goldmark-emoji
extension converts them to decimal numeric character references.
This disables emoji rendering for the alternate content formats: html,
asciidoc, org, pandoc, and rst.
Fixes #7332
Fixes #11587
Closes #11598
2023-10-24 12:04:13 +02:00
Razon Yang
de4e466036
Fix so hugo get -u updates transitively
2023-10-22 16:32:01 +02:00
Oleksandr Redko
c23a0c4a0f
watcher/filenotify: Remove redundant duplicated comments
2023-10-21 18:57:35 +02:00
Oleksandr Redko
a95670b981
docs: Remove outdated note from CONTRIBUTING.md
2023-10-21 18:57:01 +02:00
Bjørn Erik Pedersen
46bdc03885
tpl/debug: Add average and median to timer output
2023-10-21 15:41:21 +02:00
Bjørn Erik Pedersen
5160c7efa5
tpl/debug: Add debug.Timer
...
Closes #11580
2023-10-20 09:46:45 +02:00
Bjørn Erik Pedersen
e2dd4cd05f
Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'
2023-10-20 09:43:56 +02:00
Bjørn Erik Pedersen
e509cac533
Squashed 'docs/' changes from 7ef2dbce4..cb18a5183
...
cb18a5183 Fix broken link
07a0198bf Config: Place Google Analytics tag ID under the services key
4bf0c719f Fix typo
50d8ad1af Fix muiltilingual menu definition instructions
1a32519a9 Fix typos
6f34ca8e0 Explain usage of front matter to target a template
5bd977257 Improve goldmark config docs
447632938 Remove Docker notes from installation instructions
84741d173 Update reference to hugo.work
0338d7c71 Fix menu template
f5d2f5ed4 Fix typos in content/en/functions/fmt
a3a40ff99 Add return type to functions
85ac3e779 Remove outdated feature image
d47d889e4 Fix signatures
7551ba28f Document safe.JSStr function
e77993be0 Document keyVals function
4dba20db3 Update theme
babf91544 Update echoparam
8c8203efa Adjust related functions
4cb1b30fc Fix example
ba95eca64 Improve showcase prose
5d3dcf366 Add Overmind Studios showcase
8d634ac70 Change code blocks from indented to fenced
cfab978e6 Add missing code fences
407dd5c47 Limit related pages for functions to other functions
9fa67d981 Fix .Site.LastChange doc
393aa16d0 netlify: Hugo 0.119.0
f864af97a docs: Even more about images.Process
9d772d5f0 docs: More about images.Process
bc655f869 docs: Regen docshelper
41c3536d1 Merge commit '9aec42c5452b3eb224888c50ba1c3f3b68a447e9'
918ed53f4 Add images.Process filter
573645883 Add $image.Process
a1151b0fd Add images.Opacity filter
git-subtree-dir: docs
git-subtree-split: cb18a5183f
2023-10-20 09:42:39 +02:00
Bjørn Erik Pedersen
fd38171810
Add some convenient integration test helpers
2023-10-18 18:54:15 +02:00
Joe Mooring
2eca1b3cc1
hugolib: Deprecate .Site.DisqusShortname
...
Use .Site.Config.Services.Disqus.Shortname instead.
2023-10-18 17:35:54 +02:00
Lars Lehtonen
625162674d
tpl/tplimpl: Fix dropped error
2023-10-18 17:33:00 +02:00
Joe Mooring
a692278bc6
hugolib: Deprecate .Site.GoogleAnalytics
...
Use .Site.Config.Services.GoogleAnalytics.ID instead.
2023-10-17 20:06:42 +02:00
Joe Mooring
d4016dd5cd
tpl/tplimpl: Deprecate .Site.Author usage in RSS template
2023-10-17 20:04:49 +02:00
Joe Mooring
4910312ee7
tpl/tplimpl: Deprecate .Site.Social usage with internal templates
2023-10-17 20:04:24 +02:00
Joe Mooring
1b5f78b6b7
markup/tableofcontents: Return template.HTML from .Fragments.ToHTML
...
Closes #11545
2023-10-09 18:42:03 +02:00
Joe Mooring
d5d0f420d8
deps: Update github.com/tdewolff/minify/v2 v2.12.7 => v2.12.9
...
Fixes #11533
2023-10-06 19:44:25 +02:00
Joe Mooring
5993afa4c5
commands: Update message displayed when running CLI from GUI
...
Fixes #11525
2023-10-06 19:39:35 +02:00
Joe Mooring
d1b4458536
common/hugo: Add hugo.IsServer and hugo.IsDevelopment
...
And deprecate site.IsServer.
Closes #11510
2023-10-06 16:26:51 +02:00
Oleksandr Redko
274852bcf2
all: Format files with gofmt
2023-10-05 14:45:55 +02:00
abdullah-alaadine
37a2d5eb4e
magefile: Update isGoLatest to check for Go 1.21
2023-10-04 16:07:40 +02:00
Joe Mooring
4c95389c25
resources/integrity: Return string instead of template.HTMLAttr
...
Closes #11513
2023-10-02 20:14:50 +02:00
Bjørn Erik Pedersen
3af8bded26
Update README.md
2023-09-27 19:32:41 +02:00
Joe Mooring
46da0b7aaa
tpl/lang: Formally deprecate lang.NumFmt
...
Use lang.FormatNumberCustom instead.
2023-09-27 17:34:45 +02:00
Joe Mooring
75f56b4ce6
tpl/collections: Fix and deprecate echoParams
...
Fixes #11498
2023-09-27 17:34:13 +02:00
hugoreleaser
d234a963eb
releaser: Prepare repository for 0.120.0-DEV
...
[ci skip]
2023-09-24 15:32:33 +00:00
hugoreleaser
b84644c008
releaser: Bump versions for release of 0.119.0
...
[ci skip]
2023-09-24 15:20:17 +00:00
Bjørn Erik Pedersen
a9d19dbdd6
docs: Even more about images.Process
2023-09-24 12:26:00 +02:00
Bjørn Erik Pedersen
12d713176f
docs: More about images.Process
2023-09-24 12:11:03 +02:00
Oleksandr Redko
6b65b2fae6
common: Remove unused constants
2023-09-24 11:59:49 +02:00
Bjørn Erik Pedersen
1768684d8b
docs: Regen docshelper
2023-09-24 11:56:43 +02:00
Bjørn Erik Pedersen
9aec42c545
Squashed 'docs/' changes from 686c7b6eb..7ef2dbce4
...
7ef2dbce4 Cleanup RSS templates page
0e23d5e1a Fix multilingual permalinks example
b3c342b07 Update faq.md
f73109ae2 Regen CLI docs
ac6ee2027 Fix minor nitpicks (#2233 )
f24fcffe1 Mention the Giscus comments system (#2234 )
418fa981e Remove reference to Ghost migration tool
94a76df29 Adjust table layout
e263ad6b9 content: Fix typos
fd1eb26b5 Update featured image in digital.gov showcase
d3d946555 Correct directory description
bbe1dff56 Use sentence case for heading
acfa0be54 Add hosting provider fetch depth to GitInfo variables page
d78c427e6 Fix typo
751517fea Fix spelling mistake
cdd77aa9a Update content for v0.118.0
c77d09b1c Format netlify.toml
d5a6c4f51 netlify: Hugo 0.118.1
8c717301a Revert "netlify: Hugo 0.118.0"
a9b2ef5c2 netlify: Hugo 0.118.0
61959591c Merge commit '77b976dd92b4f66657d83d875aef0c617df492d9'
95f2029a1 docs: Regen docs helper
fd57ba960 markup/goldmark: Add CJK extension
2bfb3bf4c docshelper: Improve template lookup order descriptions
b0baa890e cache: Hide IsResourceDir from the exported config
b4b071ea0 docs: Replace docs.json with docs.yaml
git-subtree-dir: docs
git-subtree-split: 7ef2dbce4a
2023-09-24 11:54:45 +02:00
Bjørn Erik Pedersen
eb0ed33dfd
Merge commit '9aec42c5452b3eb224888c50ba1c3f3b68a447e9'
2023-09-24 11:54:45 +02:00
Bjørn Erik Pedersen
6a246d1152
Add images.Process filter
...
This allows for constructs like:
```
{{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg q30 resize 200x") }}
{{ $img = $img | images.Filter $filters }}
```
Note that the `action` option in `images.Process` is optional (`resize` in the example above), so you can use the above to just set the target format, e.g.:
```
{{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg") }}
{{ $img = $img | images.Filter $filters }}
```
Fixes #8439
2023-09-24 11:54:29 +02:00
Bjørn Erik Pedersen
ef0e7149d6
Add $image.Process
...
Which supports all the existing actions: resize, crop, fit, fill.
But it also allows plain format conversions:
```
{{ $img = $img.Process "webp" }}
```
Which will be a simple re-encoding of the source image.
Fixes #11483
2023-09-24 11:54:29 +02:00
Carl Johnson
c32094ace1
google_analytics_async.html: Add deprecation warning
2023-09-23 18:57:19 +02:00
dependabot[bot]
a262fd4ddb
build(deps): bump golang.org/x/tools from 0.12.0 to 0.13.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.12.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-22 16:34:14 +02:00
dependabot[bot]
f0d32455d2
build(deps): bump github.com/alecthomas/chroma/v2 from 2.8.0 to 2.9.1
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.8.0 to 2.9.1.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.8.0...v2.9.1 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-22 16:33:44 +02:00
dependabot[bot]
e8bc8e6d02
build(deps): bump github.com/evanw/esbuild from 0.19.2 to 0.19.3
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.2 to 0.19.3.
- [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.2...v0.19.3 )
---
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 >
2023-09-22 16:32:39 +02:00
Bjørn Erik Pedersen
f9b3c0f486
Add images.Opacity filter
...
Fixes #11471
2023-09-22 15:03:16 +02:00
dependabot[bot]
11fcda971c
build(deps): bump github.com/aws/aws-sdk-go from 1.44.314 to 1.45.14
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.44.314 to 1.45.14.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.314...v1.45.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 >
2023-09-21 21:42:32 +02:00
dependabot[bot]
f31375d4cc
build(deps): bump github.com/getkin/kin-openapi from 0.118.0 to 0.120.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.118.0 to 0.120.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.118.0...v0.120.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 >
2023-09-21 21:41:30 +02:00
dependabot[bot]
6415b599be
build(deps): bump golang.org/x/image from 0.11.0 to 0.12.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/image/compare/v0.11.0...v0.12.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 >
2023-09-21 21:40:20 +02:00
Bjørn Erik Pedersen
1e9b87f760
Upgrade to Go 1.21.1
...
See https://github.com/golang/go/issues?q=milestone%3AGo1.21.1+label%3ACherryPickApproved
Fixes #11474
Fixes #11414
2023-09-21 21:38:41 +02:00
Bjørn Erik Pedersen
275c0acbf6
commands: Update CLI docs with the important -u flag in hugo mod get
2023-09-20 18:01:52 +02:00
Joe Mooring
f9163155d3
create/skeletons: Improve viewport meta tag
...
Remove initial-scale=1.0 (this is the browser default)
Remove minimum-scale=1.0 (opinionated, can throw WCAG warning)
2023-09-19 11:46:05 +02:00
Bjørn Erik Pedersen
79a17d9e55
Fix tests for Go 1.21.1
...
Fixes #11450
2023-09-14 13:09:45 +02:00
Joe Mooring
75c0f88289
commands/gen: Remove default highlight style
...
Fixes #11445
2023-09-14 12:08:52 +02:00
Bjørn Erik Pedersen
18ce854626
Fix recently broken benchmark
2023-09-12 11:50:31 +02:00
Bjørn Erik Pedersen
69f5bad40f
Adjust baseline benchmarks
2023-09-12 10:48:04 +02:00
ilmari-lauhakangas
525bed9919
commands: Print language code after web server address info
2023-09-11 11:38:24 +02:00
hugoreleaser
2ae4786ca1
releaser: Prepare repository for 0.119.0-DEV
...
[ci skip]
2023-08-31 11:35:48 +00:00
hugoreleaser
da7983ac4b
releaser: Bump versions for release of 0.118.2
...
[ci skip]
2023-08-31 11:23:51 +00:00
Bjørn Erik Pedersen
df5d76fed9
release: Revert to building with Go 1.20
...
We need to investigate these issues, but that needs to wait.
Updates #11414
2023-08-31 13:20:35 +02:00
hugoreleaser
7362ba2204
releaser: Prepare repository for 0.119.0-DEV
...
[ci skip]
2023-08-31 09:56:08 +00:00
hugoreleaser
0eb480aa1d
releaser: Bump versions for release of 0.118.1
...
[ci skip]
2023-08-31 09:42:31 +00:00
Bjørn Erik Pedersen
7e9092eeeb
Revert to bullseye as the release build image
...
This was not available when I upgraded to Go 1.21, but is now, for some odd reason.
See https://github.com/bep/dockerfiles/commit/7761572995bed74c71ead9f3c3a71f624a4900ee
Fixes #11414
2023-08-31 11:37:36 +02:00
hugoreleaser
0200eaf58f
releaser: Prepare repository for 0.119.0-DEV
...
[ci skip]
2023-08-31 07:49:58 +00:00
hugoreleaser
28b640a220
releaser: Bump versions for release of 0.118.0
...
[ci skip]
2023-08-31 07:36:55 +00:00
Bjørn Erik Pedersen
db45dbbee8
Merge commit '77b976dd92b4f66657d83d875aef0c617df492d9'
2023-08-30 19:24:34 +02:00
Bjørn Erik Pedersen
77b976dd92
Squashed 'docs/' changes from a7e1e9be8..686c7b6eb
...
686c7b6eb ci(Netlify): specify `HUGO_VERSION` environment variable once
da99a356f fix: change heading level
e57da3f00 Update taxonomy methods
746172490 Update description of rendered breadcrumb navigation
6bc52fd40 Clarify term
dab07dcb0 Fix typo
e50fa452a Fix typo
6c1ea83c2 Update template overview page
a5dc97845 Clarify the append function
a135e52a0 Update GitHub hosting instructions
a51bf9f4f Update sections page
ed35fc6c4 Update archetypes and glossary
1a4522b3e Format examples
a70f20094 Use "hugo new content" to create content
673846ff9 Remove comment
b7febf0c5 Fix link
6f6fe2133 Miscellaneous edits
99227dd18 Remove lookup order table from output formats page
bc8870657 tools/editors: Add Prettier Plugin for Go Templates
157b169eb Update docs.yaml
1c8f514e0 Update cond function
e5f1f8113 Add assumptions to taxonomy and term template lookup order examples
475b406e2 Update postprocess
2d6cb8dfc glossary: Update content type
03b514bac Add descriptions to template lookup order example sections
06678f919 glossary: Fix broken link
4cd505612 Simplify news listing
fadb980db Update glossary of terms
491bacd78 Change order of example sections for template lookup order
04b8f39ec Create glossary of terms
12e896bc0 Remove reference to asciidoctor-rouge extension
055f7bb37 Insert missing words
8cd6ac387 Miscellaneous edits
2cbe17f41 Update configuration.md
529615373 Update data-templates.md
853154e65 Update theme
45f08627a resources.getRemote: Fix definition list
29a51dac1 Update docshelper
3bdfe88c6 Remove link to gitter from site footer
cacd0e461 Use "map" instead of "dictionary"
704dd5da6 Document the transform.Remarshal template function
e8d744951 Populate news section via GitHub releases API
3ff1118c7 Replace docs.json with docs.yaml
7726bbcac Use docs.json to generate default config throughout the site
57dca93df Use docs.json to generate default config for related content
74d5082c7 Add some .RenderShortcodes docs
cf5ab5062 netlify: Hugo 0.117.0
420f7aa69 Add all config to docshelper.json
git-subtree-dir: docs
git-subtree-split: 686c7b6eb1
2023-08-30 19:23:47 +02:00
Bjørn Erik Pedersen
e847a98db6
docs: Regen docs helper
2023-08-30 19:23:34 +02:00
Bjørn Erik Pedersen
45c9bbc6ca
Don't use the OS environment when creating config for docs
2023-08-30 19:22:44 +02:00
Bjørn Erik Pedersen
94fbab2a88
Delay the creation of cache directories until they're used
...
Fixes #11390
2023-08-30 16:39:06 +03:00
Matt Brown
c3f273b2d7
deploy: Create AWS session for CloudFront invalidation via Go CDK
...
This allows the AWS credentials to be picked up from the configured
target URL (like blob does) rather than the current behaviour of only
relying on the defaults.
Relying on the defaults here means having to specify credentials twice
(once in the URL for the blob, once in the environment for this code
path) when non-default AWS credentials are in used (e.g. via a profile).
2023-08-30 16:38:20 +03:00
OMOTO Tsukasa
d7dcc76d27
markup/goldmark: Add CJK extension
...
Fixes #10472
2023-08-30 13:08:45 +02:00
dependabot[bot]
9bf76fd7e8
build(deps): bump google.golang.org/api from 0.134.0 to 0.138.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.134.0 to 0.138.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.134.0...v0.138.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 >
2023-08-30 13:44:19 +03:00
Bjørn Erik Pedersen
15d3e48cec
Fix RegularPagesRecursive for the home page
...
Fixes #11396
2023-08-30 13:44:04 +03:00
dependabot[bot]
b2a02c3c5a
build(deps): bump golang.org/x/tools from 0.11.1 to 0.12.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.11.1 to 0.12.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.11.1...v0.12.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 12:17:42 +03:00
dependabot[bot]
6821d6f159
build(deps): bump gocloud.dev from 0.33.0 to 0.34.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.33.0 to 0.34.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.33.0...v0.34.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 >
2023-08-30 12:17:10 +03:00
dependabot[bot]
93c7ad12ec
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.9 to 2.1.0
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.9 to 2.1.0.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.9...v2.1.0 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 12:16:46 +03:00
Bjørn Erik Pedersen
d2ae9e1363
testscripts: Move hugo new tests to where they belong
2023-08-30 10:31:08 +02:00
Bjørn Erik Pedersen
3a8aad6b19
Fix .RawContent for empty content pages ( #11407 )
...
Fixes #11406
2023-08-30 10:11:20 +02:00
Lars Lehtonen
a7b93e6564
hugolib: Handle dropped error
2023-08-24 19:57:44 +03:00
Oleksandr Redko
65871d5cf4
common/loggers: Fix typo in option name
2023-08-23 22:52:37 +02:00
Joe Mooring
2e4bf89ec7
misc: Change dart-sass labels in workflows and snapcraft
2023-08-23 22:51:46 +02:00
Bjørn Erik Pedersen
ebaa733d45
Make sure resources directory isn't created in hugo new theme
...
Fixes #11382
2023-08-23 22:50:35 +02:00
Bjørn Erik Pedersen
24b1be45c1
Go 1.21 Upgrade
...
Fixes #11351
2023-08-23 21:49:27 +02:00
Bjørn Erik Pedersen
111f02db2a
testscripts: Make mod vendor test stable
2023-08-23 20:52:09 +02:00
michalbiesek
8a08f91d5b
dockerfile: Update Docker images
...
- `golang:1.21-alpine`
- `alpine:3.18`
2023-08-23 18:06:52 +02:00
Bjørn Erik Pedersen
dcf425c846
Fix it so disable a module does not disable transitive dependency required by others
...
The motivation behind the original implementation was probably to show disabled modules when running `hugo mod graph`.
Fixes #11376
2023-08-23 18:05:18 +02:00
Joe Mooring
9a8c84d600
create/skeletons: Move theme's site config to top level
...
Closes #11380
2023-08-23 18:05:00 +02:00
dependabot[bot]
a19d03b0e6
build(deps): bump github.com/yuin/goldmark from 1.5.5 to 1.5.6
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.5.5 to 1.5.6.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.5.5...v1.5.6 )
---
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 >
2023-08-23 13:19:49 +02:00
Joe Mooring
cdf0b3b7a6
modules: Make new cache directories read/write
...
Leave newly-created directories in the module cache read-write instead
of making them read-only.
Closes #11369
2023-08-22 08:47:02 +02:00
Oleksandr Redko
d979831dbd
deploy: Update InvalidateCloudFront to use Go CDK helper
2023-08-21 16:57:41 +02:00
Bjørn Erik Pedersen
bcf7421ea5
Avoid escaping HTML chars inside hugo_stats.json
...
Fixes #11371
2023-08-21 13:17:21 +02:00
Joe Mooring
b6538532f4
commands/new: Embed site and theme skeletons
...
The skeletons are used when creating new sites and themes with the CLI.
Closes #11358
2023-08-21 10:38:22 +02:00
Joe Mooring
90944aa261
docshelper: Improve template lookup order descriptions
...
- Always include example for "with layout/type set"
- Use lowercase for "set to" examples (lookup is case sensitive)
- Consistent use of taxonomy and term
Fixes gohugoio/hugoDocs#1734
2023-08-15 12:53:18 +02:00
dependabot[bot]
db7bc49690
build(deps): bump github.com/evanw/esbuild from 0.18.17 to 0.19.2
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.17 to 0.19.2.
- [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.18.17...v0.19.2 )
---
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 >
2023-08-14 11:46:23 +02:00
Bjørn Erik Pedersen
a2f6400d65
cache: Hide IsResourceDir from the exported config
2023-08-09 23:49:08 +02:00
Bjørn Erik Pedersen
7d74cd0cc8
commands: Handle floats without decimals in hugo config
...
Updates #11345
2023-08-08 09:13:17 +02:00
Bjørn Erik Pedersen
d139f30234
docs: Replace docs.json with docs.yaml
...
Updates #11345
2023-08-08 09:13:17 +02:00
Bjørn Erik Pedersen
b1b6912412
config: Add a type value for the tags related config entry
...
Which doesn't have any practical difference, but it looks cleaner in the generated docs.
2023-08-07 18:01:46 +02:00
dependabot[bot]
0de81c6430
build(deps): bump golang.org/x/net from 0.13.0 to 0.14.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/net/compare/v0.13.0...v0.14.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-07 14:20:55 +02:00
Bjørn Erik Pedersen
851bf3515e
Add all config to docshelper.json
...
Also consolidate so the mediaTypes and outputFormats are listed once only.
Fixes #11328
2023-08-07 13:42:54 +02:00
dependabot[bot]
d4a6c16c17
build(deps): bump golang.org/x/image from 0.10.0 to 0.11.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/image/compare/v0.10.0...v0.11.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 >
2023-08-07 12:18:03 +02:00
Bjørn Erik Pedersen
5d5fb22ead
Merge commit '7c62d6ef1654c0383eae474d3bd9ddf7754c1f30'
2023-08-07 10:38:12 +02:00
Bjørn Erik Pedersen
7c62d6ef16
Squashed 'docs/' changes from c43daf45f..a7e1e9be8
...
a7e1e9be8 Clarify front matter date fields
69df4fc22 Clarify how to determine if .Inner is populated
9046bf424 Document strings.ContainsNonSpace
8dbe5df90 Fix indentation and broken image
48ad4124e Typo: functions/after.md
d4c01b57b Link to detailed descriptions of canonfiyURLs and relativeURLs
4d9597302 Explain behaviour when appending to a slice containing other slices
69e24e44e Standardize right arrow usage
01b378726 Remove references to Google's Universal Analytics and the async template
d415bae24 Use shared file to describe regex syntax
e75dee6b8 snap: How to enable or revoke access to SSH keys
feed2d1c0 Remove hasPrefix and hasSuffix in favor of namespaced versions
3c6d2cfe5 security: Use default execution settings
461b5fcaf netlify: Hugo 0.116.1
95fac27a5 configuration: correct cacheDir description
cd9f1f929 configuration: Fix broken link
605394de4 netlify: Upgrade to Hugo 0.116.0
baf2a0f7b Merge branch 'tempv0.116.0'
ee51a9323 Update requirements for building from source
40189956d Editor tools: Remove duplicate sentence
fb0ff2621 docs: Regenerate CLI docs
e8a5665c4 Update where.md
7bc5cf15d Update hosting instructions
018a04314 docs: Update where
d33ae91cf docs: Update where function operators
9a108a664 docs: Rework the cacheDir documentation
git-subtree-dir: docs
git-subtree-split: a7e1e9be85
2023-08-07 10:35:12 +02:00
Bjørn Erik Pedersen
641390f8f5
Try to make test more stable
2023-08-05 11:40:18 +02:00
Bjørn Erik Pedersen
2e6191b2e0
deps: Sync go-i18n with upstream
...
Closes #11336
2023-08-05 11:37:04 +02:00
Bjørn Erik Pedersen
22861cb4dc
Return original error on resources.GetRemote retry timeouts
...
See #11327
2023-08-04 21:12:04 +02:00
Bjørn Erik Pedersen
16da1ade70
testing: Write test caches to /tmp
...
Fixes #11327
2023-08-04 18:46:43 +02:00
Bjørn Erik Pedersen
a3d42a277d
Add retry in resources.GetRemote for temporary HTTP errors
...
Fixes #11312
2023-08-04 17:16:52 +02:00
dependabot[bot]
2c20fd557a
build(deps): bump gocloud.dev from 0.24.0 to 0.33.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.33.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.33.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 >
2023-08-04 14:54:26 +02:00
dependabot[bot]
243736e751
build(deps): bump golang.org/x/net from 0.11.0 to 0.13.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.11.0 to 0.13.0.
- [Commits](https://github.com/golang/net/compare/v0.11.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 14:53:33 +02:00
dependabot[bot]
bf891c2259
build(deps): bump github.com/marekm4/color-extractor from 1.2.0 to 1.2.1
...
Bumps [github.com/marekm4/color-extractor](https://github.com/marekm4/color-extractor ) from 1.2.0 to 1.2.1.
- [Commits](https://github.com/marekm4/color-extractor/compare/v1.2.0...v1.2.1 )
---
updated-dependencies:
- dependency-name: github.com/marekm4/color-extractor
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 12:37:05 +02:00
dependabot[bot]
da0df0ada3
build(deps): bump github.com/frankban/quicktest from 1.14.5 to 1.14.6
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.14.5 to 1.14.6.
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.5...v1.14.6 )
---
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 >
2023-08-04 12:36:48 +02:00
dependabot[bot]
0885f8ec2b
build(deps): bump golang.org/x/image from 0.9.0 to 0.10.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/image/compare/v0.9.0...v0.10.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 >
2023-08-04 12:36:29 +02:00
dependabot[bot]
61be050a95
build(deps): bump github.com/clbanning/mxj/v2 from 2.5.7 to 2.7.0
...
Bumps [github.com/clbanning/mxj/v2](https://github.com/clbanning/mxj ) from 2.5.7 to 2.7.0.
- [Release notes](https://github.com/clbanning/mxj/releases )
- [Commits](https://github.com/clbanning/mxj/compare/2.5.7...v2.7 )
---
updated-dependencies:
- dependency-name: github.com/clbanning/mxj/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 09:54:06 +02:00
dependabot[bot]
65af75fb00
build(deps): bump golang.org/x/tools from 0.9.3 to 0.11.1
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.9.3 to 0.11.1.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.9.3...v0.11.1 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 09:53:24 +02:00
dependabot[bot]
2d75f74b86
build(deps): bump go.uber.org/automaxprocs from 1.5.2 to 1.5.3
...
Bumps [go.uber.org/automaxprocs](https://github.com/uber-go/automaxprocs ) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/uber-go/automaxprocs/releases )
- [Changelog](https://github.com/uber-go/automaxprocs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/automaxprocs/compare/v1.5.2...v1.5.3 )
---
updated-dependencies:
- dependency-name: go.uber.org/automaxprocs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 09:52:50 +02:00
dependabot[bot]
2ac3d61604
build(deps): bump github.com/hairyhenderson/go-codeowners
...
Bumps [github.com/hairyhenderson/go-codeowners](https://github.com/hairyhenderson/go-codeowners ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/hairyhenderson/go-codeowners/releases )
- [Commits](https://github.com/hairyhenderson/go-codeowners/compare/v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: github.com/hairyhenderson/go-codeowners
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 09:52:33 +02:00
Bjørn Erik Pedersen
ade7ec8187
Add Page.RenderShortcodes
...
A layouts/shortcodes/include.html shortcode may look like this:
```html
{{ $p := site.GetPage (.Get 0) }}
{{ $p.RenderShortcodes }}
```
Fixes #7297
2023-08-03 20:00:57 +02:00
Joe Mooring
8fa8ce3e48
Update GitHub issue template
2023-08-02 18:07:31 +02:00
dependabot[bot]
9dce45c25d
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.8 to 2.0.9.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.8...v2.0.9 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-02 11:23:57 +02:00
hugoreleaser
239f2e2c99
releaser: Prepare repository for 0.117.0-DEV
...
[ci skip]
2023-08-01 07:36:32 +00:00
hugoreleaser
3e1ea030a5
releaser: Bump versions for release of 0.116.1
...
[ci skip]
2023-08-01 07:24:54 +00:00
Bjørn Erik Pedersen
30885a6c5f
Fix module config watch regression
...
Fixes #11313
2023-08-01 09:05:53 +02:00
Joe Mooring
58da8554cb
deps: Fix Chroma dependency version
...
Fixes #11311
2023-07-31 21:01:43 +02:00
hugoreleaser
92c1594372
releaser: Prepare repository for 0.117.0-DEV
...
[ci skip]
2023-07-31 10:40:27 +00:00
hugoreleaser
5a7e0da84e
releaser: Bump versions for release of 0.116.0
...
[ci skip]
2023-07-31 10:28:28 +00:00
dependabot[bot]
d7db096a9d
build(deps): bump github.com/evanw/esbuild from 0.18.11 to 0.18.17
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.11 to 0.18.17.
- [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.18.11...v0.18.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 >
2023-07-31 11:30:01 +02:00
Bjørn Erik Pedersen
c1df5b1b0b
config: Do not fail on unknown config keys
...
Make it a warning.
One such example I found in an old site is `blackfriday`. These should be fixed/removed, but it's not important enough
to fail the build.
2023-07-31 11:20:37 +02:00
Bjørn Erik Pedersen
be8e2de597
resources: Fix spelling in method name
2023-07-30 21:12:33 +02:00
Bjørn Erik Pedersen
d297c8e1b5
docs: Regenerate CLI docs
2023-07-30 18:54:08 +02:00
Bjørn Erik Pedersen
fbb8eb39ec
Fix so temporary images do not get published
...
Fixes #10255
2023-07-30 18:52:34 +02:00
Sojon
87d9bffe74
readme: Fix link
2023-07-30 11:06:31 +02:00
Joe Mooring
d9fdcbe939
commands: Update cacheDir description
2023-07-29 22:09:55 +02:00
Bjørn Erik Pedersen
295d733883
Update where.md
2023-07-29 22:06:22 +02:00
Bjørn Erik Pedersen
d5247788ee
docs: Update where
...
Go doesn't use the RE2 (C++) library, it's a pure Go implementation.
2023-07-29 19:27:30 +02:00
Joe Mooring
036e260d8d
docs: Update where function operators
...
Related to #11281
2023-07-29 16:11:53 +02:00
Bjørn Erik Pedersen
a50356b9a2
docs: Rework the cacheDir documentation
2023-07-29 11:59:37 +02:00
Bjørn Erik Pedersen
8859be1c01
Merge commit '87de22d7464e239c775fbd48ebce1665d5b1e80d'
2023-07-29 11:17:28 +02:00
Bjørn Erik Pedersen
87de22d746
Squashed 'docs/' changes from 85befbb4d..c43daf45f
...
c43daf45f Update build-options.md
3ebbfedd4 Build options: Improve readability
5091bf6a0 Improve safeHTMLAttr explanation
b64cbce2e Fix description of collections.Apply
6ea264b9c netlify: Hugo 0.115.4
b42e7c542 Revert "config: Remove disableLiveReload"
35ce2290e Remove excess spaces in configuration docs
2edf761de Update listed titleCaseStyle default value
887f6fb97 config: Remove disableLiveReload
c9f49fb26 Fix typo
37d8569ac Remove tools associated with Atom
871d11b72 Fix URL in postprocess docs
bbb17d29f Update GitLab workflow
bc53ea5ce Use sentence-style capitalization for headings
7ca578786 netlify: Hugo 0.115.3
c5e010bd0 Merge branch 'tempv0.115.3'
c885604bf Remove starter kits page
4c0fe269e Update mention of Netlify CMS to Decap CMS
05067175c Consistently use file name instead of filename
763dd6404 Improve multilingual config example and descriptions
e5aa61ec5 Use lowercase when referring to front matter (#2132 )
7ba3d0c72 docs: Refresh docs.json
de8bddedf Update description of timeout configuration value
e1245d9f8 netify: Hugo 0.115.2
153a36bdf Merge branch 'tempv0.115.2'
707cec754 Fix typo in figure example in shortcodes.md
128cbe1e5 Improve taxonomy template examples
4e743ec36 Improve highlight function example
f96fa6805 transpile sass: Fixes typo
e4a8a21f7 Compile Sass to CSS, not SCSS
c1538bd00 docs: Regenerate CLI docs
bd4e33436 Add titleCaseStyle none and firstupper
6ff93d478 Update quick-start.md
5c6653cb1 Update build config examples and explanation
1458d9a43 Remove the `url` parameter
6a1e92044 netlify: Hugo 0.115.1
a9d5d6f2f Merge branch 'tempv0.115.1'
4c4882384 docs: Regen docs helper
d1aa1c1f5 Add link to PowerShell vs Windows PowerShell documentation
6e3b70c21 Fix link to Git installation instructions
4f8a9ca38 Clarify resources.Copy arguments
ee86dd121 Update theme
dc7c305cf Update theme
60c23920b Clarify caching for resources.FromString (#2120 )
5bf2fef6d netlify: Hugo 0.115.0
46bde87c5 Merge branch 'tempv0.115.0'
42cc48c16 Specify target path caching for resources.ExecuteAsTemplate (#2027 )
a54bf4cd0 Correct the sample code of mermaid (#2119 )
8c49b06fc docs: Update permalinks documentation
a4818d99b Page bundles: link to info about single vs. list page templates (#2116 )
3fc7744d7 snap: Document removable media access
dbd08f58a Update theme
df5b88633 netlify: Hugo 0.114.1
6b859834a Fix typo
9ec92cf68 Improve Dart Sass example for Netlify
2d294ece9 Add Dart Sass installation and usage documentation
4c6b77d6c Fix placement of curly braces
897812a50 Update template-debugging.md to include a jsonify example
22bca519b Update GitHub Pages hosting instructions (#2109 )
a964d93ce Document math functions new in v0.114.0 (#2108 )
9f4cb040e netlify: Hugo 0.114.0
55b4d9221 Merge branch 'tempv0.114.0'
93c4dcf93 docs: Regen docshelper
96f03c77f docs: Regen CLI docs
8e22a228a Clarify resource media type variables (#2106 )
2652da8d4 Update transform.Unmarshal.md (#2105 )
92657177a Update theme
4601c1d65 Update theme
a216f3145 Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'
eed8794f5 cache: Set default cache path based on $USER
git-subtree-dir: docs
git-subtree-split: c43daf45fd
2023-07-29 11:15:54 +02:00
Bjørn Erik Pedersen
bec9b80d95
Deprecate taxonomyTerm
...
In favour of 'taxonomy'
Closes #11256
2023-07-28 15:14:24 +02:00
Bjørn Erik Pedersen
1c97095ac0
Warn about unknown kinds in disableKinds
...
See #11256
2023-07-28 15:14:23 +02:00
Bjørn Erik Pedersen
b3cb6788b2
Move all Kind constants to its own package
...
See #11256
2023-07-28 15:14:23 +02:00
dependabot[bot]
5542f02fbc
build(deps): bump github.com/rogpeppe/go-internal
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.10.1-0.20230508101108-a4f6fabd84c5 to 1.11.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/commits/v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-28 14:50:56 +02:00
dependabot[bot]
0bc7ed9a17
build(deps): bump golang.org/x/image from 0.8.0 to 0.9.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/image/compare/v0.8.0...v0.9.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 >
2023-07-28 14:49:34 +02:00
Bjørn Erik Pedersen
36b5126050
Remove unused autogenerated method
2023-07-28 10:31:37 +02:00
Oleksandr Redko
2589b1295c
commands: Replace deprecated ioutil with os
2023-07-28 10:23:20 +02:00
Bjørn Erik Pedersen
ef6e813ca8
tpl/collections: Add BenchmarkWhereOps
...
```
BenchmarkWhereOps/eq-10 8702 120410 ns/op 52280 B/op 2515 allocs/op
BenchmarkWhereOps/ne-10 9829 120759 ns/op 52280 B/op 2515 allocs/op
BenchmarkWhereOps/like-10 6754 176377 ns/op 52917 B/op 2515 allocs/op
```
2023-07-28 10:08:13 +02:00
Joe Mooring
f4598a0986
tpl/collections: Add like operator to where function
...
Closes #11279
2023-07-28 09:53:00 +02:00
Joe Mooring
dc2a544fac
tpl/collections: Fix description of apply function
...
The collections.Apply template function cannot be used with maps.
2023-07-28 09:51:01 +02:00
Joe Mooring
916397320b
snap: Set cache location to $HOME/.cache/hugo_cache
2023-07-27 12:43:52 -07:00
Bjørn Erik Pedersen
b3f10556f0
Use os.UserCacheDir as first fallback if cacheDir is not set
...
We will now try
1. cacheDir (or, commonly set in environment as `HUGO_CACHEDIR`)
2. if on Netlify we use `/opt/build/cache/hugo_cache/`
3. os.UserCacheDir
4. A temp dir
Storing the cache, especially the module cache, in a temporary idea has had lots of hard to debug issues, especially on MacOS,
which this commit tries to fix.
This should also make it easier to locate the Hugo cache:
>UserCacheDir returns the default root directory to use for user-specific cached data. Users should create their own
application-specific subdirectory within this one and use that.
>
>On Unix systems, it returns $XDG_CACHE_HOME as specified by
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html if non-empty, else $HOME/.cache. On Darwin, it
returns $HOME/Library/Caches. On Windows, it returns %LocalAppData%. On Plan 9, it returns $home/lib/cache.
>
>If the location cannot be determined (for example, $HOME is not defined), then it will return an error.
Fixes #11286
Fixes #11291
2023-07-27 20:59:47 +02:00
Bjørn Erik Pedersen
4d7af757c9
Add a common regexp cache
...
```
BenchmarkGetOrCompileRegexp-10 73959368 13.71 ns/op 0 B/op 0 allocs/op
BenchmarkCompileRegexp-10 3143529 380.1 ns/op 872 B/op 10 allocs/op
```
2023-07-27 19:23:12 +02:00
Bjørn Erik Pedersen
7f058b8bab
Fix multiple languages in HUGO_DISABLELANGUAGES
...
Fixes #11278
2023-07-27 15:51:25 +02:00
Joe Mooring
575d7f8068
snap: Allow access to SSH keys and $HOME/.config/hugo
...
Closes #11288
2023-07-26 22:15:21 -07:00
Joe Mooring
739d10e8bd
deps: Upgrade github.com/yuin/goldmark v1.5.4 => v1.5.5
2023-07-26 21:05:02 +02:00
hugoreleaser
0dbe0f1a07
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-20 07:02:18 +00:00
hugoreleaser
dc95245212
releaser: Bump versions for release of 0.115.4
...
[ci skip]
2023-07-20 06:49:57 +00:00
Bjørn Erik Pedersen
d70b6c7d01
Fix broken handling of legacy taxonomyTerm in disableKinds
...
Fixes #11257
2023-07-19 19:59:17 +02:00
Bjørn Erik Pedersen
d947db3713
commands: Move testscript into its correct place
2023-07-19 19:54:36 +02:00
Bjørn Erik Pedersen
d8c94c354a
publisher: Improve class collector for dynamic classes
...
E.g.
* AlpinesJS' :class="isTrue 'class1' : 'class2'"
* And dynamic classes with colon in them, e.g. `hover:bg-white`
2023-07-19 19:50:37 +02:00
Bjørn Erik Pedersen
6bbec90014
Fix cache busting setup
...
By correctly capturing the target variable when compiling the cache buster.
Fixes #11268
2023-07-19 19:50:37 +02:00
Bjørn Erik Pedersen
5bd22ba85f
commands: Delay server builds after the watcher is set up
...
See #11264
2023-07-19 19:50:37 +02:00
Bjørn Erik Pedersen
7ae62f4aa3
Create hugo_stats.json if it's mounted but does not exists
...
A common pattern for Tailwind 3 is to mount that file to get it on the server watch list.
A common pattern is also to add hugo_stats.json to .gitignore.
This has meant that the first time you start the server (no hugo_stats.json), it just doesn't work as expected.
Fixes #11264
2023-07-19 19:50:37 +02:00
Bjørn Erik Pedersen
f1a061e9ed
Re-instate disableLiveReload as a config option (and not just a flag)
...
Closes #11259
2023-07-19 19:50:37 +02:00
Joe Mooring
2f11e673c5
common/htime: Fix localization of abbreviated month names
...
Fixes #11267
2023-07-19 19:00:18 +02:00
Bjørn Erik Pedersen
387c5f60f9
Improve error messages for PostCSS etc.
...
Fixes #9730
2023-07-17 20:42:32 +02:00
Bjørn Erik Pedersen
c406fd3a0e
Fix setting config from env with complex (e.g. YAML) strings
...
So you can do
```
HUGO_OUTPUTS="home: [rss]" hugo
```
And similar.
Fixes #11249
2023-07-16 18:08:23 +02:00
David Karlsson
286821e360
Fix for data mounts in sub folders
...
Before this change, data files from Hugo modules were always mounted at the
root of the `data` directory. The File and FileMetaInfo structs for modules
are different from 'native' data directories.
This changes how the keyParts for data files are generated so that data
from modules or native directories are treated the same.
2023-07-15 11:13:08 +02:00
hugoreleaser
79f15be5b0
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-13 16:23:50 +00:00
hugoreleaser
5c2e014a51
releaser: Bump versions for release of 0.115.3
...
[ci skip]
2023-07-13 16:11:34 +00:00
Bjørn Erik Pedersen
cc44583cc3
Improve behavior of defaultContentLanguageInSubdir when only the default language is enabled
...
1 .Create sitemapindex in root of publishDir (will contain link to sitemap.xml in defaultContentLanguage site)
2. Create index.html in root of publishDir (will redirect to defaultContentLanguage site)
Fixes #11229
2023-07-13 18:06:36 +02:00
Bjørn Erik Pedersen
4da672af88
Return error when .Render is invoked without arg
...
Fixes #11243
2023-07-13 18:06:36 +02:00
Joe Mooring
f1886f8c37
js: Pass tsconfig.json to esBuild
...
Note that esBuild only inspects/honors certain fields.
See https://esbuild.github.io/content-types/#tsconfig-json .
Fixes #11232
2023-07-13 15:19:04 +02:00
Bjørn Erik Pedersen
5bec50838c
tpl/collections: Fix WordCount (etc.) regression in Where, Sort, Delimit
...
Fixes #11234
2023-07-11 12:11:39 +02:00
Joe Mooring
f650e4d751
config/allconfig: Update timeout description
2023-07-08 23:22:26 +02:00
Joe Mooring
c934a45069
docs: Refresh docs.json
2023-07-08 23:20:11 +02:00
hugoreleaser
91b02091a5
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-08 17:19:03 +00:00
hugoreleaser
8966424e0e
releaser: Bump versions for release of 0.115.2
...
[ci skip]
2023-07-08 17:06:56 +00:00
Joe Mooring
72510969a6
snap: Allow access to AWS, Azure, and GCS config/credentials
...
Fixes #11122
2023-07-08 09:43:04 -07:00
Joe Mooring
70c5e485bb
snap: Update metadata and security.exec.osEnv
...
See #11217
2023-07-08 09:43:04 -07:00
Bjørn Erik Pedersen
a78b17d7f1
Make imageConfig work with modules
...
Fixes #11205
2023-07-08 17:20:18 +02:00
Bjørn Erik Pedersen
a481942532
Restore language.disabled config
...
Fixes #11219
2023-07-08 16:51:48 +02:00
Bjørn Erik Pedersen
0f921ace6f
Fix hugo mod vendor for modules with hugo.toml
...
Fixes #11221
2023-07-08 16:08:46 +02:00
Bjørn Erik Pedersen
6019953769
Fix static content files multilingual root regression
...
Fixes #11223
2023-07-08 16:08:46 +02:00
Bjørn Erik Pedersen
92e86702ea
Fix defaultContentLanguageInSubdir with only 1 language
...
Fixes #10064
2023-07-08 16:08:46 +02:00
David Karlsson
6c9ea022a9
config: Expand default security.exec.osEnv policy
...
To better support private Hugo modules and automatically
launching a text editor on content creation, this change
adds the following environment variables to the default
security policy:
- HOME
- XDG_CONFIG_HOME
- USERPROFILE
- SSH_AUTH_SOCK
- DISPLAY
- LANG
Fixes #9333
2023-07-07 13:54:06 +02:00
Bjørn Erik Pedersen
12d3469dd1
Add titleCaseStyle none and firstupper
...
Fixes #11204
2023-07-05 20:35:20 +02:00
Anthony Fok
bf7ee8a91a
Bump github.com/bep/clock v0.3.0 to renamed github.com/bep/clocks v0.5.0
2023-07-04 09:14:48 +02:00
hugoreleaser
d912491f2d
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-03 17:39:56 +00:00
hugoreleaser
857374e693
releaser: Bump versions for release of 0.115.1
...
[ci skip]
2023-07-03 17:28:25 +00:00
Bjørn Erik Pedersen
c27639b9a0
docs: Regen docs helper
2023-07-03 19:25:27 +02:00
Bjørn Erik Pedersen
ceb486f98c
Fix buildStats when tags and classes are disabled
...
Fixes #11202
2023-07-03 09:58:33 +02:00
Bjørn Erik Pedersen
5afc89f2bf
Rework the build.writeStats struct
...
Mostly to make it easier to toggle on/off this feature from the env.
See #11191
2023-07-02 13:04:11 +02:00
Joe Mooring
c1eac616d5
snap: Explicitly set security.exec.osenv during build
...
Fixes #11199
2023-07-01 17:55:23 -07:00
Joe Mooring
3c8256a137
snap: Restore security.exec.osenv whitelist
...
Fixes #11195
2023-07-01 14:55:57 -07:00
Bjørn Erik Pedersen
19d76ae96b
github: Build for Dragonfly in CI build
...
To discover upstream issues before we release.
2023-07-01 18:53:48 +02:00
Bjørn Erik Pedersen
11ecea6106
Make build.writeStats a struct
...
So you can do
```toml
[build.writeStats]
tags = true
classes = true
ids = false
```
Fixes #11191
2023-07-01 15:38:32 +02:00
dependabot[bot]
da98724bc8
build(deps): bump github.com/evanw/esbuild from 0.18.10 to 0.18.11
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.10 to 0.18.11.
- [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.18.10...v0.18.11 )
---
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 >
2023-07-01 15:33:24 +02:00
dependabot[bot]
4d470bb732
build(deps): bump github.com/alecthomas/chroma/v2 from 2.7.0 to 2.8.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.7.0...v2.8.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-01 10:33:49 +02:00
Bjørn Erik Pedersen
0ff8e13c1c
commands: Fix index out of range in hugo mod get
...
Fixes #11190
2023-06-30 15:57:46 +02:00
Bjørn Erik Pedersen
ffd37d4f75
Only print the path warnings once
...
We could reset and rerun it on server rebuilds, but that report needs a full build to make sense.
Also clean up the config vs flags in this area: Make all config settings match the flags e.g. `printPathWarnings`, but set up aliases for the
old.
Fixes #11187
2023-06-30 10:24:28 +02:00
Bjørn Erik Pedersen
b4b65245b2
Update README.md
2023-06-30 08:01:25 +02:00
hugoreleaser
87886f40d1
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-06-29 16:09:06 +00:00
hugoreleaser
67caf50698
releaser: Bump versions for release of 0.115.0
...
[ci skip]
2023-06-29 15:56:39 +00:00
Bjørn Erik Pedersen
7917961d59
Misc permalinks adjustments
...
* Move config loading to the page package
* Fix a lower bound panic for the `:sections` slice syntax.
* Always return the `:title`
* Add some permalinks integration tests
* Also see issues below
Fixes #9448
Fixes #11184
See #8523
2023-06-29 10:14:19 +02:00
Bjørn Erik Pedersen
80ecb95895
commands: Handle hugo mod get --help
...
Fixes #11141
2023-06-29 08:53:50 +02:00
Joe Mooring
58e09cc6c7
Update README.md
2023-06-28 20:14:41 +02:00
Andreas Deininger
635cc346ce
commands: Fix panic when running hugo new theme without theme name
...
Closes #11162 .
2023-06-28 16:20:54 +02:00
Mos Roshanavand
12646750aa
Print help message when triggered with no flags
2023-06-28 14:58:36 +02:00
Bjørn Erik Pedersen
79639c981c
Fix output formats and media type per language config regression
...
Fixes #11159
2023-06-28 12:33:33 +02:00
dependabot[bot]
9b313cec1b
build(deps): bump github.com/evanw/esbuild from 0.18.5 to 0.18.10
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.5 to 0.18.10.
- [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.18.5...v0.18.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 >
2023-06-28 10:22:19 +02:00
khayyam
b74b8d6478
common/collections: Fix append regression to allow appending nil
...
Closes #11180
2023-06-28 09:41:36 +02:00
Andreas Deininger
793e38f5ce
commands: Fix help message for hugo new theme
...
Closes #11161 .
2023-06-28 09:30:27 +02:00
Bjørn Erik Pedersen
7f698c8934
Don't panic on invalid security whitelist regexp
...
Fixes #11176
2023-06-28 08:57:28 +02:00
Bjørn Erik Pedersen
fa0e16f4c7
Fix false path warnings with resources.PostProcess
...
Fixes #7735
2023-06-27 21:55:35 +02:00
Joe Mooring
12e4c4d5dc
docs: Update permalinks documentation
...
See #8523
See #10847
2023-06-27 11:04:49 +02:00
Bjørn Erik Pedersen
bac03f4076
Merge branch 'master' of github.com:gohugoio/hugo
2023-06-26 20:48:44 +02:00
Mai-Lapyst
cc14c6a52c
resources/page: Allow section and taxonomy pages to have a permalink configuration
...
Allows using permalink configuration for sections (branch bundles) and
also for taxonomy pages. Extends the current permalink configuration to
be able to specified per page kind while also staying backward compatible:
all permalink patterns not dedicated to a certain kind, get automatically
added for both normal pages and term pages.
Fixes #8523
2023-06-26 15:31:01 +02:00
Oleksandr Redko
e3308a0bbc
tpl/tplimpl: Fix typo in global variable name
2023-06-26 15:12:21 +02:00
Joe Mooring
019299b0b0
commands: Enable format flag with hugo new site
...
Fixes #11155
2023-06-24 20:26:54 +02:00
Bjørn Erik Pedersen
23ed087c4e
Update README.md
2023-06-24 11:28:29 +02:00
Bjørn Erik Pedersen
a018259bcf
Merge branch 'release-0.114.1'
2023-06-23 13:18:21 +02:00
hugoreleaser
ad5e04daa4
releaser: Prepare repository for 0.115.0-DEV
...
[ci skip]
2023-06-23 11:14:00 +00:00
hugoreleaser
e9b716ad98
releaser: Bump versions for release of 0.114.1
...
[ci skip]
2023-06-23 11:02:58 +00:00
Bjørn Erik Pedersen
ae31dbdd1e
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.30.0"
...
This reverts commit 941818295d .
2023-06-23 13:01:09 +02:00
Bjørn Erik Pedersen
5b4bfc2db7
Fix broken nodeploy setup
...
Fixes #11149
2023-06-23 12:40:43 +02:00
dependabot[bot]
92f55f1121
build(deps): bump github.com/niklasfasching/go-org from 1.6.6 to 1.7.0
...
Bumps [github.com/niklasfasching/go-org](https://github.com/niklasfasching/go-org ) from 1.6.6 to 1.7.0.
- [Commits](https://github.com/niklasfasching/go-org/compare/v1.6.6...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/niklasfasching/go-org
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-23 12:17:35 +02:00
Bjørn Erik Pedersen
078226dd66
Fix broken nodeploy setup
...
Fixes #11149
2023-06-23 12:11:45 +02:00
Joe Mooring
06d228aad1
snap: Switch from Embedded Dart Sass to Dart Sass ( #11146 )
...
- Continues to get latest version of Dart Sass during each build
- Removes superfluous BUILD_TAGS logic (we only build extended)
2023-06-21 15:39:02 -07:00
Bjørn Erik Pedersen
b1016d2e26
commands: Make hugo env respect --logLevel
...
Fixes #11145
2023-06-21 23:18:38 +02:00
Brian Knight
49336bfc58
commands: Update Jekyll post-import output
...
Update CLI output after a successful Jekyll import to
suggest a maintained theme and include clearer steps
to running a server locally.
Fixes #10715
Co-authored-by: Joe Mooring <joe@mooring.com >
2023-06-21 20:38:54 +02:00
dependabot[bot]
941818295d
build(deps): bump gocloud.dev from 0.24.0 to 0.30.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.30.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.30.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 >
2023-06-20 14:25:37 +02:00
dependabot[bot]
5491e55477
build(deps): bump github.com/evanw/esbuild from 0.18.4 to 0.18.5
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.4 to 0.18.5.
- [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.18.4...v0.18.5 )
---
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 >
2023-06-20 09:57:34 +02:00
Joe Mooring
bf7af9043d
deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.7
...
Fixes #11132
2023-06-20 09:18:18 +02:00
hugoreleaser
5e12bf7dc3
releaser: Prepare repository for 0.115.0-DEV
...
[ci skip]
2023-06-19 17:12:27 +00:00
hugoreleaser
9df2ec7988
releaser: Bump versions for release of 0.114.0
...
[ci skip]
2023-06-19 17:01:43 +00:00
Bjørn Erik Pedersen
59300faae4
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.29.0"
...
This reverts commit 7bed16c30f .
Again ...
It doesn't build on Dragonfly:
```
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:273:15: undefined: mmb
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:279:65: undefined: mmb
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:281:22: undefined: mmb
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:287:39: undefined: mmb
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:293:18: undefined: newMMB
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:303:37: undefined: mmb
• core: Total in 123.22s …
error running command: exit status 1
Exited with code exit status 1
```
2023-06-19 18:56:31 +02:00
Bjørn Erik Pedersen
9f98b3e718
docs: Regen docshelper
2023-06-19 17:52:52 +02:00
Bjørn Erik Pedersen
3ab84651c6
Add empty Environ when loading test config
...
To prevent OS environment vars confusing the tests.
2023-06-19 17:49:45 +02:00
Bjørn Erik Pedersen
7241b5fd51
docs: Regen CLI docs
2023-06-19 17:40:17 +02:00
Bjørn Erik Pedersen
6dfbd24797
common/loggers: Drop the bold INFO etc. prefixes
...
That looked a little too much.
2023-06-19 17:35:43 +02:00
Bjørn Erik Pedersen
f59c3c0214
loggers: Avoid using Logf for the LevelLoggerToWriter
...
To prevent issues with percentage chars.
2023-06-19 15:56:44 +02:00
Bjørn Erik Pedersen
3ca29b1563
tocss/dartsas: Avoid using Logf for the internal Dart Sass logging
...
As that does not work when percentages are used in the log messages.
2023-06-19 13:27:03 +02:00
Bjørn Erik Pedersen
fdb0b7fb19
helpers: Remove superflous formatting flag in deprecation warnings
2023-06-19 13:02:47 +02:00
Bjørn Erik Pedersen
49dd53a405
Revert "deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.6"
...
This reverts commit 409c6c3fcd .
See #11132
2023-06-19 12:54:15 +02:00
Andreas Deininger
68d9d3ebd7
all: Fix some typos
2023-06-19 09:28:10 +02:00
Oleksandr Redko
9009c8cdca
all: Fix typos in function names and comments
2023-06-19 09:26:29 +02:00
Bjørn Erik Pedersen
12dc9a6e4a
deploy: Fix deploy defaults for non-zero flag values (e.g. maxDeletes, invalidateCDN)
...
This was broken in the config rewrite in Hugo 0.112.0.
The workaround is to be explicit about setting these flag values (even if just using the defaults), e.g.:
```
hugo deploy --invalidateCDN --maxDeletes 256
```
Fixes #11127
2023-06-18 19:38:34 +02:00
Bjørn Erik Pedersen
1b85303ac2
common/loggers: Re-add trailing newline in logger.Printf
...
Fixes #11130
2023-06-18 18:56:45 +02:00
dependabot[bot]
8a04d47ab7
build(deps): bump github.com/evanw/esbuild from 0.18.3 to 0.18.4
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.3 to 0.18.4.
- [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.18.3...v0.18.4 )
---
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 >
2023-06-18 13:43:00 +02:00
Bjørn Erik Pedersen
7c9fada778
Replace the old log setup, with structured logging etc.
...
Fixes #11124
2023-06-18 13:03:04 +02:00
Joe Mooring
0e79446586
Revert "snap: Transition base snap from core20 to core22 ( #11101 )" ( #11125 )
...
Closes #11116
2023-06-17 08:41:15 -07:00
dependabot[bot]
aaf2e9693a
build(deps): bump github.com/evanw/esbuild from 0.18.2 to 0.18.3
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.2 to 0.18.3.
- [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.18.2...v0.18.3 )
---
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 >
2023-06-16 07:42:25 +02:00
Bjørn Erik Pedersen
ee359df172
Fix upstream Go templates bug with reversed key/value assignment
...
The template packages are based on go1.20.5 with the patch in befec5ddbbfbd81ec84e74e15a38044d67f8785b added.
This also includes a security fix that now disallows Go template actions in JS literals (inside backticks).
This will throw an error saying "... appears in a JS template literal".
If you're really sure this isn't a security risk in your case, you can revert to the old behaviour:
```toml
[security]
[security.gotemplates]
allowActionJSTmpl = true
```
See https://github.com/golang/go/issues/59234
Fixes #11112
2023-06-15 23:04:33 +02:00
dependabot[bot]
0f989d5e21
build(deps): bump golang.org/x/sync from 0.2.0 to 0.3.0
...
Bumps [golang.org/x/sync](https://github.com/golang/sync ) from 0.2.0 to 0.3.0.
- [Commits](https://github.com/golang/sync/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sync
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-15 19:52:14 +02:00
Bjørn Erik Pedersen
f73c567534
common/collections: Always make a copy of the input slice in Append
...
Fixes #10458 .
2023-06-14 20:18:54 +02:00
Bjørn Erik Pedersen
d178fe94fe
tpl/collections: Fix append when appending a slice to a slice of slices
...
Fixes #11093
2023-06-14 20:18:54 +02:00
dependabot[bot]
732dcb848f
build(deps): bump google.golang.org/api from 0.123.0 to 0.127.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.123.0 to 0.127.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.123.0...v0.127.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 >
2023-06-14 18:59:07 +02:00
dependabot[bot]
944859f1ad
build(deps): bump golang.org/x/tools from 0.9.1 to 0.9.3
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.9.1 to 0.9.3.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.9.1...v0.9.3 )
---
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 >
2023-06-14 14:43:15 +02:00
Bjørn Erik Pedersen
90b2674ddc
Re-add site.RSSLink (and deprecate it)
...
Fixes #11110
2023-06-14 12:18:11 +02:00
dependabot[bot]
bb9377b5e5
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.11 to 2.2.12
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.11 to 2.2.12.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.11...v2.2.12 )
---
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 >
2023-06-14 12:06:11 +02:00
dependabot[bot]
e88f1b80b8
build(deps): bump github.com/getkin/kin-openapi from 0.117.0 to 0.118.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.117.0 to 0.118.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.117.0...v0.118.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 >
2023-06-14 12:05:47 +02:00
dependabot[bot]
516f0cb6ce
build(deps): bump golang.org/x/net from 0.10.0 to 0.11.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-14 11:58:31 +02:00
Bjørn Erik Pedersen
21d17566a3
Fix .Width and .Height for animated gifs
...
Fixes #11079
2023-06-14 09:21:22 +02:00
Joe Mooring
35e9b3ed1e
snap: Transition base snap from core20 to core22 ( #11101 )
...
- Syntax changes
- Bump Go from 1.19 to 1.20
- Remove unused build tag logic (we only build the extended version)
2023-06-13 14:52:19 -07:00
Bjørn Erik Pedersen
3c1deaf201
Squashed 'docs/' changes from 1d5548d73..85befbb4d
...
85befbb4d Update plainify.md
56e137043 Update comparison operators (#2104 )
4241135e0 Front matter docu: improve link to TOML spec (#2102 )
5115de3c0 netlify: Hugo 0.113.0
99b74a053 Merge branch 'temp01130'
1622d5d1a docs: Regenerate CLI docs
adb4297eb netlify: Hugo 0.112.7
cd6813309 Update editors.md to include vim-hugo (#2098 )
f7c2406dd netlify: Hugo 0.112.6
b891028c3 docs: Regenerate CLI docs
git-subtree-dir: docs
git-subtree-split: 85befbb4dc
2023-06-13 20:43:03 +02:00
Bjørn Erik Pedersen
a0009e070a
Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'
2023-06-13 20:43:03 +02:00
dependabot[bot]
7bed16c30f
build(deps): bump gocloud.dev from 0.24.0 to 0.29.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.29.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.29.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 >
2023-06-13 20:42:04 +02:00
Bjørn Erik Pedersen
2ba2271e4a
tpl/math: Allow variadic math functions to take slice args, add math.Product, math.Sum
...
* Update math.Min and math.Max to allow 1 or more args, either scalar or slice, or combination of the two
* Add math.Sum (allow 1 or more args, either scalar or slice, or combination of the two)
* Add math.Product (allow 1 or more args, either scalar or slice, or combination of the two)
Fixes #11030
2023-06-13 20:00:00 +02:00
Bjørn Erik Pedersen
60a2cdf72d
Fix config merge regression with root slices (e.g. disableKinds)
...
Fixes #11089
2023-06-13 18:01:23 +02:00
dependabot[bot]
e08cfc8ca0
build(deps): bump golang.org/x/image from 0.7.0 to 0.8.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/image/compare/v0.7.0...v0.8.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 >
2023-06-13 17:55:34 +02:00
Bjørn Erik Pedersen
ef147f4e87
commands: Remove flags log, verboseLog, add flag logLevel, deprecate flags verbose and debug
...
Fixes #9648
Fixes #11071
2023-06-13 17:49:38 +02:00
dependabot[bot]
489519566e
build(deps): bump github.com/magefile/mage from 1.14.0 to 1.15.0
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.14.0 to 1.15.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.14.0...v1.15.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 >
2023-06-13 12:59:49 +02:00
dependabot[bot]
91c0b0f76b
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.6 to 2.0.8
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.6 to 2.0.8.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.6...v2.0.8 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-13 12:58:44 +02:00
dependabot[bot]
baef235d50
build(deps): bump github.com/evanw/esbuild from 0.17.19 to 0.18.2
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.17.19 to 0.18.2.
- [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.17.19...v0.18.2 )
---
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 >
2023-06-13 12:57:46 +02:00
Bjørn Erik Pedersen
0541a1b57d
Fix handling of aliases (e.g. hugo serve)
...
Fixes #11090
2023-06-13 10:47:51 +02:00
Erica Mays
258884f44f
cache: Set default cache path based on $USER
...
Change the default cache directory to `$TMPDIR/hugo_cache_$USER`, so
that multi-user systems do not have caches that interfere with each
other. The other cache-choosing logic (e.g. Netlify exceptions,
configuration options) are not affected.
Fixes #7391
2023-06-12 21:33:35 +02:00
dependabot[bot]
254c2b323c
build(deps): bump go.uber.org/atomic from 1.10.0 to 1.11.0
...
Bumps [go.uber.org/atomic](https://github.com/uber-go/atomic ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/uber-go/atomic/releases )
- [Changelog](https://github.com/uber-go/atomic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/atomic/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/atomic
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-12 21:02:49 +02:00
dependabot[bot]
84f71ba8ff
build(deps): bump github.com/hairyhenderson/go-codeowners
...
Bumps [github.com/hairyhenderson/go-codeowners](https://github.com/hairyhenderson/go-codeowners ) from 0.2.3-0.20201026200250-cdc7c0759690 to 0.3.0.
- [Release notes](https://github.com/hairyhenderson/go-codeowners/releases )
- [Commits](https://github.com/hairyhenderson/go-codeowners/commits/v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/hairyhenderson/go-codeowners
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-12 18:00:11 +02:00
Bjørn Erik Pedersen
69f0e88a4a
resources: Remove failing and superflous test assertion
2023-06-12 17:57:18 +02:00
dependabot[bot]
82adc972e8
build(deps): bump github.com/frankban/quicktest from 1.14.4 to 1.14.5
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.14.4 to 1.14.5.
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.4...v1.14.5 )
---
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 >
2023-06-12 17:57:18 +02:00
dependabot[bot]
60533fdc06
build(deps): bump github.com/mattn/go-isatty from 0.0.17 to 0.0.19
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.17 to 0.0.19.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.17...v0.0.19 )
---
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 >
2023-06-12 17:03:22 +02:00
dependabot[bot]
261143bbbc
build(deps): bump github.com/spf13/afero from 1.9.3 to 1.9.5
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.3 to 1.9.5.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.3...v1.9.5 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-12 17:03:04 +02:00
Oleksandr Redko
b8526f32fa
commands,config: Fix typo in log and error messages
2023-06-12 16:45:20 +02:00
Bjørn Erik Pedersen
ed7e250068
helpers: Avoid url.Parse in RelURL and AbsURL if we can
...
```
RelURL-10 159ns ± 5% 18ns ± 4% -88.89% (p=0.029 n=4+4)
AbsURL/relurl-10 532ns ± 0% 537ns ± 0% +1.09% (p=0.029 n=4+4)
AbsURL/absurl-10 142ns ± 0% 4ns ± 3% -96.91% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
RelURL-10 144B ± 0% 0B -100.00% (p=0.029 n=4+4)
AbsURL/relurl-10 544B ± 0% 544B ± 0% ~ (all equal)
AbsURL/absurl-10 144B ± 0% 0B -100.00% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
RelURL-10 1.00 ± 0% 0.00 -100.00% (p=0.029 n=4+4)
AbsURL/relurl-10 10.0 ± 0% 10.0 ± 0% ~ (all equal)
AbsURL/absurl-10 1.00 ± 0% 0.00 -100.00% (p=0.029 n=4+4)
```
2023-06-12 16:15:59 +02:00
Bjørn Erik Pedersen
6a09e7f28e
Adjust benchmarks
2023-06-12 16:06:11 +02:00
Bjørn Erik Pedersen
29e5cbb699
Adjust benchmark
2023-06-12 15:18:41 +02:00
Bjørn Erik Pedersen
ded6866001
Add BenchmarkAbsURL
2023-06-12 15:15:28 +02:00
Joe Mooring
e1d43021ca
helpers: Improve schema detection when creating relative URLs
...
Fixes #11080
2023-06-12 15:01:30 +02:00
Bjørn Erik Pedersen
5db215d4d6
helpers: Add a basic benchmark for RelURL
2023-06-12 14:44:07 +02:00
Bjørn Erik Pedersen
b7dc93ca11
config: Remove unexpected _merge keys introduced in author and social maps
...
Fixes #11083
2023-06-12 14:30:43 +02:00
Bjørn Erik Pedersen
f210188da3
Upgrade to v2 of the Dart Sass Embedded Protocol
...
Fixes #11059
2023-06-12 13:47:38 +02:00
Bjørn Erik Pedersen
c782ebd89c
Fix indented SASS imports for Dart Sass
...
Fixes #11074
2023-06-12 13:47:38 +02:00
hugoreleaser
73779707a2
releaser: Prepare repository for 0.114.0-DEV
...
[ci skip]
2023-06-05 15:16:33 +00:00
hugoreleaser
085c1b3d61
releaser: Bump versions for release of 0.113.0
...
[ci skip]
2023-06-05 15:04:51 +00:00
Bjørn Erik Pedersen
6c955cc3df
docs: Regenerate CLI docs
2023-06-05 11:54:57 +02:00
Bjørn Erik Pedersen
5446900dee
commands: Update CLI docs vs server and production
...
Fixes #11067
2023-06-05 11:53:14 +02:00
Bjørn Erik Pedersen
cf38c73f53
commands: Add TLS/HTTPS support to hugo server
...
* commands: Add TLS/HTTPS support to hugo server
The "auto cert" handling in this PR is backed by mkcert (see link below).
To get this up and running on a new PC, you can:
```
hugo server trust
hugo server --tlsAuto
```
When `--tlsAuto` (or `--tlsCertFile` and `--tlsKeyFile`) is set and no `--baseURL` is provided as a flag, the server is
started with TLS and `https` as the protocol.
Note that you only need to run `hugo server trust` once per PC.
If you already have the key and the cert file (e.g. by using mkcert directly), you can do:
```
hugo server --tlsCertFile mycert.pem --tlsKeyFile mykey.pem
```
See https://github.com/FiloSottile/mkcert
Fixes #11064
2023-06-05 09:53:53 +02:00
hugoreleaser
536bf71abe
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-06-02 07:19:22 +00:00
hugoreleaser
ea3c95a7b0
releaser: Bump versions for release of 0.112.7
...
[ci skip]
2023-06-02 07:07:11 +00:00
Bjørn Erik Pedersen
5e5ce00d41
Fix menuItem.URL when pageRef is not set
...
Fixes #11062
2023-06-02 09:04:00 +02:00
Bjørn Erik Pedersen
a191b38ac8
Don't inject livereload script on hugo -w
...
Fixes #11061
2023-06-02 09:04:00 +02:00
Oleksandr Redko
382c726e63
markup: Fix typo in function and struct names
2023-06-01 17:59:44 +02:00
Oleksandr Redko
4c46f9400b
all: Replace deprecated ioutil with io and os
2023-06-01 17:52:21 +02:00
hugoreleaser
8c7a4e995b
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-06-01 09:15:08 +00:00
hugoreleaser
2ca0fcc448
releaser: Bump versions for release of 0.112.6
...
[ci skip]
2023-06-01 09:03:29 +00:00
Bjørn Erik Pedersen
a6d774e809
docs: Regenerate CLI docs
2023-06-01 10:51:41 +02:00
Bjørn Erik Pedersen
dfb1895e4b
Squashed 'docs/' changes from 1798dc0d5..1d5548d73
...
1d5548d73 build.cachebusters
3c966904d netlify: Hugo 0.112.5
b32c3a811 Bump min Go version to 1.19 when building from source (#2095 )
9dea2d2f9 netlify: Hugo 0.112.4
b3fb4a1bc docs: Regenerate CLI docs
291ecd301 docs: Regen CLI docs
c886958e2 Merge commit 'd3927310d5b2404c3238f9b899db3329ea516490'
git-subtree-dir: docs
git-subtree-split: 1d5548d735
2023-06-01 10:51:24 +02:00
Bjørn Erik Pedersen
9e4072ac23
Merge commit 'dfb1895e4b82b2249d9baaed37ac7ae5e855a126'
2023-06-01 10:51:24 +02:00
Bjørn Erik Pedersen
0ef2952846
commands: Add --lang to hugo config
...
Fixes #11057
2023-06-01 10:49:21 +02:00
Bjørn Erik Pedersen
e3ae8f025d
Make sure any default mounts show up in "hugo config"
...
Fixes #11040
2023-06-01 10:49:21 +02:00
Bjørn Erik Pedersen
06faee5beb
github: Fix Windows build
...
Also update some Actions to get rid of some warnings.
Fixes #11052
2023-06-01 09:54:40 +02:00
Joe Mooring
409c6c3fcd
deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.6
2023-05-31 08:08:26 +02:00
Joe Mooring
ff77a927f9
tpl/tplimpl: Use .Language.LanguageCode in built-in templates
2023-05-30 20:10:16 +02:00
Bjørn Erik Pedersen
9cdca1f958
Fail on invalid defaultContentLanguage
...
Fixes #11044
2023-05-30 15:59:43 +02:00
Bjørn Erik Pedersen
6462eecfbd
Avoid panic in invalid language config
...
Fixes #11046
2023-05-30 15:59:43 +02:00
Bjørn Erik Pedersen
a7d6b1413f
Don't panic on empty yaml config params
...
Fixes #11047
2023-05-30 15:59:43 +02:00
Bjørn Erik Pedersen
3f497d496f
Prevent double escaping of image alt-text in Goldmar typographer
...
Fixes #11045
2023-05-30 15:03:54 +02:00
Bjørn Erik Pedersen
32585696be
Fix potential deadlock in ByParam
...
Fixes #11039
2023-05-29 14:01:07 +02:00
hugoreleaser
d47225ce9e
releaser: Bump versions for release of 0.112.5
...
[ci skip]
2023-05-29 06:43:02 +00:00
Bjørn Erik Pedersen
e3dfc76fa8
Fix it so languageCode on top level config still works
...
This is common for monolingual sites, and we broke this in Hugo 0.112.4.
Fixes #11037
2023-05-28 18:42:10 +02:00
hugoreleaser
cd59216de4
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-28 13:15:07 +00:00
hugoreleaser
e285153d7f
releaser: Bump versions for release of 0.112.4
...
[ci skip]
2023-05-28 13:04:00 +00:00
Bjørn Erik Pedersen
20ea2e0c65
docs: Regenerate CLI docs
2023-05-28 13:07:47 +02:00
Bjørn Erik Pedersen
51d0a0ab01
commands: Add the common build flags to the config commands
...
Which allows to see the config with `--theme` applied.
Updates #11018
2023-05-28 13:06:26 +02:00
Bjørn Erik Pedersen
fd099331ec
Fix Processed images count regression for multiple languages
...
Fixes #11002
2023-05-28 12:55:44 +02:00
Bjørn Erik Pedersen
43f1282e73
commands: Reinstate some of the removed build flags (e.g. --theme) to new and mod
...
Fixes #11018
2023-05-28 12:55:44 +02:00
Bjørn Erik Pedersen
e96cdfe966
Don't create the public folder unless needed
...
Fixes #11031
2023-05-28 12:55:44 +02:00
Bjørn Erik Pedersen
ffdbce5787
docs: Regen CLI docs
2023-05-27 17:03:14 +02:00
Bjørn Erik Pedersen
a838a27e4c
Merge commit 'd3927310d5b2404c3238f9b899db3329ea516490'
2023-05-27 17:02:23 +02:00
Bjørn Erik Pedersen
d3927310d5
Squashed 'docs/' changes from 39af43ef1..1798dc0d5
...
1798dc0d5 Update theme
403fa716e Update CLI documentation (#2092 )
aade5a09e Correct media subtype example
53cd9dea6 netlify: Hugo 0.112.3
b78b86cb1 Add source/target warning to resources.Copy (#2091 )
50c299729 netlify: Hugo 0.112.2
73197046f Change config.xxx to hugo.xxx throughout the documentation (#2090 )
d489d4c6f Add hugo.WorkingDir to docs (#2089 )
7487df809 Fix typos (#2088 )
6d0572cd6 netlify: Hugo 0.112.1
6838600b2 netlify: Hugo 0.112.0
513e7a80f Merge branch 'tempv0.112.0'
91eb44275 Some more about 0.112.0
bd3b33a27 docs: Regen docshelper
fb3027daf docs: Regen CLI docs
8e7b8e987 Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'
a942ceef4 tpl/tplimpl: Add img loading attribute to figure shortcode (#10927 )
0e0c7b25e tpl/urls: Return empty string when JoinPath has zero args
310ce949a tpl/urls: Add JoinPath template function
ae435ca77 tpl: Add math.Abs
f340139f8 Revert "Update syntax-highlighting.md (#10929 )" (#10930 )
917a0e24d Update syntax-highlighting.md (#10929 )
git-subtree-dir: docs
git-subtree-split: 1798dc0d54
2023-05-27 16:59:59 +02:00
Bjørn Erik Pedersen
273d9f69a6
commands: Fail the build when no config file or config dir
...
Fixes #11019
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
a6257d8a44
langs: Remove the Language.Params deprecation message for now
...
Closes #11025
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
6c2db0dfb0
Add language.LanguageCode
...
But keep an alias at Site
Closes #11027
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
8f293a1855
Fix --renderStaticToDisk regression
...
Fixes #11026
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
901cd970db
commands: Re-introduce the -f shorthand for hugo new site
...
Fixes #11015
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
f86b5f70a6
commands: Move the --format flag to only the commands that support it
...
Fixes #11022
2023-05-27 16:56:54 +02:00
hugoreleaser
3297b395d8
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-24 14:54:43 +00:00
hugoreleaser
ba6f74e404
releaser: Bump versions for release of 0.112.3
...
[ci skip]
2023-05-24 14:42:50 +00:00
Bjørn Erik Pedersen
231374a1fa
Fix regression when loading config -e is empty or HUGO_ENV or HUGO_ENVIRONMENT is set
...
Fixes #11013
2023-05-24 16:39:31 +02:00
hugoreleaser
5adc837904
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-24 10:57:20 +00:00
hugoreleaser
f89108f2b1
releaser: Bump versions for release of 0.112.2
...
[ci skip]
2023-05-24 10:45:31 +00:00
Bjørn Erik Pedersen
dd67922013
minifiers: Make sure JS.Version always has a value
...
Fixes #11012
2023-05-24 12:42:56 +02:00
Bjørn Erik Pedersen
9a235d0afc
Fix regression with site.IsServer when not running a server
...
Fixes #11006
2023-05-24 12:42:56 +02:00
hugoreleaser
99407c39ba
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-23 17:38:44 +00:00
hugoreleaser
7c90c19d28
releaser: Bump versions for release of 0.112.1
...
[ci skip]
2023-05-23 17:26:16 +00:00
Bjørn Erik Pedersen
ed906a86e2
Fix regression when config for OutputFormat.BaseName is an empty string
...
Fixes #11000
2023-05-23 19:23:39 +02:00
hugoreleaser
d666edad71
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-23 08:25:56 +00:00
hugoreleaser
0a95d6704a
releaser: Bump versions for release of 0.112.0
...
[ci skip]
2023-05-23 08:14:20 +00:00
Bjørn Erik Pedersen
70b2aaf873
circleci: Add github.com to known hosts
2023-05-23 10:12:16 +02:00
Bjørn Erik Pedersen
f014921159
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.29.0"
...
This reverts commit baa5569042 .
See #10993
2023-05-23 09:24:58 +02:00
Bjørn Erik Pedersen
bd38e35f97
Revert "postcss: Improve validation of option 'config'"
...
This reverts commit 9a0370e8eb .
Closes #10990
2023-05-22 20:31:59 +02:00
Bjørn Erik Pedersen
85b13c105a
Add --format to hugo config
...
Now default to TOML.
2023-05-22 20:26:02 +02:00
Bjørn Erik Pedersen
b6e6438f7f
docs: Regen docshelper
2023-05-22 18:54:34 +02:00
Bjørn Erik Pedersen
943ff7f7ce
commands: Add missing gen docshelper command
...
Updates #10953
2023-05-22 18:54:34 +02:00
Bjørn Erik Pedersen
288be1976d
Fix "unknown command" message when no suggestion
...
Updates #10953
2023-05-22 18:54:34 +02:00
Andreas Deininger
9a0370e8eb
postcss: Improve validation of option 'config'
2023-05-22 18:14:10 +02:00
Bjørn Erik Pedersen
10d0fcc01f
docs: Regen CLI docs
2023-05-22 16:48:58 +02:00
Bjørn Erik Pedersen
b95e156940
Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'
2023-05-22 16:47:07 +02:00
Bjørn Erik Pedersen
f96384a3b5
Squashed 'docs/' changes from 6e32d0591..39af43ef1
...
39af43ef1 Update postprocess.md
3ec192d08 Update multilingual.md
7fc7bf862 Add a note about some changes in 0.112.0
742510ae8 Fix ordinal abbrev example
fe557031a Correct spelling for 'GitHub' and 'GitLab' (#2082 )
84a059b9a Fix typo in hosting-on-azure.md (#2080 )
3383786fe Add i18n to list of directories affected by ignoreFiles
5bfb95234 Update 404.md (#2076 )
87545a4fd Update hosting-on-cloudflare-pages.md (#2078 )
aa5952c28 Add default module mount to example (#2075 )
ced5292c8 Align permalinks examples (#2073 )
77b5009fd Fix typo
c79319a6a Clarify description of baseURL
e93a9807b Fix typo in frontmatter description (#2071 )
05fe9163a Remove erroneous statement
aa59ef383 docs: Remove note about hugo server not using 404 (#2068 )
4a387a6b8 Clarify findRESubmatch (#2065 )
47a9181b5 Clarify findRE, replaceRE, and findRESubmatch (#2064 )
e5eedbb5e Update theme
5d392c3d4 Clarify pageRef menu property (#2059 )
a557b0ebf Fix typos on Configure Hugo page (#2058 )
17ef283e6 Clarify module.replacements wording (#2052 )
5db4aa421 Fixing broken links (#2057 )
9afa0c2fa Fix broken links (#2055 )
49b981b1f Correct repo URL for migration tool (contentful.com) (#2056 )
969c24c16 Remove duplicate content
0b91e7676 Revert "Delete duplicate content"
3229e79f2 Delete duplicate content
ec4eddb98 Fix typo
6509159d5 Describe snap package strict confinement (#2050 )
1589bcdb7 Remove hugo.Generator admonition (#2048 )
7e553d11b Add example
48bec0335 Replace blockquotes with admonitions where appropriate (#2043 )
98226fe61 Remove orphaned param fron admonition calls (#2042 )
2a37a1d21 Clarify cast functions (#2041 )
03fd1d404 Fix typo
1898013ef Fix typos
944e27430 Replace output shortcode calls
0c66fb055 Add example of shortcode calls within sample code
f25a79c69 Replace tip and warning shortcode calls
3afac22fc Refactor code shortcode
ad65d2931 Clarify seq function
59f8a1f48 Clarify title function
47535dc87 Cleanup hasPrefix hasSuffix
7bee3e4c1 Cleanup action delimiters
cc96070f0 Correct functions archetype
ffe5d39b9 Remove duplicate shortcodes
075c9f3fe Remove old todos
bc3ec033c Front matter cleanup (#2039 )
928b94505 Add code fence types (#2038 )
856fa293c Document .File.Filename (#2037 )
0988c4a42 Update output-formats.md (#2036 )
289da5658 Change findRe to findRE
1e50f0583 Update theme
f90fb1bf5 Improve type formatting (#2032 )
7785fa7d9 Use code-toggle shortcode where appropriate
f11cabf37 Add space after and before action delimiters
ac333c795 Replace erroneous use of nocopy shortcode param
064896c06 Use bool param when calling code-toggle
fb33bf59b Update code-toggle shortcode
6ddeab4f8 Add missing go-html-template code fence type (#2030 )
1bba4cefb Fix links (#2029 )
77f4d6c32 Link destination cleanup (#2028 )
fc0ecc027 Improve breadcrumb example (#2026 )
6148be2de Update the breadcrumb navigation example (#2025 )
6ebb37b1b Clarify sort function (#2024 )
31269bad9 Add Winget installation method (#1988 )
d6c5f940e Resource methods: add signatures, minor improvements (#2017 )
d2e594cbc Modify inner variable shortcode-template explanation (#1985 )
a54927a7f Update GitHub Pages starter workflow (#2023 )
2964c2d44 Remove orphaned static files (#2022 )
97e5567cc Complete documentation on '.Scratch' and '.Store' (#2016 )
fa7b2e299 Fix typo
bdce77c57 Remove literal from example menu template
c0f23b216 Correct and improve menu documentation (#2010 )
464368fd9 Document .Page.Store (#2011 )
a3d7c4a3a Improve urls.Parse function (#2012 )
d2cec3776 Clarify postcss config option (#2013 )
eb3003fef Fixed typo (#2007 )
90c82d7ea Clarify mermaid markdown example (#2004 )
1b11dcd5c docs(Diagrams): Update mermaid import mechanism (#1967 )
4aceb6855 Fingerprinting, asset management: minor improvements (#2003 )
bcbc519bb resources.GetRemote: minor improvement (#2002 )
d54185bef Clarify markdownify behavior (#1999 )
afb582a80 Clarify usage of slug in front matter (#1998 )
f71985315 Update hasSuffix.md
29ad622a3 netlify: Hugo 0.111.3
adf223ecc Merge branch 'tempv0.111.3'
06858c646 docs: Improve examples of variadic math functions
8b656994e tpl/math: Allow multi numbers in add, sub, mul, div, min and max
2a38c4046 tpl: Add hasSuffix alias
4e0b98d54 switch transfers to workers
11651ac0f customize parallel transfer count
142f5da81 Update GitHub hosting instructions (#1991 )
ad7901d2f netlify: Hugo 0.111.2
0651a76e0 add headings to distinguish render hook context params
d96d75be4 netlify: Hugo 0.111.1
226cb9e3a Add a paragraph about the new page template function
4c0157a49 Add .Fragments docs
6c78c0679 netlify: Bump to Hugo 0.111.0
7b11c24cf Merge branch 'feat/related-fragments'
615d18ef8 Add Related fragments config
a36449b0c cods: Regen docs helper
0272fa45f Merge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9'
c5a962b93 related: Add config option cardinalityThreshold
f91677377 docs: Another fix related docs example
17aa939ea docs: Fix related docs example
12c449150 Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6'
cb998b3d6 Add page fragments support to Related
git-subtree-dir: docs
git-subtree-split: 39af43ef11
2023-05-22 16:43:12 +02:00
Bjørn Erik Pedersen
4cac5f5e30
Avoid writing to hugo_stats.json when there are no changes
...
Fixes #10985
2023-05-22 16:27:19 +02:00
Bjørn Erik Pedersen
2c3d4dfb74
Add cache busting config to support Tailwind 3
...
Fixes #10974
2023-05-22 14:14:35 +02:00
dependabot[bot]
1292d5a26a
build(deps): bump github.com/tdewolff/parse/v2 from 2.6.5 to 2.6.6
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.6.5 to 2.6.6.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.6.5...v2.6.6 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-22 13:58:40 +02:00
dependabot[bot]
baa5569042
build(deps): bump gocloud.dev from 0.24.0 to 0.29.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.29.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.29.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 >
2023-05-22 13:58:15 +02:00
dependabot[bot]
a5413c1f89
build(deps): bump github.com/gobuffalo/flect from 0.3.0 to 1.0.2
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.3.0 to 1.0.2.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.3.0...v1.0.2 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-22 12:28:49 +02:00
dependabot[bot]
9cea58a8a6
build(deps): bump golang.org/x/image from 0.5.0 to 0.7.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.5.0 to 0.7.0.
- [Commits](https://github.com/golang/image/compare/v0.5.0...v0.7.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 >
2023-05-22 12:28:08 +02:00
dependabot[bot]
1a5dce4cc5
build(deps): bump github.com/tdewolff/minify/v2 from 2.12.4 to 2.12.5
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.12.4 to 2.12.5.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.12.4...v2.12.5 )
---
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 >
2023-05-22 12:27:50 +02:00
Bjørn Erik Pedersen
6ca8a40f25
commands: Make all list commands list what 'all' did before
...
Also, always include the CSV header.
Updates #10953
2023-05-22 12:27:19 +02:00
InLaw
2db7ec622f
tpl/tplimpl: Add img loading attribute to figure shortcode ( #10927 )
2023-05-21 12:28:45 -07:00
Bjørn Erik Pedersen
e6dc8053bf
commands: Fix build logic when listing expired/future draft content
...
Fixes #10972
2023-05-21 10:16:25 +02:00
Bjørn Erik Pedersen
2637b4ef4d
Allow whitelisting mediaTypes used in resources.GetRemote
...
Fixes #10286
2023-05-20 20:16:45 +02:00
Bjørn Erik Pedersen
7c7baa6183
Add hugo.WorkingDir
...
Fixes #10969
2023-05-20 17:45:56 +02:00
Bjørn Erik Pedersen
4f085e80da
Make language merging of markup etc. config without values in the root
...
Updates #10953
2023-05-20 12:40:32 +02:00
Joe Mooring
150d190ff0
tpl/urls: Return empty string when JoinPath has zero args
2023-05-20 11:14:18 +02:00
dependabot[bot]
065ae003a5
build(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1
...
Bumps [github.com/dustin/go-humanize](https://github.com/dustin/go-humanize ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dustin/go-humanize/releases )
- [Commits](https://github.com/dustin/go-humanize/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: github.com/dustin/go-humanize
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-19 20:04:32 +02:00
dependabot[bot]
1a7d57c0b6
build(deps): bump google.golang.org/api from 0.76.0 to 0.123.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.76.0 to 0.123.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.76.0...v0.123.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 >
2023-05-19 20:03:46 +02:00
dependabot[bot]
bba54e6949
build(deps): bump golang.org/x/tools from 0.4.0 to 0.9.1
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.4.0 to 0.9.1.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.4.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-19 18:00:58 +02:00
dependabot[bot]
737054311a
build(deps): bump github.com/cli/safeexec from 1.0.0 to 1.0.1
...
Bumps [github.com/cli/safeexec](https://github.com/cli/safeexec ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/cli/safeexec/releases )
- [Commits](https://github.com/cli/safeexec/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: github.com/cli/safeexec
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-19 18:00:42 +02:00
dependabot[bot]
f6269ee928
build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.117.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.110.0 to 0.117.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.110.0...v0.117.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 >
2023-05-19 18:00:28 +02:00
Bjørn Erik Pedersen
715d484045
deps: Update github.com/evanw/esbuild v0.17.0 => v0.17.19
2023-05-19 18:00:04 +02:00
Bjørn Erik Pedersen
0a51dfac9e
commands: Fix data race
...
By wrapping all use of the shared config in a lock.
Updates #10953
2023-05-19 16:34:22 +02:00
Bjørn Erik Pedersen
c371171ab8
deps: Update github.com/alecthomas/chroma/v2 v2.7.0
2023-05-19 12:35:05 +02:00
Bjørn Erik Pedersen
d6197a41fa
Re-add --printUnusedTemplates and --printPathWarnings
...
And now with tests.
Updates #10953
2023-05-19 11:37:05 +02:00
Bjørn Erik Pedersen
e4e0313c80
tpl/urls: Fix build broken by a merge
2023-05-19 10:57:03 +02:00
Joe Mooring
5b3e165bad
tpl/urls: Add JoinPath template function
...
See https://pkg.go.dev/net/url#JoinPath
Closes #9694
2023-05-19 10:31:17 +02:00
Bjørn Erik Pedersen
03cb38e6c6
Allow legacy taxonomyTerm in disableKinds
...
Updates #10953
2023-05-19 09:17:55 +02:00
Andreas Deininger
ad4bc969da
Fix warn message about custom params on the language top level
2023-05-19 08:43:02 +02:00
cui fliter
4003c7903f
Fix some spelling mistakes
2023-05-19 08:40:08 +02:00
Oleksandr Redko
610cedaa61
all: Fix comments for exported functions and packages
2023-05-18 21:25:27 +02:00
Bjørn Erik Pedersen
24e7d0c174
deps: Update github.com/bep/golibsass v1.1.0 => v1.1.1
...
Fixes #10629
Fixes #10491
2023-05-18 21:24:33 +02:00
Benjamin Elder
008170c8a9
Make GOMAXPROCS to be CPU limit aware
...
Fixes #10950
2023-05-18 19:32:49 +02:00
Bjørn Erik Pedersen
7c647bcaeb
Allow empty params.mainSections
...
Updates #10953
2023-05-18 17:55:29 +02:00
Oleksandr Redko
95818e27dc
modules: Fix format flag in error
2023-05-18 16:26:20 +02:00
Bjørn Erik Pedersen
3f00f47535
commands: Load config before creating the filesystem
...
To allow publishDir to be set in config file.
2023-05-18 15:38:25 +02:00
Bjørn Erik Pedersen
834b3d7e41
Fix some recently introduced error handling issues
...
Updates #10953
2023-05-18 12:47:23 +02:00
Joe Mooring
1155bbca9d
tpl/lang: document delimiter option for FormatNumberCustom
...
Closes gohugoio/hugoDocs#1760
2023-05-17 23:35:43 +02:00
Bjørn Erik Pedersen
86b2a27438
Re-add site.LanguagePrefix
...
Updates #10947
2023-05-17 23:27:40 +02:00
Bjørn Erik Pedersen
35955f50e6
github: Trim the test flow a little
...
We now have much improved end to end tests, so cut the building of the docs site to save some time of the PR builds.
2023-05-17 22:14:15 +02:00
Bjørn Erik Pedersen
8a69ccbb00
commands: Improve the common build flag handling
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
7ce033a89d
Support, but warn, about top level language custom params
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
05542130ba
Handle transient errors in config loading etc.
...
As in: Get the Kubernetes site to build with the new Hugo version.
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
5251f015bf
Re-establish all the server flags
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
5d857165fe
Deprecate site.Language.Params and some other fixes
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
0106cf1a6d
Revert "Make GOMAXPROCS CPU limit aware"
...
I shouldn't have merged this without running the tests.
This libray logs to stderr on init, which is a no go for us.
Re. test failure:
```
[stderr]
2023/05/17 18:21:04 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
```
This reverts commit 59050f97f6 .
2023-05-17 21:01:52 +02:00
Benjamin Elder
59050f97f6
Make GOMAXPROCS CPU limit aware
...
Fixes #10950
2023-05-17 20:17:22 +02:00
Bjørn Erik Pedersen
faa6998f26
Add Sections to Site interface
...
See https://github.com/gohugoio/hugo/issues/10947#issuecomment-1550012671
Updates #10947
2023-05-16 18:53:34 +02:00
Oleksandr Redko
3d90871e9e
helpers: simplify path tests with T.TempDir
2023-05-16 18:35:19 +02:00
Oleksandr Redko
bda082c98c
tpl: Add math.Abs
...
Fixes #10941 .
2023-05-16 18:32:07 +02:00
Bjørn Erik Pedersen
241b21b0fd
Create a struct with all of Hugo's config options
...
Primary motivation is documentation, but it will also hopefully simplify the code.
Also,
* Lower case the default output format names; this is in line with the custom ones (map keys) and how
it's treated all the places. This avoids doing `stringds.EqualFold` everywhere.
Closes #10896
Closes #10620
2023-05-16 18:01:29 +02:00
Bjørn Erik Pedersen
6aededf6b4
Improve date parsing performance for the common case
...
```
name old time/op new time/op delta
Baseline/skiprender-10 24.5ms ±10% 22.3ms ± 4% -8.93% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
Baseline/skiprender-10 30.0MB ± 0% 26.2MB ± 0% -12.74% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
Baseline/skiprender-10 373k ± 0% 279k ± 0% -25.07% (p=0.029 n=4+4)
```
Fixes #10942
2023-05-15 11:25:24 +02:00
Bjørn Erik Pedersen
0988b76a78
Add a counter helper
2023-05-15 09:23:26 +02:00
Bjørn Erik Pedersen
e0e19a934f
Expand the baseline benchmark a little
2023-05-15 08:39:52 +02:00
Joe Mooring
bcd7ac7704
Revert "Update syntax-highlighting.md ( #10929 )" ( #10930 )
...
This reverts commit a4fb8dc6bc .
2023-05-06 09:36:29 -07:00
Kirill Bobyrev
a4fb8dc6bc
Update syntax-highlighting.md ( #10929 )
2023-05-06 07:00:37 -07:00
Bjørn Erik Pedersen
4f341fa1af
Update README.md
2023-05-04 23:56:57 +02:00
Joe Mooring
5c7b79cf7f
tpl/strings: Clarify findRESubmatch description
2023-04-27 22:02:41 +02:00
Joe Mooring
0cb6ca5906
langs/i18n: Fallback to defaultContentLanguage instead of English
...
Co-authored-by: 641bill <wo23636@126.com >
Fixes #9216
2023-04-24 21:20:09 +02:00
Bjørn Erik Pedersen
f1062519ae
tpl/debug: Add VisualizeSpaces
2023-04-20 11:27:55 +02:00
Bjørn Erik Pedersen
46a3cf6186
Update README.md
2023-04-18 08:35:37 +02:00
Bjørn Erik Pedersen
9906c1ae52
Prevent the global error collector to panic when sending on closed channel
2023-04-13 11:44:22 +02:00
Bjørn Erik Pedersen
5596dc24a0
markup/goldmark: Add config options for the typographer extension
...
Note that the config per language part of this will be handled in #10602 .
Updates #9772
2023-04-12 14:41:32 +02:00
Kiril Isakov
d01731d53c
readme: Fix build command
2023-04-09 11:59:46 +02:00
Bjørn Erik Pedersen
f1e8f010f5
Update README.md
2023-03-30 10:19:35 +02:00
Bjørn Erik Pedersen
5748133d50
Add test for ToC vs include
...
See #10866
2023-03-29 17:49:01 +02:00
Andreas Deininger
05c095a0e6
resources.functions: improve validation
2023-03-20 14:53:57 +01:00
Oleksandr Redko
891b2918d2
resources: Fix typos in error message and variables
2023-03-20 14:52:59 +01:00
Bjørn Erik Pedersen
b0b1b76dc9
markup/goldmark: Fail on invalid Markdown attributes
2023-03-15 08:54:34 +01:00
Bjørn Erik Pedersen
0fbab7cbc5
commands: Fix data race in test
...
Note that this is a test fix only.
2023-03-14 12:18:42 +01:00
septs
f5eddf89bf
tpl/math: Return error if less than 2 input numbers
...
Fixes #10827
2023-03-14 09:28:38 +01:00
hugoreleaser
0e8ab20a84
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-12 11:51:49 +00:00
hugoreleaser
5d4eb5154e
releaser: Bump versions for release of 0.111.3
...
[ci skip]
2023-03-12 11:40:50 +00:00
Niklas Fasching
1c841ec914
deps: Update go-org to v1.6.6
...
among other things, fixes a race condition in html writer and bug preventing
explicit line breaks immediately following emphasis
2023-03-12 12:38:12 +01:00
Bjørn Erik Pedersen
e7148f335f
Fix "unknown shortcode token" when calling shortcode within fenced code block
...
Fixes #10819
2023-03-12 11:39:38 +01:00
Andreas Deininger
d55af2abf0
Run gofmt -s on source files
2023-03-12 10:32:29 +01:00
Joe Mooring
b6f44aaf1a
docs: Improve examples of variadic math functions
2023-03-12 10:32:01 +01:00
septs
84201e8d5d
tpl/math: Allow multi numbers in add, sub, mul, div, min and max
2023-03-11 11:21:08 +01:00
Andreas Deininger
04b9811643
readme: Update dependency list
2023-03-11 10:15:16 +01:00
Andreas Deininger
9818724b5b
Improve error message for unclosed shortcode with inner content
2023-03-10 18:41:17 +01:00
Bjørn Erik Pedersen
34a86e13f6
Don't fail when calling Paginate with an empty pages.PagesGroup
...
Fixes #10802
2023-03-10 16:34:17 +01:00
Oleksandr Redko
0f01bd4637
server: Replace golang.org/x/net/context with context
2023-03-08 10:19:25 +01:00
Jonathan Fisher
d171d1543d
tpl: Add hasSuffix alias
...
strings.HasPrefix already has an alias of hasPrefix
but strings.HasSuffix has no such alias.
This PR adds a hasSuffix alias to the tpl function with corresponding
function documentation.
It also adds a Minor update to the hasPrefix function documentation
re: keywords and relatedfuncs.
Completes https://github.com/gohugoio/hugo/issues/10474
2023-03-08 10:18:34 +01:00
Oleksandr Redko
02ab77da3e
watcher: use time.NewTicker to prevent leaks
...
Replace time.Tick with time.NewTicker.
2023-03-08 10:16:34 +01:00
davidejones
873be9f90a
ensure we default to 10 correctly
2023-03-07 15:38:26 +01:00
davidejones
bebb2b8d0a
switch transfers to workers
2023-03-07 15:38:26 +01:00
davidejones
e6f029bdee
customize parallel transfer count
2023-03-07 15:38:26 +01:00
johannesengl
bdbfacb868
metadecoders: Add support for native org dates in frontmatter
...
PR #7433 added support for Org timestamps for the DATE header. This PR widens the support with additional front matter headers LASTMOD, PUBLISHDATE and EXPIRYDATE.
Fixes #8536
2023-03-06 20:37:31 +01:00
hugoreleaser
32ea40aa82
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-05 12:43:18 +00:00
hugoreleaser
4164f8fef9
releaser: Bump versions for release of 0.111.2
...
[ci skip]
2023-03-05 12:32:20 +00:00
Bjørn Erik Pedersen
b83050cb40
Fix .Fragments when called cross sites on uninitialized output format
...
Fixes #10794
2023-03-05 12:51:57 +01:00
Bjørn Erik Pedersen
df5608f8a0
Allow page.TableOfContents on self in shortcode
...
Fixes #10791
2023-03-05 12:51:57 +01:00
Bjørn Erik Pedersen
f56ce01ae1
tpl/partial: Consolidate GoDoc
2023-03-04 22:04:01 +01:00
Bjørn Erik Pedersen
3bbeb5688c
Fix "context canceled" with partial
...
Make sure the context used for timeouts isn't created based on the incoming
context, as we have cases where this can cancel the context prematurely.
Fixes #10789
2023-03-04 21:29:05 +01:00
Oleksandr Redko
184a67ac47
cache: Fix --gc failure on Windows
...
Fixes "Error: failed to prune cache" on Windows and removes
work around from ec1c97e7e9 .
Follows #10781 .
2023-03-04 18:47:43 +01:00
Bjørn Erik Pedersen
6c798eba60
Page context handling in i18n
...
This is a workaround. We need to improve on this, but not today.
Fixes #10782
2023-03-04 17:19:14 +01:00
Bjørn Erik Pedersen
ec1c97e7e9
Work around --gc failure on Windows <= 10
...
This applies two related fixes/improvements:
* The --gc now keeps empty `_resources/_gen/images` etc folders, even if empty. This should have been the behaviour
from the start.
* Also, if removal of an empty dir on Windows fails with the "used by another process" error, just ignore it for now.
Fixes #10781
2023-03-04 13:40:55 +01:00
Bjørn Erik Pedersen
f10009e7f1
Update to Go 1.20.1
...
Fixes #10785
2023-03-04 10:36:59 +01:00
Joe Mooring
a950950f1b
snap: Fix dart-sass-embedded installation
...
Closes #10783
2023-03-04 10:15:03 +01:00
Oleksandr Redko
36ce3a4a9d
Correct typos in Go comments
2023-03-02 16:32:32 +01:00
hugoreleaser
17e60b77e1
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-02 10:19:25 +00:00
hugoreleaser
39a4a3cf67
releaser: Bump versions for release of 0.111.1
...
[ci skip]
2023-03-02 10:08:26 +00:00
Bjørn Erik Pedersen
52f339dada
Merge branch 'release-0.111.0'
2023-03-02 11:05:24 +01:00
Bjørn Erik Pedersen
eef23a7f27
Fix "page" not defined
...
Fixes #10774
2023-03-02 10:39:44 +01:00
hugoreleaser
18cf75805c
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-01 21:08:27 +00:00
hugoreleaser
3fa8bb8318
releaser: Bump versions for release of 0.111.0
...
[ci skip]
2023-03-01 20:57:44 +00:00
Bjørn Erik Pedersen
db9f74d24d
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.28.0 ( #10610 )"
...
This reverts commit c3a59a7d5a .
See #10770
2023-03-01 21:55:47 +01:00
Bjørn Erik Pedersen
60e6fa798f
build: Bump build images
...
To fix changed Shuffle behaviour on Go 1.20.
2023-03-01 21:32:12 +01:00
Bjørn Erik Pedersen
7e51ba03ca
build: Update Linux ARM build image
2023-03-01 18:55:22 +01:00
Joe Mooring
66f94b4945
tpl/tplimpl: Remove the Google News internal template
...
This was deprecated, with a warning message, on 21 Nov 2021.
Reference #9190
2023-03-01 18:11:44 +01:00
Khayyam Saleem
c0d15a2897
strings: fix Truncate behavior for formatted html
...
Before this fix, strings.Truncate would erroneously re-include
attributes from the opening tag in the closing tag when closing
formatted html, due to a bug in how tagnames were extracted from the
regex capture group for html tags used in `truncate.go`. This change
ensures that only the tagname is retained and all attributes are discarded
when storing the tags for closing them later.
Fixes #10399
2023-03-01 17:59:50 +01:00
Bjørn Erik Pedersen
2a61910e82
tpl/strings: Adjust benchmark
2023-03-01 17:59:02 +01:00
Bjørn Erik Pedersen
079d1b6540
tpl/strings: Add BenchmarkTruncate
2023-03-01 17:51:09 +01:00
Bjørn Erik Pedersen
a56b9071db
cods: Regen docs helper
2023-03-01 16:35:23 +01:00
Bjørn Erik Pedersen
5c317c55e7
Move the Related doc counter to prevent a race
...
Closes #10768
2023-03-01 16:28:43 +01:00
Bjørn Erik Pedersen
a669467d98
Misc ioutil deprecation adjustments
...
To make the tests pass.
* Replace io => os.ReadFile in magefile.go
* Adjust failing image test vs fs.DirEntry
* Adjust poller test
See #10732
2023-03-01 16:28:43 +01:00
Oleksandr Redko
d453c12742
Replace deprecated ioutil with io and os
...
https://pkg.go.dev/io/ioutil is deprecated since Go 1.16.
2023-03-01 16:28:43 +01:00
Bjørn Erik Pedersen
336622d5e7
Squashed 'docs/' changes from 36dd5483f..6e32d0591
...
6e32d0591 Update quick-start.md (#1984 )
eddd25ff4 Mermaid: reflect latest docs specifications
b2a23b6f5 Mermaid: switch to ESM import
43d83c131 Update index.md
git-subtree-dir: docs
git-subtree-split: 6e32d05910
2023-03-01 11:56:07 +01:00
Bjørn Erik Pedersen
97b010f521
Merge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9'
2023-03-01 11:56:07 +01:00
dependabot[bot]
4d36b99a4e
build(deps): bump github.com/tdewolff/parse/v2 from 2.6.4 to 2.6.5
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.6.4 to 2.6.5.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.6.4...v2.6.5 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-01 09:28:29 +01:00
dependabot[bot]
807237bc0e
build(deps): bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.16 to 0.0.17.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.16...v0.0.17 )
---
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 >
2023-02-27 11:56:40 +01:00
dependabot[bot]
79b03b3f79
build(deps): bump golang.org/x/image
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.0.0-20211028202545-6944b10bf410 to 0.5.0.
- [Release notes](https://github.com/golang/image/releases )
- [Commits](https://github.com/golang/image/commits/v0.5.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 >
2023-02-27 11:56:09 +01:00
Oleksandr Redko
e31441031d
Remove unused temp directory
2023-02-27 09:21:16 +01:00
WaltCuller
39cc3a2a7e
exif: Return the proper exposure time value in some special cases
...
Return value in float64 if exposure time is int or greater than 1, otherwise return in fraction.
Fixes #10738
2023-02-26 11:19:49 +01:00
Bjørn Erik Pedersen
ce524d0b5e
Add a page template func
...
Fixes #9339
2023-02-25 19:53:18 +01:00
Joe Mooring
2662faf61f
dartsass: Import CSS without extension at compile time
...
Applicable to Dart Sass only:
- Sass imports with the .css extension indicate a plain CSS @import.
- Sass imports without the .css extension are imported at compile time.
Fixes #10592
2023-02-24 15:19:21 +01:00
Bjørn Erik Pedersen
271318ad78
Split parse and render for Goldmark
...
This also speeds up situations where you only need the fragments/toc and not the rendered content, e.g. Related
with fragments type indexing:
```bash
name old time/op new time/op delta
RelatedSite-10 12.3ms ± 2% 10.7ms ± 1% -12.95% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
RelatedSite-10 38.6MB ± 0% 38.2MB ± 0% -1.08% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
RelatedSite-10 117k ± 0% 115k ± 0% -1.36% (p=0.029 n=4+4)
```
Fixes #10750
2023-02-24 10:40:06 +01:00
Bjørn Erik Pedersen
e442a63bb7
related: Add config option cardinalityThreshold
...
Fixes #10744
2023-02-23 17:06:22 +01:00
Bjørn Erik Pedersen
d5601e8391
docs: Another fix related docs example
2023-02-23 11:09:55 +01:00
Bjørn Erik Pedersen
cedd04db31
docs: Fix related docs example
2023-02-23 10:54:30 +01:00
dependabot[bot]
4bf91b9759
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-23 09:58:21 +01:00
Bjørn Erik Pedersen
ae48507d66
Fix shortcode error when closing without .Inner
...
Fixes #10672
2023-02-23 09:36:14 +01:00
Bjørn Erik Pedersen
7d78a498e1
Throw an error when shortcode is expected to be closed
...
Fixes #10675
2023-02-23 09:36:14 +01:00
Bjørn Erik Pedersen
0dbeac80cd
Add some shortcode testcases
...
Closes #10671
2023-02-23 09:36:14 +01:00
Bjørn Erik Pedersen
b99d073caf
sass: Remove some unused leftover code
2023-02-23 07:57:53 +01:00
Joe Mooring
e965cb679c
resources/sass: Remove debug statements
...
Closes #10470
2023-02-23 07:53:46 +01:00
Bjørn Erik Pedersen
cf591b7c0c
Squashed 'docs/' changes from 1214f6ffb..36dd5483f
...
36dd5483f Clarify placement of 404 template
6f0a5f3f0 Update urls.Parse.md
c8070e578 Remove reference to Internet Explorer conditional comments (#1975 )
3e3458f09 Describe default source map behavior for js.build (#1974 )
08c9ed09a Simplify ordinal abbreviation example... (#1970 )
b5aa8d598 docs(markdownify): mention a context limitation (#1968 )
596af47f5 Fixing typo in configuration.md doc (#1966 )
c47cadfcb Fix `hardWraps` config spelling (#1964 )
5739a174e Add detail to tabWidth highlighting option
73a4bcd1f doc: Add hugo-lyra search engine (#1959 )
6cc9ebdfd Update uniq function example (#1963 )
686a65cf6 Update uniq.md
096f794d0 Update uniq.md
914ca0c38 remove `version` from SVG example (#1957 )
58347d41f Update theme
7c806371f Fix 404 error for CloudCannon community learn docs (#1955 )
58e42b03d Update theme
fd0385ee2 Update theme
513b7a43a Update findRe.md
4d39137ef Update configuration.md
b1c3b58a7 Update configuration.md
f827cce8d Update configuration.md
3d72ed8fb netlify: Hugo 0.110.0
e6f969c87 Merge branch 'feat/config-rename'
4c0b5a0b5 dos: Regen CLI docs
05d9db705 docs: Regen docshelper
f73bdb6e5 Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382'
e83141f88 Format config
4cadf795e Rename config.toml -> hugo.toml
c8aa8617f Move config/_default/config.toml -> config.toml
2943c031a Add fill HTTP Response info into .Data in resources.GetRemote
git-subtree-dir: docs
git-subtree-split: 36dd5483fb
2023-02-23 07:52:04 +01:00
Bjørn Erik Pedersen
7e539cb398
Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6'
2023-02-23 07:52:04 +01:00
Bjørn Erik Pedersen
586fea0de6
page: Move the cache double check right after the lock
2023-02-22 21:24:41 +01:00
Bjørn Erik Pedersen
fa2d7adf10
page: Add some concurrency to the building of the related page index
...
But only in the case where we know that we will need to access the Page fragments/tableofcontents.
In normal situations this will spread naturally across the CPU cores, but not in the situation where
`site.RegularPages.Related` gets called as part of e.g. the single template.
```bash
name old time/op new time/op delta
RelatedSite-10 18.0ms ± 2% 11.9ms ± 1% -34.17% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
RelatedSite-10 38.6MB ± 0% 38.6MB ± 0% ~ (p=0.114 n=4+4)
name old allocs/op new allocs/op delta
RelatedSite-10 117k ± 0% 117k ± 0% +0.23% (p=0.029 n=4+4)
```
See #10711
2023-02-22 20:37:41 +01:00
Bjørn Erik Pedersen
4346987faf
related: Adjust benchmark
2023-02-22 19:17:22 +01:00
Aaron Hooper
2dad13c0e4
create: Fix typo in error message
2023-02-22 14:14:49 +01:00
Bjørn Erik Pedersen
ecf3cd514f
tocss: Simplify the hugo:vars type handling
...
Instead of maintaing a list of all CSS units and functions this commit:
* Uses 3 regexps to detect typed CSS values (e.g. `24px`) + properly handle numeric Go types.
* These regexps may have some false positives -- e.g. strings that needs to be quoted.
* For that rare case, you can mark the string with e.g. `"32xxx" | css.Quoted`
* For the opposite case: `"32" | css.Unquoted`
Updates #10632
2023-02-22 13:26:10 +01:00
AcClassic
a1a9c08b5f
resource_transformers/tocss: Fixed hugo:vars casting
...
Variables passed via the hugo:vars function where passed as type string.
This caused problems when using the variables in sass functions because
these expect a specific type. Now we check if the passed variables have
to be quoted and therefore are of type string or if they should not be
quoted and let the type interpretation up to the sass compiler.
Fixes #10632
2023-02-22 13:26:10 +01:00
Bjørn Erik Pedersen
6abd15e781
Adjust tests for GO 1.20
...
Updates #10691
2023-02-22 11:26:52 +01:00
Bjørn Erik Pedersen
094135ff96
tpl/internal: Sync Go template src to Go 1.20
...
Updates #10691
2023-02-22 11:26:52 +01:00
Bjørn Erik Pedersen
4801e2e8ee
build: Update to Go 1.20
...
Updates #10691
2023-02-22 11:26:52 +01:00
Bjørn Erik Pedersen
90da7664bf
Add page fragments support to Related
...
The main topic of this commit is that you can now index fragments (content heading identifiers) when calling `.Related`.
You can do this by:
* Configure one or more indices with type `fragments`
* The name of those index configurations maps to an (optional) front matter slice with fragment references. This allows you to link
page<->fragment and page<->page.
* This also will index all the fragments (heading identifiers) of the pages.
It's also possible to use type `fragments` indices in shortcode, e.g.:
```
{{ $related := site.RegularPages.Related .Page }}
```
But, and this is important, you need to include the shortcode using the `{{<` delimiter. Not doing so will create infinite loops and timeouts.
This commit also:
* Adds two new methods to Page: Fragments (can also be used to build ToC) and HeadingsFiltered (this is only used in Related Content with
index type `fragments` and `enableFilter` set to true.
* Consolidates all `.Related*` methods into one, which takes either a `Page` or an options map as its only argument.
* Add `context.Context` to all of the content related Page API. Turns out it wasn't strictly needed for this particular feature, but it will
soon become usefil, e.g. in #9339 .
Closes #10711
Updates #9339
Updates #10725
2023-02-21 17:56:41 +01:00
Bjørn Erik Pedersen
0afec0a9f4
related: Adjust benchmark
...
To make it easier to compare.
2023-02-21 11:06:29 +01:00
Bjørn Erik Pedersen
28540ed131
related: Add benchmark
2023-02-21 11:00:43 +01:00
Bjørn Erik Pedersen
9af78d1100
tpl/collections: Improve error message in Index
2023-02-08 10:22:20 +01:00
Bjørn Erik Pedersen
d33a7ebcc1
Make the HTML collector parsing more robust
...
Most notably better handling self-closing elements
Closes #10698
2023-02-07 09:11:02 +01:00
Bjørn Erik Pedersen
2a364cca64
Revert "build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.114.0"
...
This reverts commit 87c78bd3e9 .
There seem to be some breaking changes in the above that needs to be looked into.
2023-02-05 20:34:35 +01:00
Joe Mooring
3fb2417cb7
deps: Upgrade github.com/yuin/goldmark v1.5.3 => v1.5.4
...
Closes #10661
2023-02-05 20:09:06 +01:00
Bjørn Erik Pedersen
fce0890484
tpl/strings: Add strings.ContainsNonSpace
2023-02-05 20:08:44 +01:00
dependabot[bot]
87c78bd3e9
build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.114.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.110.0 to 0.114.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.110.0...v0.114.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 >
2023-02-05 20:07:15 +01:00
Joe Mooring
69c369e114
deps: Upgrade github.com/alecthomas/chroma v2.4.0 => v2.5.0
...
Fixes #9890
Fixes #10692
2023-02-05 20:06:51 +01:00
Khayyam Saleem
73ece30d84
markup: Fix linenos codeblock hl option case regression
...
This fixes a regression introduced in v0.93.0 where previously, a
mixed-case key for lineNos would be successfully parsed. This change
moves the configuration key lowercasing step into the configuration
normalization stage, which is called whether the highlighting config
is being parsed from a `string` or a `map`.
Fixes #10682
2023-02-05 20:06:25 +01:00
Bjørn Erik Pedersen
f9fc0e045b
Fix slow HTML elements collector for the pre case
...
```
name old time/op new time/op delta
ElementsCollectorWriterPre-10 25.2µs ± 1% 3.4µs ± 0% -86.54% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
ElementsCollectorWriterPre-10 624B ± 0% 142B ± 0% -77.18% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
ElementsCollectorWriterPre-10 16.0 ± 0% 6.0 ± 0% -62.50% (p=0.029 n=4+4)
```
Fixes #10698
2023-02-05 20:01:39 +01:00
Bjørn Erik Pedersen
4f4a1c00bf
publisher: Add benchmark
2023-02-05 16:39:31 +01:00
Anthony Fok
76c6140c52
snap: Install dart-sass-embedded for 32-bit ARM (armhf) too
...
See https://github.com/sass/dart-sass-embedded/releases/tag/1.54.7
which "Add[ed] support for 32-bit ARM releases on Linux" on 2022-08-30.
2023-02-03 14:58:11 +01:00
Anthony Fok
d4482e8bf4
snap: Add read access for ~/.gitconfig.local and ~/.config/git/* too
...
in hugo:gitconfig plug (personal-files interface) in case end users need
the flexibility of using additional custom git config files.
Fixes #10337
2023-02-03 14:57:53 +01:00
Bjørn Erik Pedersen
1477d0ba90
commands: Fix server url rewrites (http status 200)
...
Broken by me in Hugo 0.103.0 it seems. A little bit mysterious as it has worked for me after that, but started to fail just
recently.
Closes #10668
2023-01-31 12:42:31 +01:00
dependabot[bot]
dd37163f5a
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.10 to 2.2.11
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.10 to 2.2.11.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.10...v2.2.11 )
---
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 >
2023-01-31 09:41:13 +01:00
dependabot[bot]
c3a59a7d5a
build(deps): bump gocloud.dev from 0.24.0 to 0.28.0 ( #10610 )
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.28.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.28.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 >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Closes #9778
2023-01-31 09:40:39 +01:00
Joe Mooring
4ccc8cfb4c
Fix description of collections.Uniq
2023-01-31 08:12:45 +01:00
Bjørn Erik Pedersen
e2cfc3d5a2
Update CONTRIBUTING.md
2023-01-31 08:08:52 +01:00
Bjørn Erik Pedersen
168858331f
Fix shortcode detection in RenderString
...
Fixes #10654
2023-01-26 11:41:07 +01:00
Bjørn Erik Pedersen
4ef9baf5bd
Only invoke a given cached partial once
...
Note that this is backed by a LRU cache (which we soon shall see more usage of), so if you're a heavy user of cached partials it may be evicted and
refreshed if needed. But in most cases every partial is only invoked once.
This commit also adds a timeout (the global `timeout` config option) to make infinite recursion in partials
easier to reason about.
```
name old time/op new time/op delta
IncludeCached-10 8.92ms ± 0% 8.48ms ± 1% -4.87% (p=0.016 n=4+5)
name old alloc/op new alloc/op delta
IncludeCached-10 6.65MB ± 0% 5.17MB ± 0% -22.32% (p=0.002 n=6+6)
name old allocs/op new allocs/op delta
IncludeCached-10 117k ± 0% 71k ± 0% -39.44% (p=0.002 n=6+6)
```
Closes #4086
Updates #9588
2023-01-25 17:35:23 +01:00
Bjørn Erik Pedersen
93ed6e447a
Update README.md
2023-01-24 15:04:06 +01:00
hugoreleaser
0d1161b263
releaser: Prepare repository for 0.111.0-DEV
...
[ci skip]
2023-01-17 12:28:17 +00:00
hugoreleaser
e32a493b78
releaser: Bump versions for release of 0.110.0
...
[ci skip]
2023-01-17 12:16:09 +00:00
Bjørn Erik Pedersen
19e9605629
dos: Regen CLI docs
2023-01-17 12:52:53 +01:00
Bjørn Erik Pedersen
80e8bd3b72
docs: Regen docshelper
2023-01-17 12:52:08 +01:00
Bjørn Erik Pedersen
b661132e0a
Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382'
2023-01-17 12:51:46 +01:00
Bjørn Erik Pedersen
ef6f101e75
Squashed 'docs/' changes from 2c0125b52..1214f6ffb
...
1214f6ffb Document cleanDestinationDir configuration setting
27ca65463 Clarify .Page.Param method (#1953 )
3fa1792d2 Document the usage of `hardWrap` option for markdown rendering (#1951 )
8b5afdfb4 Update theme
207e7f0a0 fix docs for getting remote font
1f7094b9e Correct typo
f9d6445c4 Added missing `/` in URL generator (#1946 )
3a22ee7d6 Remove translations
b3b900f3f Update introduction.md
aca440052 rm Forestry - facing end-of-life shortly (#1944 )
af0014e14 Update scss-sass.md
1c43bbbc9 Merge branch 'docs/goworkspace'
d034175ca netlify: Hugo 0.109.0
d3a6a5c3f Merge branch 'tempv0.109.0'
e033dbead docs: Regen docs helper JSON
452bf675c resource/page: Add Page.Ancestors
12edd7363 Add some docs for workspaces
8f0fcba6b Add HUGO_PUBLISHDIR to the Node environment
4e66d98ad Update theme
808aee6f6 config: Update to ga v4
1de2bc5a9 config: Update to ga v4
ddb5fd6b0 Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'
54c54bf76 modules: Adjust watch logic vs workspace use definitions
git-subtree-dir: docs
git-subtree-split: 1214f6ffbf
2023-01-17 12:51:01 +01:00
Bjørn Erik Pedersen
d595419031
related: Handly []any
...
See #10624
2023-01-17 12:50:26 +01:00
Bjørn Erik Pedersen
671f64b2eb
Fix permalinks issue with repeated sections
...
Fixes #10377
2023-01-17 12:49:16 +01:00
Bjørn Erik Pedersen
2fb40ece5d
tpl/strings: Add findRESubmatch
...
Fixes #10594
2023-01-17 12:14:11 +01:00
Bjørn Erik Pedersen
c6b3887696
config/security: Add O\w+ (e.g. GOROOT) to the default allowed list
...
Fixes #10429
2023-01-17 10:52:51 +01:00
Bjørn Erik Pedersen
21af5b359f
Preserve front matter slice value types (e.g. int)
...
Fixes #10624
2023-01-17 08:58:05 +01:00
Bjørn Erik Pedersen
f38a2fbd2e
Make hugo.toml the new config.toml
...
Both will of course work, but hugo.toml will win if both are set.
We should have done this a long time ago, of course, but the reason I'm picking this up now is that my VS Code setup by default picks up some
JSON config schema from some random other software which also names its config files config.toml.
Fixes #8979
2023-01-16 15:34:16 +01:00
Bjørn Erik Pedersen
6a579ebac3
Add fill HTTP Response info into .Data in resources.GetRemote
...
See #10604
2023-01-16 14:44:15 +01:00
Bjørn Erik Pedersen
f13531e608
Fix HEAD method in resources.GetRemote
...
Fixes #10604
2023-01-16 14:44:15 +01:00
Bjørn Erik Pedersen
b5d485060f
Fix order when reading custom headers in resources.GetRemote
...
Fixes #10616
2023-01-16 14:44:15 +01:00
Bjørn Erik Pedersen
6e9fa9e0fd
deps: Upgrade github.com/evanw/esbuild v0.15.18 => v0.17.0
...
Also add a test to make sure legal comments are preserved in JS bundles.
Closes #10536
2023-01-16 14:41:13 +01:00
Bjørn Erik Pedersen
c4f3a46ce6
Update README.md
2023-01-09 14:13:30 +01:00
Bjørn Erik Pedersen
fbc3e08c64
resource: Fix Go Doc vs .Data.Integrity
2023-01-07 10:58:34 +01:00
Bjørn Erik Pedersen
e402d91ee1
Misc doc, code refactoring to improve documentation
2023-01-04 18:01:26 +01:00
Bjørn Erik Pedersen
3c51625c71
Make readFile return nil when file not found (note)
...
Fixes #9620
2023-01-04 18:01:26 +01:00
Omar Kohl
dd6d0a6de1
Remove reference to Goreleaser in code comment
...
Hugo no longer uses the Goreleaser tool.
2023-01-03 20:25:44 +01:00
acclassic
f95fd57aac
tpl/compare: Sort special float values as string
...
When sorting strings a worng order is returned. This happens because the strings are first converted
to floating values to check whether or not they should be sorted as
floating values. When an error is returned the strings will be
handled as string literals.
No error will be returned when parsing Inf, Infinity or NaN (case insensitive) because they
will be coverted to special floating point values and therefore are
legal float values.
Now we check if the returned converted values are special floating
values and treat them as string literals.
Fixes #10389
2023-01-02 17:35:08 +01:00
Bjørn Erik Pedersen
e754d5cb3e
tpl/diagrams: Move Goat to its own file
2022-12-25 14:02:22 +01:00
Bjørn Erik Pedersen
002cd52807
Update CONTRIBUTING.md
2022-12-24 15:53:27 +01:00
Bjørn Erik Pedersen
a76c405d40
Update CONTRIBUTING.md
2022-12-24 15:49:00 +01:00
Bjørn Erik Pedersen
c0a03a2a39
Update README.md
2022-12-24 15:48:45 +01:00
hugoreleaser
e127d3e5c6
releaser: Prepare repository for 0.110.0-DEV
...
[ci skip]
2022-12-23 10:50:52 +00:00
hugoreleaser
47b12b83e6
releaser: Bump versions for release of 0.109.0
...
[ci skip]
2022-12-23 10:38:11 +00:00
Bjørn Erik Pedersen
180dfeba03
Adjust "you need the extended version" error message
2022-12-23 10:33:49 +01:00
Bjørn Erik Pedersen
10bb29d7f3
docs: Regen docs helper JSON
2022-12-23 10:15:48 +01:00
Bjørn Erik Pedersen
eb0c8f9d02
resource/page: Slight adjustment of Page.Ancestors
...
Fixes #10567
2022-12-23 10:14:53 +01:00
Septs
3a216186b2
resource/page: Add Page.Ancestors
...
Fixes #10567
2022-12-23 10:14:53 +01:00
dependabot[bot]
7874b96815
build(deps): bump golang.org/x/tools from 0.3.0 to 0.4.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-23 09:26:10 +01:00
Joe Mooring
71832328f8
Annotate test assertions
2022-12-22 18:53:12 +01:00
Joe Mooring
37ab1cf12a
hugolib: Exclude non-linkable pages from translations map
...
Fixes #9073
2022-12-22 18:53:12 +01:00
Bjørn Erik Pedersen
59af05cabc
Add HUGO_PUBLISHDIR to the Node environment
...
So you can do `process.env.HUGO_PUBLISHDIR` in your `postcss.config.js` to figure out where Hugo publishes
its files.
Note that the value will always be an absolute file path and will point to a directory on disk even when running `hugo server` in memory mode.
If you write to this folder from PostCSS when running the server, you could run the server with one of these flags:
```
hugo server --renderToDisk
hugo server --renderStaticToDisk
```
Fixes #10554
2022-12-22 12:43:50 +01:00
Joe Mooring
4989da653d
Revert "tpl/tplimpl: Use https in sitemap templates"
...
This reverts commit 3fd0b78498 .
2022-12-22 08:53:58 +01:00
Bjørn Erik Pedersen
cd1ed563a8
tpl: Improve template funcs GoDoc
2022-12-21 15:33:02 +01:00
Bjørn Erik Pedersen
aa2c724195
tpl/resources: Fix data race in ToCSS
...
Fixes #10542
2022-12-21 12:26:42 +01:00
Bjørn Erik Pedersen
effa6a4226
tocss: Add some more test cases
...
See #10555
2022-12-21 11:21:07 +01:00
Septs
5d5f0a2371
tocss: Fix unquote case with double quotes
...
See #10555
2022-12-21 11:21:07 +01:00
Bjørn Erik Pedersen
d20d2651ea
Allow "fast render mode" even if --disableLiveReload is set
...
Fixes #10561
2022-12-21 11:02:21 +01:00
Bjørn Erik Pedersen
41a080b268
tocss: Add vars option
...
This commit adds a new `vars` option to both the Sass transpilers (Dart Sass and Libsass).
This means that you can pass a map with key/value pairs to the transpiler:
```handlebars
{{ $vars := dict "$color1" "blue" "$color2" "green" "$font_size" "24px" }}
{{ $cssOpts := (dict "transpiler" "dartsass" "outputStyle" "compressed" "vars" $vars ) }}
{{ $r := resources.Get "scss/main.scss" | toCSS $cssOpts }}
```
And the the variables will be available in the `hugo:vars` namespace. Example usage for Dart Sass:
```scss
@use "hugo:vars" as v;
p {
color: v.$color1;
font-size: v.$font_size;
}
```
Note that Libsass does not support the `use` keyword, so you need to `import` them as global variables:
```scss
@import "hugo:vars";
p {
color: $color1;
font-size: $font_size;
}
```
Hugo will:
* Add a missing leading `$` for the variable names if needed.
* Wrap the values in `unquote('VALUE')` (Sass built-in) to get proper handling of identifiers vs other strings.
This means that you can pull variables directly from e.g. the site config:
```toml
[params]
[params.sassvars]
color1 = "blue"
color2 = "green"
font_size = "24px"
image = "images/hero.jpg"
```
```handlebars
{{ $vars := site.Params.sassvars}}
{{ $cssOpts := (dict "transpiler" "dartsass" "outputStyle" "compressed" "vars" $vars ) }}
{{ $r := resources.Get "scss/main.scss" | toCSS $cssOpts }}
```
Fixes #10555
2022-12-20 19:36:30 +01:00
Bjørn Erik Pedersen
41bc6f702a
Squashed 'docs/' changes from 2201ac0e5..2c0125b52
...
2c0125b52 Remove .Site.Author
2cf8841b3 Update partialCached.md (#1924 )
385487191 Update data-templates.md (#1926 )
ce207e141 Remove redundant markdown and fix a few typos (#1936 )
3687c2953 Make heading id linkable, take 2
45c79bea7 Make heading id linkable
b22079344 Delete duplicates the lines 557-569 and 570-582. (#1934 )
0a90dc122 Rework the taxonomy variables page (#1935 )
7f8979c50 Update theme
26e682a3a Update multilingual.md
d40e7693f Update postcss.md
375d75c01 Update postcss npm instructions (#1931 )
63020094a Emphasize Window shell selection (#1930 )
56824be2c Update configuration.md
b7b8f16b3 Docu 'Theme components': minor fix (#1929 )
09dc81a05 Remove Docker from BSD page (#1927 )
205fea204 netlify: Hugo 0.108.0
6abe49c28 Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc'
12b59a4c5 docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.
ba07bd970 dartsass: Add sourceMapIncludeSources option
git-subtree-dir: docs
git-subtree-split: 2c0125b529
2022-12-20 11:04:41 +01:00
Bjørn Erik Pedersen
9a215d6950
Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'
2022-12-20 11:04:41 +01:00
Bjørn Erik Pedersen
eda1e720cd
modules: Improve "module workspace" not found error
2022-12-20 09:06:38 +01:00
Bjørn Erik Pedersen
330fa89411
modules: Adjust watch logic vs workspace use definitions
2022-12-19 20:17:33 +01:00
Bjørn Erik Pedersen
6db527483d
Add any configured Go Workspace file to the config watcher
...
Fixes #10556
2022-12-19 20:17:33 +01:00
Bjørn Erik Pedersen
0d4b17d4c0
modules: Make the module.workspace=off as default (note)
...
Also, resolve any workspace file relative to the workingDir.
Fixes #10553
2022-12-19 20:17:33 +01:00
Bjørn Erik Pedersen
3afaca7584
release: Add a note section in release notes
2022-12-19 13:13:38 +01:00
Joe Mooring
2d217cba51
helpers: Allow at signs in UnicodeSanitize (note)
...
Closes #10548
2022-12-19 09:58:56 +01:00
Bjørn Erik Pedersen
17055d1fa7
parser/metadecoders: Remove superflous cast in test
2022-12-14 20:10:17 +01:00
Bjørn Erik Pedersen
2a81a49499
parser/metadecoders: Simplify nil check in Unmarshal
2022-12-14 18:03:47 +01:00
AcClassic
e30d711c29
parser/metadecoders: Add empty /data JSON file as empty map
...
When fetching JSON files from the /data folder that are empty they will
be added as empty map[string]any. This makes sure that no empty JSON
file causes the site to crash because of a failed unmarshal. This
happens because empty is not a valid JSON string. It is therefore
important to check the lenght of the data before passing it to the JSON
unmarshal function.
Fixes #8601
2022-12-14 18:03:47 +01:00
Bjørn Erik Pedersen
ad2059878a
Also consider wrapped errors when checking for file IsNotExist errors
...
Fixes #10534
2022-12-14 13:51:06 +01:00
Bjørn Erik Pedersen
87e898a17a
tpl/openapi3: Wrap *kopenapi3.T
...
To make it easier to document.
2022-12-14 12:29:40 +01:00
Bjørn Erik Pedersen
b54de1bd9b
resources/js: Fix some import discrepancies between Hugo and ESBuild
...
This fixes the cases where
```js
import 'imp2/index.js';
import 'imp3/foo.js';
```
And these files lives in `assets` as:
```
imp2/index.ts
imp3/foo.ts
```
Fixes #10527
2022-12-13 18:58:17 +01:00
Bjørn Erik Pedersen
c9354d5463
github: Update to Dart Sass 1.56.2
2022-12-13 16:58:33 +01:00
Bjørn Erik Pedersen
d894269855
github: Use ruby/setup-ruby
...
Closes #10517
2022-12-11 19:43:46 +01:00
Joe Mooring
3fd0b78498
tpl/tplimpl: Use https in sitemap templates
...
Closes #10515
2022-12-11 18:53:30 +01:00
Francesco La Camera
e0e63f35e4
parser/metadecoders: Fix spelling
2022-12-10 19:37:47 +01:00
hugoreleaser
cc574ef120
releaser: Prepare repository for 0.109.0-DEV
...
[ci skip]
2022-12-06 13:50:51 +00:00
hugoreleaser
a0d64a46e3
releaser: Bump versions for release of 0.108.0
...
[ci skip]
2022-12-06 13:37:56 +00:00
Bjørn Erik Pedersen
f97544a830
Make the hugo env non verbose output slightly more verbose
...
This is how it may look like with a extended build:
```
hugo v0.107.0-6445b1e9ff963b07c55d9d69cb9abef8ef21fc5d+extended darwin/arm64 BuildDate=2022-12-06T11:21:50Z
GOOS="darwin"
GOARCH="arm64"
GOVERSION="go1.19.3"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
github.com/sass/dart-sass-embedded/protocol="1.1.0"
github.com/sass/dart-sass-embedded/compiler="1.56.1"
github.com/sass/dart-sass-embedded/implementation="1.56.1"
```
2022-12-06 13:37:08 +01:00
Bjørn Erik Pedersen
d8efe085ca
Add dart-sass-embedded version info to hugo env -v
...
```
~ ❯❯❯ hugo env -v | grep dart
github.com/bep/godartsass="v0.16.0"
github.com/sass/dart-sass-embedded/compiler="1.56.1"
github.com/sass/dart-sass-embedded/implementation="1.56.1"
github.com/sass/dart-sass-embedded/protocol="1.1.0"
```
2022-12-06 13:37:08 +01:00
Bjørn Erik Pedersen
f5b5b71c60
deps: Upgrade github.com/bep/godartsass v0.15.0 => v0.16.0
2022-12-06 13:37:08 +01:00
Razon Yang
b82b547acb
tpl/embedded: Make Open Graph's series optional
2022-12-06 10:48:34 +01:00
Bjørn Erik Pedersen
da670c38ee
Squashed 'docs/' changes from 4c1309cdf..2201ac0e5
...
2201ac0e5 Update theme
git-subtree-dir: docs
git-subtree-split: 2201ac0e5f
2022-12-06 10:42:36 +01:00
Bjørn Erik Pedersen
c9f2fa2663
Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc'
2022-12-06 10:42:36 +01:00
Bjørn Erik Pedersen
5067775a6f
common/hugio: Fix multiWriteCloser.Close
...
Fixes #10505
2022-12-06 10:32:33 +01:00
dependabot[bot]
50549c867c
build(deps): bump github.com/getkin/kin-openapi from 0.109.0 to 0.110.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.109.0 to 0.110.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.109.0...v0.110.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-12-06 10:22:14 +01:00
Bjørn Erik Pedersen
de9c5542ca
docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.
...
See #10492
2022-12-05 16:50:47 +01:00
Bjørn Erik Pedersen
e93138dfdb
dartsass: Add sourceMapIncludeSources option
2022-12-05 16:36:45 +01:00
Bjørn Erik Pedersen
7d16c3c0c1
github: Update Dart Sass Embedded to 1.56.1
2022-12-05 16:36:45 +01:00
Bjørn Erik Pedersen
63126c6359
markup/goldmark: Add removeSurroundingParagraph for Markdown images
...
* Removes any surrounding paragraph nodes
* And transfers any attributes from the surrounding paragraph down to the image node
* Adds IsBlock and Ordinal (zero based) field to the image context passed to the image render hooks
IsBlock is set to true if `wrapStandAloneImageWithinParagraph = false` and the image's parent node has only one child.
Closes #8362
Fixes #10492
Fixes #10494
Fixes #10501
2022-12-05 15:00:47 +01:00
dependabot[bot]
535ea8cc9b
build(deps): bump github.com/evanw/esbuild from 0.15.16 to 0.15.18
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.16 to 0.15.18.
- [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.15.16...v0.15.18 )
---
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-12-05 10:35:54 +01:00
dependabot[bot]
8bbec426cd
build(deps): bump golang.org/x/text from 0.4.0 to 0.5.0
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.4.0...v0.5.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-05 10:34:54 +01:00
dependabot[bot]
0bfa293dcd
build(deps): bump github.com/evanw/esbuild from 0.15.15 to 0.15.16
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.15 to 0.15.16.
- [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.15.15...v0.15.16 )
---
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-12-04 15:04:05 +01:00
Joe Mooring
0b976d2b40
tpl/tplimpl: Allow alternate comment syntax
...
Allow alternate comment syntax before block definitions:
{{/* foo */}}
{{- /* foo */}}
{{- /* foo */ -}}
Fixes #10495
2022-12-04 09:25:51 +01:00
Anton Sattarov
a49e51fd0b
resources: Increase timeout for http.Client
...
Increase timeout for http.Client in resources.GetRemote from 10 second to 1 minute
Fixes #10478
2022-12-03 15:47:47 +01:00
Bjørn Erik Pedersen
d373774cbe
tpl/collections: Fix some index cases where the indices given is a slice and be more lenient with nil inputs
...
See adjusted tests for detail.
Fixes #10489
2022-12-03 11:54:33 +01:00
Bjørn Erik Pedersen
7d5e3ab8a8
tpl: Misco GoDoc improvements
2022-12-03 11:54:33 +01:00
septs
dc44bca963
config/security: Add CI env var to whitelist
2022-12-02 12:13:34 +01:00
Bjørn Erik Pedersen
da16527896
Squashed 'docs/' changes from 32cb8785e..4c1309cdf
...
4c1309cdf Fix broken link to front matter page (#1923 )
8181fff20 Add footnote to Quick Start guide for Win users (#1922 )
4fd934f61 Fix abslangurl.md (#1919 )
bf2c45617 Quick start guide: fix broken links (#1915 )
201b568df Update theme
874db199d Hide the news stripe on front page for now
aaf59e3e2 netlify: Hugo 0.107.0
79654c301 Merge branch 'tempv107'
8345e0347 docs: Regen docs helper
b5b4f15f9 Add assets directory to directory structure diagram (#1917 )
76dd3a82a Follow-up: improve function signatures (#1914 ) (#1916 )
656dc72ba Improving function signatures (#1914 )
b715e8407 Explain how to create multilingual content (#1912 )
8500ee417 Fix typo in Quick Start guide
ce60bb572 Add docu for undocumented functions (#1907 )
372bf5e88 Improve Quick Start tutorial
71e81ec5f Remove asciicast from site
1e56c653f Update hosting-on-cloudflare-pages.md (#1903 )
1686f60b1 Adding documentation page for function 'strings.FirstUpper' (#1901 )
d533f7c9c Fixing typos (#1900 )
2563eee45 Update multilingual.md (#1899 )
2173ed799 Update theme
5591b8875 Update urls.md (#1897 )
4a88890b5 netlify: Hugo 0.106.0
512879fdd docs: Regen CLI docs
f74b1d87d docs: Regenerate docs helper
9feacb48f Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'
git-subtree-dir: docs
git-subtree-split: 4c1309cdfe
2022-12-02 09:19:23 +01:00
Bjørn Erik Pedersen
ef518485ce
Merge commit 'da16527896d3087585c5e758083ea498dcabc2c3'
2022-12-02 09:19:23 +01:00
Bjørn Erik Pedersen
83080df611
deps: Upgrade github.com/bep/godartsass v0.14.0 => v0.15.0
2022-12-02 09:08:22 +01:00
Joe Mooring
b8d5c378ba
tpl: Use consistent delimiter spacing in examples
2022-11-25 09:54:35 +01:00
Bjørn Erik Pedersen
75f782a5a7
docs: Regen docs helper
2022-11-24 15:17:22 +01:00
hugoreleaser
2221b5b30a
releaser: Bump versions for release of 0.107.0
...
[ci skip]
2022-11-24 13:59:45 +00:00
dependabot[bot]
6a004b8d94
build(deps): bump github.com/getkin/kin-openapi from 0.108.0 to 0.109.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.108.0 to 0.109.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.108.0...v0.109.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-11-24 13:21:23 +01:00
dependabot[bot]
0923622421
build(deps): bump github.com/evanw/esbuild from 0.15.14 to 0.15.15
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.14 to 0.15.15.
- [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.15.14...v0.15.15 )
---
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-11-24 13:20:50 +01:00
Bjørn Erik Pedersen
7855b47f07
Add a cache for lexers.Get
...
```
name old time/op new time/op delta
Codeblocks/Default-10 152ms ±11% 12ms ± 1% -92.44% (p=0.029 n=4+4)
Codeblocks/Hook_no_higlight-10 142ms ± 0% 7ms ± 0% -95.36% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
Codeblocks/Default-10 11.9MB ± 0% 11.7MB ± 0% -1.59% (p=0.029 n=4+4)
Codeblocks/Hook_no_higlight-10 4.62MB ± 1% 4.43MB ± 0% -4.08% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
Codeblocks/Default-10 209k ± 0% 209k ± 0% -0.03% (p=0.029 n=4+4)
Codeblocks/Hook_no_higlight-10 68.4k ± 0% 68.3k ± 0% -0.06% (p=0.029 n=4+4)
```
2022-11-24 13:18:33 +01:00
Bjørn Erik Pedersen
34d1150d92
markup/goldmark: Improve benchmark
2022-11-24 12:04:44 +01:00
Joe Mooring
85e2ac1a44
commands: Create assets directory with new site
...
Closes #10460
2022-11-21 09:42:40 +01:00
dependabot[bot]
74776726df
build(deps): bump github.com/frankban/quicktest from 1.14.3 to 1.14.4
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.14.3 to 1.14.4.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.3...v1.14.4 )
---
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-11-19 17:19:15 +01:00
dependabot[bot]
63f7f0ff5a
build(deps): bump golang.org/x/tools from 0.2.0 to 0.3.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-19 16:33:23 +01:00
Bjørn Erik Pedersen
bcb62d8911
deps: Upgrade github.com/alecthomas/chroma/v2 v2.4.0
2022-11-19 11:55:30 +01:00
Joe Mooring
00fe7e0408
hugo/parser: Fix shortcode boolean param parsing
...
Fixes #10451
2022-11-18 09:34:10 +01:00
hugoreleaser
df85cb9ae2
releaser: Prepare repository for 0.107.0-DEV
...
[ci skip]
2022-11-17 18:46:38 +00:00
hugoreleaser
e08ce30fe4
releaser: Bump versions for release of 0.106.0
...
[ci skip]
2022-11-17 18:33:40 +00:00
Bjørn Erik Pedersen
a99fed4852
resources/tpl: Add a test for resources.Get
...
Updates #10101
2022-11-17 18:09:54 +01:00
shifterbit
db945a6ed2
tlp/resources: resources.Get returns nil when given empty string
2022-11-17 18:09:54 +01:00
dependabot[bot]
bafb389b38
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.4 to 2.0.6
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.4 to 2.0.6.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.4...v2.0.6 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-17 17:07:40 +01:00
Bjørn Erik Pedersen
0a019a1a59
docs: Regen CLI docs
2022-11-17 16:19:22 +01:00
Bjørn Erik Pedersen
9f7fb0a73b
docs: Regenerate docs helper
2022-11-17 16:16:53 +01:00
Bjørn Erik Pedersen
f04cc581e1
Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'
2022-11-17 16:16:19 +01:00
Bjørn Erik Pedersen
00c4484c70
Squashed 'docs/' changes from 392668f4f..32cb8785e
...
32cb8785e Fix page weights in content management section (#1896 )
11977b96f Make relURL and related functions consistent (#1895 )
f12180207 Clarify github deployment (#1894 )
958877789 Remove remaining references to Highlight.js (#1893 )
fc487d263 Minor edit to taxonomy page
3b6a224b2 Update theme
b28553b62 Change "flavor" to "edition" when referring to builds (#1892 )
660e7581c Replaced sudo in OpenBSD with doas (#1891 )
e3fcdea10 fix a few minor grammatical issues on Firebase docs (#1889 )
e4c8b30eb update Static Web Apps docs (#1890 )
da2197c9e Update hosting-on-firebase.md (#1347 )
5f2a0c271 Adding deployment guide for Azure Static Web Apps (#1456 )
5aaf570cd add Azure Static Web App config to 404 template
35fc54362 add Azure Static Web App config to 404 template
d48f67ba1 Update 01-flavors.md
11debae8d Cleaned Use of ref and relref section, added refs of index.md and _in… (#1744 )
b77604078 docs: Add link to menu entry variables (#1827 )
0fa8a6bf0 Misc copy edits (#1887 )
c27b545ac Improve explanation of safeHTMLAttr's function (#1503 )
b04a4b32e Make CLI command summaries meaningful (#1886 )
dbf00a81f Fix a typo in diagrams documentation (#1885 )
11f884327 docs: Clarify how to remove draft/future/expired content (#1831 )
6dc9e9860 Improve complement function (#1884 )
56448a51a Remove erroneous sourcemap desc (#1883 )
a0d0d2829 Merge branch 'divinerites-patch-1'
10f20cb5e Add a plausible-hugo theme component
9f1413eb5 Minor edits to showcase example
7d78420db fix broken link to Isso Comments
925cb291f Make directory tree consistent with other examples
300fff092 Add link to security policy from getenv.md (#1746 )
7b4c517a6 Fix docs menu weights
ce35775e0 Update faq.md (#1763 )
f3fb791a4 Remove dated new-in flags (#1879 )
b6c634629 Remove deprecated templating langs (#1880 )
1b25ca34f Update the findRE and replaceRE functions (#1881 )
28757ec73 Add Alora Labs website to showcase (#1494 )
e3c4bc4e7 Remove unimplemented "ugly" property
86afd84ff Update editors.md (#1878 )
44c093911 Add urlquery function docs (#1633 )
16a8c3548 Update links to installation page (#1876 )
9e357f078 Add missing sections to BSD installation page (#1875 )
1b1291634 Promote "Installation" to a section
9dd51235b Add detail to description of .Plain page variable (#1870 )
d333d0287 Minor markdown linting fix and URL updates (#1873 )
d57c8aa50 Remove extraneous apostrophe (#1871 )
8c25cfc5c Update index.md
09fea41e0 Add lang to fenced code block
35b904798 Add small documentation about .Site.Social.twitter variable (#1854 )
672042f89 Consolidate site configuration
dfd4dd873 Add help.ampio.com showcase. (#1863 )
e8d0e7bdf Include link to internal templates code (#1794 )
7db6f0c01 Add example to split function (#1867 )
be87dba80 Clarify split function docs (#1792 )
a079193f1 Fix typo on data templates page
b234c70ee Fix data templates page (#1855 )
074232b45 Update front-matter.md (#1856 )
711c8fa80 Added missing default value (#1862 )
034762882 Fixed some grammar issues and typos (#1865 )
764574a4d Fix spelling error
2698f2d44 update URLs to prevent redirects (#1864 )
68f05fdc8 Fenced code blocks should have a language specified (#1861 )
24393315b GitHub Workflows security hardening (#1859 )
3eeee13bf Markdown formatting: Add Fenced code block languages (#1858 )
e152cdf1f netlify: Hugo 0.105.0
4c7fc9f7e Merge branch 'tempv0.105.0'
d16710afc Change anchor reference to use relref function calls (#1853 )
f52af8e4a tpl/encoding: Add noHTMLEscape option to jsonify
eca0046c4 Update hosting-on-keycdn docs (#1852 )
ffbe17a48 Add note for rsync deploy command (#1415 )
c482133f1 docs: Update quick start to clarify the need of extended version (#1828 )
1e3b33804 use correct URL for Google Search console verification (#1851 )
dac034f63 Markdown and formatting fixes (#1850 )
43f177e3c Fix LiveReload in quick-start (#1739 )
f78deaa5f Add link for ''Hugo Shortcode Syntax Highlighting' VS Code extension (#1765 )
08087ecd7 Remove some hidden pages (#1848 )
b6cb5ae48 Markdown linting fixes (#1846 )
527ec5941 Update hugo.md (#1742 )
83e8f2168 Clarify that a shortcode with .Inner must be closed (#1785 )
4193f4445 Add Super Linter GitHub Action (#1845 )
fd91bfe1a Formatting and grammar fixes (#1844 )
ab5a49c49 Create codeql-analysis GitHub Action (#1812 )
63b3e082e Add tutorial on using fusejs to search examples (#1756 )
54c253ab0 Note that Google Universal Analytics are deprecated (#1770 )
385fa77c6 Update articles.toml (#1840 )
5e336bd26 Replace awkward wording (ESL?) (#1842 )
2446ad349 Added Introduction to Hugo tutorial/video series (#1736 )
7b21b2e76 Don't use self-closing generator tag
ef73712ff Image processing. available methods: add method 'Colors' (#1837 )
018f83bbe [comment platform] - add new alternative (#1751 )
5636c208b Grammar and spelling fixes (#1836 )
3f2e26f77 Change link of repojacking vulnerable link - JekyllToHugo (#1834 )
301379fc3 fix: use shorter image URL to make it easier to read (#1835 )
de5fa7b30 Update search.md to include Pagefind (#1826 )
e9d72bcda Breadcrumb example: add basic accessibility (#1832 )
6cffff87a netlify: Hugo 0.104.3
892360f61 Update output-formats.md
09a7a46ae Remove my defunct and little used migrator (#1824 )
347434cca netlify: Hugo 0.104.2
f8c721162 Update postcss.md
c2baf7155 netlify: Hugo 0.104.1
05d1192cd Update diagrams.md (#1823 )
3c43a8bbe netlify: Hugo 0.104.0
57973b334 Merge branch 'tempv0.104.0'
da775a36d docs: Regen docs helper
ae48b5901 docs: Regenerate CLI docs
af4a823b1 resources/images: Add $image.Colors
8e3f9ca64 Remove outdated IE conditional comments example (#1821 )
d1a84701b fix typo in template introduction (#1820 )
c0c7339e0 Update internal.md
17aefc515 Remove the recommendation about where to put the GA tempalte
263297236 Adjust GA template instructions
1cc265d99 Update the GA template usage section
e11968338 config/security: Allow proxy variables in subcommands
9218ab993 netlify: Hugo 0.103.1
0b0e890d1 Update markdownify and RenderString documentation (#1818 )
50f5d4776 Fix internal link (#1817 )
6beb443c5 netlify: Hugo 0.103.0
14b5af248 Merge branch 'tempv0.103.0'
548e7aa62 server: Add 404 support
3a20aa0ba Update theme
git-subtree-dir: docs
git-subtree-split: 32cb8785ea
2022-11-17 16:14:29 +01:00
dependabot[bot]
cdd83bf3c8
build(deps): bump github.com/evanw/esbuild from 0.15.13 to 0.15.14
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.13 to 0.15.14.
- [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.15.13...v0.15.14 )
---
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-11-16 19:15:58 +01:00
Bjørn Erik Pedersen
e00220a06a
deps: Update the libweb version string
2022-11-15 18:21:08 +01:00
Bjørn Erik Pedersen
a662ddae13
deps: Upgrade github.com/bep/gowebp v0.1.0 => v0.2.0
2022-11-15 18:19:35 +01:00
Vignesh Mani
13adf3e028
readme: Update ToC
2022-11-15 18:19:16 +01:00
dependabot[bot]
fe08d35f24
build(deps): bump github.com/yuin/goldmark from 1.5.2 to 1.5.3
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.5.2...v1.5.3 )
---
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-11-15 11:48:20 +01:00
dependabot[bot]
4b675ddd4a
build(deps): bump github.com/spf13/afero from 1.9.2 to 1.9.3
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.2...v1.9.3 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-15 10:01:23 +01:00
dependabot[bot]
24eaa290cf
build(deps): bump github.com/getkin/kin-openapi from 0.107.0 to 0.108.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.107.0 to 0.108.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.107.0...v0.108.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-11-15 10:00:57 +01:00
Bjørn Erik Pedersen
f6ab9553f4
tpl/internal: Sync go_templates
...
Closes #10411
2022-11-14 22:31:50 +01:00
dependabot[bot]
58a98c7758
build(deps): bump github.com/clbanning/mxj/v2 from 2.5.6 to 2.5.7
...
Bumps [github.com/clbanning/mxj/v2](https://github.com/clbanning/mxj ) from 2.5.6 to 2.5.7.
- [Release notes](https://github.com/clbanning/mxj/releases )
- [Commits](https://github.com/clbanning/mxj/compare/v2.5.6...2.5.7 )
---
updated-dependencies:
- dependency-name: github.com/clbanning/mxj/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-14 22:20:38 +01:00
dependabot[bot]
900904fd11
build(deps): bump golang.org/x/net from 0.1.0 to 0.2.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.1.0...v0.2.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-14 19:08:03 +01:00
dependabot[bot]
24eca0cbe9
build(deps): bump github.com/evanw/esbuild from 0.15.12 to 0.15.13
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.12 to 0.15.13.
- [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.15.12...v0.15.13 )
---
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-11-14 19:07:26 +01:00
Vignesh Mani
60e0e2c1d9
Add Go 1.16+ install method to README
...
Changed installation method to reflect Go 1.16+, as cloning the repo and doing a go install achieves the same process.
Also changed "Advanced Installation" to "Using the Go toolchain"
2022-11-10 17:36:31 +01:00
Bjørn Erik Pedersen
52ea07d2eb
Fix taxonomy weight sort regression
...
Fixes #10406
2022-11-01 18:45:34 +01:00
hugoreleaser
77fc74a5b2
releaser: Prepare repository for 0.106.0-DEV
...
[ci skip]
2022-10-28 12:41:15 +00:00
hugoreleaser
0e3b42b4a9
releaser: Bump versions for release of 0.105.0
...
[ci skip]
2022-10-28 12:29:05 +00:00
dependabot[bot]
f50585442d
build(deps): bump golang.org/x/tools from 0.1.12 to 0.2.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.1.12 to 0.2.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.1.12...v0.2.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-28 14:10:21 +02:00
dependabot[bot]
2aedccc9a9
build(deps): bump github.com/getkin/kin-openapi from 0.106.0 to 0.107.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.106.0 to 0.107.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.106.0...v0.107.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-10-28 14:09:21 +02:00
dependabot[bot]
c10931404f
build(deps): bump golang.org/x/text from 0.3.7 to 0.4.0
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.7 to 0.4.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.4.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-27 12:28:57 +02:00
dependabot[bot]
4732c47d1d
build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.1
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.5.0...v1.6.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 >
2022-10-27 12:28:37 +02:00
dependabot[bot]
62780ec8dd
build(deps): bump github.com/getkin/kin-openapi from 0.103.0 to 0.106.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.103.0 to 0.106.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.103.0...v0.106.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-10-27 12:28:21 +02:00
dependabot[bot]
351d6b062b
build(deps): bump github.com/tdewolff/minify/v2 from 2.12.1 to 2.12.4
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.12.1 to 2.12.4.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.12.1...v2.12.4 )
---
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-10-26 13:02:40 +02:00
Bjørn Erik Pedersen
631d768be9
Revise the fix for shortcode vs output format nilpointer
...
We do lazy initialization and (potentially) reuse of an output format's rendered content. We do this evaluation when we
start a new rendering a new output format. There are, however, situation where these borders gets crossed (e.g.
accessing content from another output format). We have a check for this in place for most cases, but not the content
rendering of inner markdown blocks inside shortcodes. This patch applies that same logic to the newly introduced
RenderContent method (which is not available from the templates).
Fixes #10391
2022-10-26 13:00:21 +02:00
davidejones
e5d2a8f6a3
Avoid nilpointer when shortcode page content output nil
...
Updates #10391
2022-10-26 13:00:21 +02:00
Bjørn Erik Pedersen
00ff161b67
livereload: Use text/javascript here, too
2022-10-26 12:54:50 +02:00
Bjørn Erik Pedersen
588710a7ac
media: Rename application/javascript, application/typescript to text/javascript etc.
...
The former is deprecated.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
See https://discourse.gohugo.io/t/mime-type-for-javascript-is-now-text-javascript/40813
2022-10-26 10:38:27 +02:00
dependabot[bot]
ed930db2f0
build(deps): bump github.com/yuin/goldmark from 1.4.15 to 1.5.2
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.15 to 1.5.2.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.15...v1.5.2 )
---
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 >
2022-10-26 10:34:24 +02:00
dependabot[bot]
05df964816
build(deps): bump github.com/fsnotify/fsnotify from 1.5.4 to 1.6.0
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.5.4 to 1.6.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.5.4...v1.6.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 >
2022-10-26 10:25:34 +02:00
Bjørn Erik Pedersen
20ef6dcf95
Skip flakey server tests on GitHub Action on Windows
2022-10-26 09:29:55 +02:00
dependabot[bot]
9860e0e186
build(deps): bump github.com/magefile/mage from 1.13.0 to 1.14.0
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.13.0 to 1.14.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.13.0...v1.14.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-10-25 16:13:08 +02:00
Bjørn Erik Pedersen
d1cd1db0e7
github: Avoid duplicate test runs
2022-10-25 16:08:41 +02:00
Bjørn Erik Pedersen
09e10110a3
tpl/encoding: Add noHTMLEscape option to jsonify
2022-10-24 17:21:42 +02:00
dependabot[bot]
2ef60dbd2d
build(deps): bump github.com/evanw/esbuild from 0.15.9 to 0.15.12
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.9 to 0.15.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.15.9...v0.15.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 >
2022-10-24 17:19:54 +02:00
Steffen Windoffer
6275aad9e2
Update Go and Alpine version in Dockerfile
2022-10-19 19:58:25 +02:00
JB
01ebb6e304
Don't use self-closing generator tag
2022-10-14 12:16:53 +02:00
Bjørn Erik Pedersen
a066e98851
build: Update to Go 1.19.2
2022-10-11 09:26:31 +02:00
Bjørn Erik Pedersen
1fd3320dcf
github: Use SHA versions
2022-10-05 16:37:37 +02:00
jongwooo
0fb2b3d143
Resolve dependency-path not found error in workflow
2022-10-05 20:39:45 +09:00
jongwooo
db05232d56
Use setup-go action to cache dependencies
2022-10-05 10:20:22 +02:00
hugoreleaser
2734f956c3
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-10-04 14:39:43 +00:00
hugoreleaser
58b8245813
releaser: Bump versions for release of 0.104.3
...
[ci skip]
2022-10-04 14:25:23 +00:00
Bjørn Erik Pedersen
ec57cf2c30
resources: Update golden image dithering exception list
2022-10-04 16:19:52 +02:00
Bjørn Erik Pedersen
3a9cb7b0fb
resources/images: Fix 2 animated GIF resize issues
...
* Fix resize of animated GIF when target != GIF
* Avoid processing all GIF frames if targetFormat != GIF
Fixes #10354
2022-10-04 15:38:12 +02:00
Anthony Fok
0addb302ac
server: Fix flaky TestServerPathEncodingIssues tests
...
Set getNumHomes: 1 to enable 567 ms or 2 s of wait for the server
to be ready in TestServerPathEncodingIssues/Unicode_paths and
TestServerPathEncodingIssues/Windows_multilingual_404.
Fixes #10332
2022-10-04 14:48:29 +02:00
Joe Mooring
b002d47953
commands: Remove extraneous newline from result of convert toTOML
...
Fixes #10351
2022-10-04 09:28:34 +02:00
Ricardo N Feliciano
e3f31352d4
config/security: Fix filename
2022-10-02 12:52:04 +02:00
hugoreleaser
ec02c537ed
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-09-29 10:47:15 +00:00
hugoreleaser
84cbe72498
releaser: Bump versions for release of 0.104.2
...
[ci skip]
2022-09-29 10:31:09 +00:00
Bjørn Erik Pedersen
4611b6920b
Fix htimes /: operation not permitted error on config changes
...
Regression introduced in v0.104.1.
2022-09-29 12:27:25 +02:00
Bjørn Erik Pedersen
2171e3c9a5
Revert "Adjust a test"
...
Committed by mistake.
This reverts commit cac773aeff .
2022-09-27 11:42:25 +02:00
Bjørn Erik Pedersen
cac773aeff
Adjust a test
2022-09-27 11:41:15 +02:00
hugoreleaser
51010a69bc
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-09-26 17:17:27 +00:00
hugoreleaser
8958b8741f
releaser: Bump versions for release of 0.104.1
...
[ci skip]
2022-09-26 17:05:45 +00:00
Bjørn Erik Pedersen
29ccb36069
Fix /static performance regression from Hugo 0.103.0
...
In `v0.103.0` we added support for `resources.PostProcess` for all file types, not just HTML. We had benchmarks that said we were fine in that department, but those did not consider the static file syncing.
This fixes that by:
* Making sure that the /static syncer always gets its own file system without any checks for the post process token.
* For dynamic files (e.g. rendered HTML files) we add an additional check to make sure that we skip binary files (e.g. images)
Fixes #10328
2022-09-26 19:02:25 +02:00
hugoreleaser
d8aba18e05
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-09-23 14:44:31 +00:00
hugoreleaser
c744dbd6ed
releaser: Bump versions for release of 0.104.0
...
[ci skip]
2022-09-23 14:32:56 +00:00
Bjørn Erik Pedersen
5c41653364
Consolidate the glob case logic
...
Looking at the code as a whole, we ended up with a little to much "buttons". It turns out that doing case insensitive matching (lower both pattern and strings to match) performs just fine. Or at least, it
gives the penalty to the people who uses mixed case filenames.
```
GetGlob/Default_cache-10 10.6ns ± 2% 10.6ns ± 1% ~ (p=0.657 n=4+4)
GetGlob/Filenames_cache,_lowercase_searchs-10 10.6ns ± 2% 10.6ns ± 0% ~ (p=1.000 n=4+4)
GetGlob/Filenames_cache,_mixed_case_searchs-10 29.7ns ± 1% 29.6ns ± 1% ~ (p=0.886 n=4+4)
GetGlob/GetGlob-10 13.7ns ± 1% 13.7ns ± 0% ~ (p=0.429 n=4+4)
name old alloc/op new alloc/op delta
GetGlob/Default_cache-10 0.00B 0.00B ~ (all equal)
GetGlob/Filenames_cache,_lowercase_searchs-10 0.00B 0.00B ~ (all equal)
GetGlob/Filenames_cache,_mixed_case_searchs-10 5.00B ± 0% 5.00B ± 0% ~ (all equal)
GetGlob/GetGlob-10 0.00B 0.00B ~ (all equal)
name old allocs/op new allocs/op delta
GetGlob/Default_cache-10 0.00 0.00 ~ (all equal)
GetGlob/Filenames_cache,_lowercase_searchs-10 0.00 0.00 ~ (all equal)
GetGlob/Filenames_cache,_mixed_case_searchs-10 1.00 ± 0% 1.00 ± 0% ~ (all equal)
GetGlob/GetGlob-10
```
2022-09-23 16:19:21 +02:00
satotake
281554ee97
hugofs: Fix glob case-sensitivity bug
...
On Linux, `hugofs.Glob` does not hit any directories which includes
uppercase letters. (This does not happen on macOS.)
Since `resources.GetMatch/Match` uses `Glob`,
```
{{ resources.GetMatch "Foo/bar.css" }}
```
this does not match `assets/Foo/bar.css` .
On the other hand, you can get it with
```
{{ resources.Get "Foo/bar.css" }}
```
2022-09-23 13:12:57 +02:00
Bjørn Erik Pedersen
f3560aa0e1
server: Fix 404 redirects on Windows
...
Fixes #10314
2022-09-23 13:07:56 +02:00
dependabot[bot]
edf9038a92
build(deps): bump github.com/evanw/esbuild from 0.15.8 to 0.15.9
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.8 to 0.15.9.
- [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.15.8...v0.15.9 )
---
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-09-23 10:56:45 +02:00
dependabot[bot]
78f49b4c0d
build(deps): bump github.com/yuin/goldmark from 1.4.14 to 1.4.15
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.14 to 1.4.15.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.14...v1.4.15 )
---
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-09-22 19:25:55 +02:00
dependabot[bot]
fa4b77e7ed
build(deps): bump github.com/getkin/kin-openapi from 0.100.0 to 0.103.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.100.0 to 0.103.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.100.0...v0.103.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-09-22 19:05:44 +02:00
Bjørn Erik Pedersen
8377c3cea1
docs: Regen docs helper
2022-09-22 18:55:00 +02:00
dependabot[bot]
4d909d4768
build(deps): bump github.com/alecthomas/chroma/v2 from 2.2.0 to 2.3.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.2.0...v2.3.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-22 18:54:27 +02:00
dependabot[bot]
4eb6d97404
build(deps): bump github.com/evanw/esbuild from 0.15.7 to 0.15.8
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.7 to 0.15.8.
- [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.15.7...v0.15.8 )
---
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-09-22 18:53:12 +02:00
Bjørn Erik Pedersen
4f9cb4f344
docs: Regenerate CLI docs
2022-09-22 17:57:13 +02:00
Bjørn Erik Pedersen
0171fb2010
Run go mod tidy
2022-09-22 17:42:48 +02:00
Bjørn Erik Pedersen
a4028112e3
resources/images: Add $image.Colors
...
Which returns the most dominant colors of an image using a simple histogram method.
Fixes #10307
2022-09-22 15:57:35 +02:00
Bjørn Erik Pedersen
08f0984f91
commands: Skip flaky test on CI
2022-09-22 11:24:42 +02:00
Mathieu Parent
86653fa38e
config/security: Allow proxy variables in subcommands
...
In particular for go get
2022-09-19 12:37:35 +02:00
hugoreleaser
c46d104985
releaser: Prepare repository for 0.104.0-DEV
...
[ci skip]
2022-09-18 13:31:21 +00:00
hugoreleaser
b665f1e8f1
releaser: Bump versions for release of 0.103.1
...
[ci skip]
2022-09-18 13:19:01 +00:00
Bjørn Erik Pedersen
6be6752c8a
server: Fix redirects when file path contains bytes > 0x80
...
Fixes #10287
2022-09-18 15:16:11 +02:00
Bjørn Erik Pedersen
8e9dce1092
Merge branch 'release-0.103.0'
2022-09-15 18:47:37 +02:00
hugoreleaser
00b71668b2
releaser: Prepare repository for 0.104.0-DEV
...
[ci skip]
2022-09-15 16:35:38 +00:00
hugoreleaser
beebf2afb0
releaser: Bump versions for release of 0.103.0
...
[ci skip]
2022-09-15 16:23:56 +00:00
Bjørn Erik Pedersen
3f0b40f674
Use standard GOOS/GOARCH values in release archives
...
But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking).
Fixes #10073
2022-09-15 18:22:35 +02:00
Bjørn Erik Pedersen
0bd79d30c1
Use standard GOOS/GOARCH values in release archives
...
But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking).
Fixes #10073
2022-09-15 12:26:22 +02:00
Bjørn Erik Pedersen
8e77bcc930
Filter out any duplicate files to post process
...
Updates #10269
2022-09-14 19:42:55 +02:00
Bjørn Erik Pedersen
74daca6b30
Support PostProcess for all file types
...
Not just HTML.
Fixes #10269
2022-09-14 19:09:20 +02:00
dependabot[bot]
1fd4c562af
build(deps): bump github.com/gobuffalo/flect from 0.2.5 to 0.3.0
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.2.5 to 0.3.0.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.5...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 18:12:47 +02:00
Bjørn Erik Pedersen
a5cda5ca4d
server: Add 404 support
2022-09-14 14:25:33 +02:00
dependabot[bot]
5e2b28d6e6
build(deps): bump github.com/getkin/kin-openapi from 0.98.0 to 0.100.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.98.0 to 0.100.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.98.0...v0.100.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-09-14 11:21:14 +02:00
dependabot[bot]
f2019f0a23
build(deps): bump github.com/evanw/esbuild from 0.15.5 to 0.15.7
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.5 to 0.15.7.
- [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.15.5...v0.15.7 )
---
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-09-14 10:58:32 +02:00
dependabot[bot]
475638fe02
build(deps): bump github.com/yuin/goldmark from 1.4.13 to 1.4.14
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.13 to 1.4.14.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.13...v1.4.14 )
---
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-09-14 10:58:12 +02:00
Bjørn Erik Pedersen
203cc54578
Feat/sponsors in readme ( #10273 )
...
* Update README.md
* Update README.md
2022-09-14 10:20:57 +02:00
Bjørn Erik Pedersen
90ad804505
Squashed 'docs/' changes from e5aa641a6..392668f4f
...
392668f4f Update theme
65d82c845 fix versions in GitHub Pages docs (#1815 )
4e078a306 Create hosting-on-azure-static-web-apps.md (#1738 )
e24e25052 fix requirement typo (#1814 )
0790eb173 fix broken link (#1813 )
f4a1b38c7 📄 Add more clarity on merging of config files (#1493 )
2e82efff0 Install on Windows: Correct + augment (#1520 )
4bffd076e Update frontends to add CloudCannon's CMS (#1509 )
17eea3133 Update index.md to add resource (#1508 )
5a5ac1d2f Add documentation for babel sourceMap (#1492 )
899b7117c Update menu-templates.md
284dc4266 Include flexible translation in i18n.md
f03421274 docs: Escaping Hugo/GO template code
4f0755683 Improve the documentation of imageConfig and the image resource
89aa723cc Clarify leaf bundle explanation and related FAQ
0c6b32bb9 Update starter-kits.md
a68151b1b Update starter-kits.md
91b145384 Update starter-kits.md
c8104b422 Update hosting-on-21yunbox.md
51ee7603b Update hosting-on-21yunbox.md
d88314499 docs(en): add hosting on 21YunBox
aab04f269 Update shortcode-templates.md to correct an error.
ed48563aa Misc improvements
87dd24e1d Fix merge failure
0bcc6dca8 js.Build: Update docs to not allow boolean inputs for sourceMap
e50a28fbc js.Build: Add SourceMap flag into js.Build opts which can turn on sourcemap
9695093a1 Fix Arch Linux installation command
3de773d7a Please remove hugo-elasticsearch plugin.
6510f0a5a release: Add some more ignore expressions to release notes config
dc90b7517 typoe > typo (!)
3427c7436 Add hugoreleaser config
5a1f2d0dd Improves formatting of resources, assets sections (#1804 )
03ba56fdd Remove Flesland Flis from Showcases
9f61dac7a Update slice.md
533e4e0cd Update theme
85e50325c Simplify writing
9b30e81b9 Typo fix and remove passive form
8974b6c53 dynamic-menu-configuration
1c5467329 netlify: Hugo 0.102.3
610a937b0 Remove Over from Showcase
99f5585bc netlify: Hugo v0.102.2
9f230ac1f netlify: Hugo v0.102.1
a6fc3f864 netlify: Bump to Hugo v0.102.0
3e9bc1a62 Merge branch 'tempv0.102.0'
c08d6d898 Update en/templates/404.md with Firebase Hosting (#1796 )
322b75f40 Update configuration.md
2fa6f0b94 404 template example: remove slash relURL arg
1195f168a Remove broken link (#1767 )
e0838e574 Update RenderString.md
bee6adf71 Update page-resources.md
24e142f22 Remove duplicate word from cascade description
879fc3983 docs: Update the description of PostCSS config
2ffe539e3 fix: Use `=` instead of `:=` for variable reassignments (#1771 )
7496b8f87 update 404 error for digitalocean docs
c85caca4a Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'
c3888b63a docs: Regen docshelper
8a5942555 Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'
282007217 common: Add hugo.GoVersion
00b4b46da resources/page: Add :slugorfilename attribute
git-subtree-dir: docs
git-subtree-split: 392668f4f4
2022-09-13 20:34:24 +02:00
Bjørn Erik Pedersen
af23cdca9c
Merge commit '90ad8045056167004d27857a95542936657b8a16'
2022-09-13 20:34:24 +02:00
satotake
ab5ce59894
Fix usage description
2022-09-08 15:35:11 +02:00
satotake
7d40da876c
Add --force to hugo new
...
Closes #9243
2022-09-08 15:35:11 +02:00
Jenny Rakoczy
02c89a446d
scss: Handle single-file sourcemaps correctly
...
Simple sites may only have one css file. Update the replace directive to
correctly match single-file sourcemaps and multi-file sourcemaps.
Verified locally with and without SASS and CSS imports.
Fixes #8174
2022-09-06 10:52:28 +02:00
Bjørn Erik Pedersen
06c3ac6741
release: Bump Hugoreleaser version
2022-09-03 11:38:03 +02:00
Alex
5e03de0ddb
Update stale.yml
...
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com >
2022-09-02 20:13:02 +02:00
hugoreleaser
bef31b58aa
releaser: Prepare repository for 0.103.0-DEV
...
[ci skip]
2022-09-01 10:34:57 +00:00
hugoreleaser
b76146b129
releaser: Bump versions for release of 0.102.3
...
[ci skip]
2022-09-01 10:16:19 +00:00
Bjørn Erik Pedersen
8e5044d7f5
Fix shortcode parser regression with quoted param values
...
This issue was introduced in `v0.102.0`.
In 223bf28004 we removed the byte source from the parsed page result, which
meant we had to preserve exact positioning for all elements. This introduced some new `TypeIgnore` tokens
which we, wrongly, assumed didn't matter where we put in the result slice (they should be ignored anyway).
But it seems that this broke the logic where we determine if it's positional or named params in the case
where the paramater value contains escaped quoutes.
This commit makes sure that these ignore tokens (the back slashes) are never sent back to the client, which is how it was before `v0.102.0`.
This commit also fixes some lost error information in that same commit.
Fixes #10236
2022-09-01 12:13:23 +02:00
Joe Mooring
5046a6c7ca
deps: Update github.com/tdewolff/minify/v2 v2.12.0 => v2.12.1
...
Fixes #10230
2022-08-31 09:02:50 +02:00
Anthony Fok
160a067c81
snap: Use "snapcraftctl set-grade"
...
This, together with 'snapcraftctl set-version", negates the need to
modify snap/snapcraft.yaml upon each release, so the corresponding code
is removed from releaser/releaser.go.
Also, vendorInfo is extended to include the snap version number.
See #10225
2022-08-30 05:23:18 -06:00
Anthony Fok
e0ba1a805a
snap: Use "snapcraftctl set-version"
...
This allows the use of "git describe --tags" to recognize lightweight
version tags, and the removal of initial "v" in the hugo snap version.
See #10225
2022-08-29 23:14:22 -06:00
Anthony Fok
7b49c56a6a
snap: Make external dependencies actually work
...
Git:
- Set GIT_EXEC_PATH and include usr/lib/git-core so that git can find the
git-remote-https helper (needed by e.g. "go mod download").
Go:
- Put Go in its own snap part, and use stage-snaps instead of build-snaps
so that it is included in the final snap.
- Set GOCACHE to a writable directory. (In a previous commit,
HOME is set to $SNAP_REAL_HOME which is unwritable.)
Hugo:
- Patch config/security/securityConfig.go "[security.exec] osEnv" whitelist
(during snap build) so that external dependencies can use the required
environment variables to run properly from within the snap.
Asciidoctor:
- Replace shebang line in asciidoctor so it can find the ruby executable.
- Set RUBYLIB so that Ruby can find its libraries.
Caveat/TODO: The Ruby version is hardcoded in our custom RUBYLIB.
Embedded Dart Sass:
- Download from GitHub and install it, for amd64 and arm64 only.
Node.js:
- Remove my incomplete include list so that npx is actually installed.
- Set npm_config_{cache,init_module,userconfig} to writable locations.
Pandoc:
- Set pandoc_datadir so that Pandoc can find its data files.
rst2html:
- Install python3-docutils package for rst2html, rst2html5, etc.
- Set PYTHONHOME so that Python can find its libraries.
Note that asciidoctor, pandoc and rst2html are not in Hugo’s default
"[security.exec] allow" whitelist, and the snap package does not change
that default, so they still needed to be whitelisted manually in
config.toml if necessary by the end user.
Special thanks to Joe Mooring (@jmooring) for meticulously diagnosing
the issue and providing a comprehensive test repository at
https://github.com/jmooring/hugo-snap-test without which I would not
have been able to understand and resolve the issue.
Fixes #9078
2022-08-29 12:24:58 -06:00
Bjørn Erik Pedersen
dffca57883
release: Add the releaser commits to the ignore list
2022-08-29 16:29:45 +02:00
Bjørn Erik Pedersen
79932e7225
release: Fix the Deb archives
...
Fixes #10220
2022-08-29 14:56:15 +02:00
hugoreleaser
9eb9b70a29
releaser: Prepare repository for 0.103.0-DEV
...
[ci skip]
2022-08-28 16:41:06 +00:00
hugoreleaser
0ff4a9326f
releaser: Bump versions for release of 0.102.0
...
[ci skip]
2022-08-28 16:29:34 +00:00
Bjørn Erik Pedersen
45e1084ff2
Add linux/arm64 extended to release setup
...
Fixes #8257
2022-08-28 18:23:01 +02:00
Bjørn Erik Pedersen
c98348416c
license: Add copyright info
...
Closes #10218
2022-08-28 12:55:47 +02:00
dependabot[bot]
2de393c791
build(deps): bump go.uber.org/atomic from 1.9.0 to 1.10.0
...
Bumps [go.uber.org/atomic](https://github.com/uber-go/atomic ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/uber-go/atomic/releases )
- [Changelog](https://github.com/uber-go/atomic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/atomic/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/atomic
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-28 12:02:17 +02:00
dependabot[bot]
7efb35680f
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.9 to 2.2.10
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.9 to 2.2.10.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.9...v2.2.10 )
---
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-08-26 18:50:51 +02:00
dependabot[bot]
ddbcc67122
build(deps): bump github.com/getkin/kin-openapi from 0.97.0 to 0.98.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.97.0 to 0.98.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.97.0...v0.98.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-08-26 18:48:56 +02:00
Bjørn Erik Pedersen
fd75f129b2
deps: Update github.com/pelletier/go-toml/v2 v2.0.2 => v2.0.4
...
Closes #10210
2022-08-26 18:30:46 +02:00
dependabot[bot]
14878ca0a0
build(deps): bump github.com/spf13/afero from 1.8.2 to 1.9.2
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.8.2 to 1.9.2.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.8.2...v1.9.2 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-26 12:01:51 +02:00
dependabot[bot]
e88873b803
build(deps): bump github.com/tdewolff/parse/v2 from 2.6.1 to 2.6.2
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.6.1...v2.6.2 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-26 12:01:19 +02:00
dependabot[bot]
4219993b0c
build(deps): bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.14 to 0.0.16.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.14...v0.0.16 )
---
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 >
2022-08-25 12:28:50 +02:00
dependabot[bot]
988e1417a0
build(deps): bump github.com/rogpeppe/go-internal from 1.8.1 to 1.9.0
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.8.1...v1.9.0 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-23 13:36:47 +02:00
dependabot[bot]
42529882ce
build(deps): bump github.com/yuin/goldmark from 1.4.12 to 1.4.13
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.12 to 1.4.13.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.12...v1.4.13 )
---
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-08-23 13:34:24 +02:00
dependabot[bot]
45f1b1cfc5
build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.4.0...v1.5.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-08-23 06:53:38 +02:00
dependabot[bot]
369bdf22f8
build(deps): bump github.com/tdewolff/minify/v2 from 2.11.10 to 2.12.0
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.11.10 to 2.12.0.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.11.10...v2.12.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-08-23 00:00:14 +02:00
dependabot[bot]
d1b03a093f
build(deps): bump github.com/evanw/esbuild from 0.14.43 to 0.15.5
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.43 to 0.15.5.
- [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.43...v0.15.5 )
---
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 >
2022-08-22 23:58:15 +02:00
Reece Russell
941c28ab0c
readme: Add Golang URL to Go links
2022-08-22 19:45:15 +02:00
Bjørn Erik Pedersen
ffbdcc75ab
Update README.md
2022-08-19 19:15:58 +02:00
Bjørn Erik Pedersen
95d9764518
Update README.md
2022-08-19 19:12:43 +02:00
Bjørn Erik Pedersen
b66f9f2665
Update README.md
2022-08-19 19:12:04 +02:00
Anthony Fok
f7e00c039f
github: Use GitHub's Choco-Install function to retry installs
...
Apparently, two instances of "choco install mingw" running simultaneously
(for go-version 1.18.x and 1.19.x) would often cause at least one of them
to fail to connect to SourceForge:
ERROR: The remote file either doesn't exist, is unauthorized,
or is forbidden for url
'https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/ray_linn/GCC-10.X-with-ada/GCC-10.2.0-crt-8.0.0-with-ada-20201019.7z/download '.
Exception calling "GetResponse" with "0" argument(s):
"The request was aborted: Could not create SSL/TLS secure channel."
With Choco-Install however, it simply works every single time!
Thanks to keymanapp/api.keyman.com#156 for the great tip!
See the definition of the PowerShell Choco-Install function here:
https://github.com/actions/runner-images/blob/main/images/win/scripts/ImageHelpers/ChocoHelpers.ps1
2022-08-14 00:52:23 -06:00
Bjørn Erik Pedersen
f5ba6fd45c
common/hugio: One more fix for non-OS fs
...
Note that these are only used with OS fs, so no practical bugs, but still-
2022-08-13 19:22:45 +02:00
Bjørn Erik Pedersen
c4bbc1eeeb
common/hugio: Fix CopyDir when fs is not OS
2022-08-13 18:26:16 +02:00
Anthony Fok
0e0fb1b648
snap: Delete obsolete custom x-nodejs plugins
2022-08-12 21:39:25 -06:00
satotake
b017f7cb01
livereload: Inject script without head or body tag
...
Currently, Hugo does not inject `livereload` script if html does not contain `<head>` or `<body>`. This sometimes happens if you create new sites without `theme` and it is hard to catch the cause soon.
This PR:
* Inject livereload script even if html does not include `<head>`, `<body>`, or `<html>`
- Modern browsers execute scripts even if they are outside `<html>`
- Some js frameworks (confirmed with vite) inject HRM script without `<html>` tag
* Append warning script to html if `<head>` or `<body>` is not in html
* Fix bug that livereload cannot be appended to the tags with attrs
Close #10105
2022-08-07 18:34:01 +02:00
Bjørn Erik Pedersen
7fb28085ac
releaser: Fat MacOS binaries
...
Closes #9131
2022-08-03 23:22:01 +02:00
Bjørn Erik Pedersen
0cd1929b9c
Update to Go 1.19
...
Fixes #10145
2022-08-03 23:22:01 +02:00
piyo
cbdaff2135
markup/goldmark/codeblock: Fix attributes when no language identifier in CodeBlock
...
Fixes #10118
2022-08-03 11:32:08 +02:00
杨晴
3fefea06b8
commands: Fix embed in livereload.go
2022-08-01 11:42:26 +02:00
Bjørn Erik Pedersen
5c48ba9343
Update README.md
...
Updates #10136
2022-07-31 15:41:42 +02:00
Takeshi Sato
21562e3aad
Externalise and embed livereload.js string
...
This is a small refactoring. `livereload/livereload.go` has a wide
column. Sometimes language server does not work because of it.
Create a new js file and embed it.
2022-07-26 13:51:08 +02:00
Bjørn Erik Pedersen
9c24b86e4b
Cache when not found in LookupLayout
...
Very visible when using the pprof mutex profiler.
```bash
name old time/op new time/op delta
Baseline-10 58.4ms ± 1% 51.6ms ± 0% -11.56% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
Baseline-10 64.3MB ± 0% 64.2MB ± 0% ~ (p=0.114 n=4+4)
name old allocs/op new allocs/op delta
Baseline-10 649k ± 0% 649k ± 0% ~ (p=0.229 n=4+4)
```
2022-07-13 15:49:00 +02:00