]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
2 years agomarkup/asciidocext: Add Level to Heading struct
Joe Mooring [Thu, 21 Mar 2024 17:30:27 +0000 (10:30 -0700)]
markup/asciidocext: Add Level to Heading struct

Closes #12291

2 years agoreleaser: Prepare repository for 0.125.0-DEV
hugoreleaser [Wed, 20 Mar 2024 11:53:43 +0000 (11:53 +0000)]
releaser: Prepare repository for 0.125.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.124.1
hugoreleaser [Wed, 20 Mar 2024 11:40:10 +0000 (11:40 +0000)]
releaser: Bump versions for release of 0.124.1

[ci skip]

2 years agoFix potential deadlock in Translations
Bjørn Erik Pedersen [Wed, 20 Mar 2024 10:48:06 +0000 (11:48 +0100)]
Fix potential deadlock in Translations

Fixes #12129

2 years agoFix rebuild when changing mixed case named templates
Bjørn Erik Pedersen [Wed, 20 Mar 2024 10:00:08 +0000 (11:00 +0100)]
Fix rebuild when changing mixed case named templates

Fixes #12165

2 years agotesting: Set usesFMA as true for riscv64 too
Anthony Fok [Wed, 20 Mar 2024 07:59:13 +0000 (01:59 -0600)]
testing: Set usesFMA as true for riscv64 too

This fixes TestImageOperationsGolden "values are not deep equal" error on riscv64 with Go 1.22 and above.

2 years agoFix regression for outputs defined in front matter for term pages
Bjørn Erik Pedersen [Tue, 19 Mar 2024 12:17:10 +0000 (13:17 +0100)]
Fix regression for outputs defined in front matter for term pages

Fixes #12275

2 years agoreleaser: Prepare repository for 0.125.0-DEV
hugoreleaser [Sat, 16 Mar 2024 15:57:20 +0000 (15:57 +0000)]
releaser: Prepare repository for 0.125.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.124.0
hugoreleaser [Sat, 16 Mar 2024 15:44:32 +0000 (15:44 +0000)]
releaser: Bump versions for release of 0.124.0

[ci skip]

2 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Sat, 16 Mar 2024 14:54:33 +0000 (15:54 +0100)]
docs: Regen CLI docs

2 years agodocs: Regen docshelper
Bjørn Erik Pedersen [Sat, 16 Mar 2024 14:54:02 +0000 (15:54 +0100)]
docs: Regen docshelper

2 years agoAdd segments config + --renderSegments flag
Bjørn Erik Pedersen [Mon, 4 Mar 2024 09:16:56 +0000 (10:16 +0100)]
Add segments config + --renderSegments flag

Named segments can be defined in `hugo.toml`.

* Eeach segment consists of zero or more `exclude` filters and zero or more `include` filters.
* Eeach filter consists of one or more field Glob matchers.
* Eeach filter in a section (`exclude` or `include`) is ORed together, each matcher in a filter is ANDed together.

The current list of fields that can be filtered are:

* path as defined in https://gohugo.io/methods/page/path/
* kind
* lang
* output (output format, e.g. html).

It is recommended to put coarse grained filters (e.g. for language and output format) in the excludes section, e.g.:

```toml
[segments.segment1]
  [[segments.segment1.excludes]]
    lang = "n*"
  [[segments.segment1.excludes]]
    no     = "en"
    output = "rss"
  [[segments.segment1.includes]]
    term = "{home,term,taxonomy}"
  [[segments.segment1.includes]]
    path = "{/docs,/docs/**}"
```

By default, Hugo will render all segments, but you can enable filters by setting the `renderSegments` option or `--renderSegments` flag, e.g:

```
hugo --renderSegments segment1,segment2
```

For segment `segment1` in the configuration above, this will:

* Skip rendering of all languages matching `n*`, e.g. `no`.
* Skip rendering of the output format `rss` for the `en` language.
* It will render all pages of kind `home`, `term` or `taxonomy`
* It will render the `/docs` section and all pages below.

Fixes #10106

2 years agoFix .Parent when there are overlapping regular pages inbetween
Bjørn Erik Pedersen [Fri, 15 Mar 2024 17:07:28 +0000 (18:07 +0100)]
Fix .Parent when there are overlapping regular pages inbetween

Fixes #12263

2 years agohugolib: Remove Site.HomeAbsURL
Bjørn Erik Pedersen [Sat, 16 Mar 2024 11:08:30 +0000 (12:08 +0100)]
hugolib: Remove Site.HomeAbsURL

It's not in use and after #12266 it's also not corret to use on its own (use .Site.Home.Permalink).

2 years agodeps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.1.0 =>...
Bjørn Erik Pedersen [Fri, 15 Mar 2024 16:03:09 +0000 (17:03 +0100)]
deps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.1.0 => v0.2.0

2 years agohugolib: Fix sitemap index with monolingual site
Joe Mooring [Fri, 15 Mar 2024 22:15:24 +0000 (15:15 -0700)]
hugolib: Fix sitemap index with monolingual site

Fixes #12266

2 years agohugolib: Deprecate site methods Author, Authors, and Social
Joe Mooring [Tue, 12 Mar 2024 18:16:05 +0000 (11:16 -0700)]
hugolib: Deprecate site methods Author, Authors, and Social

Closes #12228

2 years agoall: Typo fixes
Christian Oliff [Fri, 15 Mar 2024 16:25:52 +0000 (01:25 +0900)]
all: Typo fixes

2 years agoFix translationKey handling for term pages
Bjørn Erik Pedersen [Fri, 15 Mar 2024 15:21:25 +0000 (16:21 +0100)]
Fix translationKey handling for term pages

Fixes #12261

2 years agoFix intersect and similar for term entry page collections
Bjørn Erik Pedersen [Fri, 15 Mar 2024 12:12:25 +0000 (13:12 +0100)]
Fix intersect and similar for term entry page collections

Fixes #12254

2 years agoUpgrade to Go 1.22.1
Bjørn Erik Pedersen [Thu, 14 Mar 2024 19:25:16 +0000 (20:25 +0100)]
Upgrade to Go 1.22.1

Closes #12250

2 years agobuild(deps): bump github.com/evanw/esbuild from 0.20.1 to 0.20.2
dependabot[bot] [Fri, 15 Mar 2024 08:32:32 +0000 (08:32 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.20.1 to 0.20.2

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.20.1 to 0.20.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.20.1...v0.20.2)

---
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>
2 years agoFix server rebuilds when adding sub sections especially on Windows
Bjørn Erik Pedersen [Fri, 15 Mar 2024 09:57:51 +0000 (10:57 +0100)]
Fix server rebuilds when adding sub sections especially on Windows

This commit also optimizes for the case where change events for both file (e.g. `_index.md`) and the container directory comes in the same event batch.

While testing this on Windows 11 (ARM64), I notice that Windows behaves a little oddly when dumping a folder of files into the content tree; it works (at least after this commit), but it seems like the event batching behaves differently compared to other OSes (even older Win versions).

A related tip would be to try starting the server with polling, to see if that improves the situation, e.g.:

```
hugo server --poll 700ms
```

Fixes #12230

2 years agotpl/tplimpl: Remove deprecated method from sitemapindex.xml
Joe Mooring [Thu, 14 Mar 2024 17:11:43 +0000 (10:11 -0700)]
tpl/tplimpl: Remove deprecated method from sitemapindex.xml

2 years agobuild(deps): bump golang.org/x/tools from 0.18.0 to 0.19.0
dependabot[bot] [Thu, 14 Mar 2024 08:19:01 +0000 (08:19 +0000)]
build(deps): bump golang.org/x/tools from 0.18.0 to 0.19.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.18.0...v0.19.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>
2 years agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.20.17 to 2.20.19
dependabot[bot] [Thu, 14 Mar 2024 08:19:33 +0000 (08:19 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.17 to 2.20.19

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.20.17 to 2.20.19.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.17...v2.20.19)

---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agodeps: Upgrade github.com/alecthomas/chroma/v2 to v2.13.0
Paul Jolly [Thu, 14 Mar 2024 10:04:41 +0000 (10:04 +0000)]
deps: Upgrade github.com/alecthomas/chroma/v2 to v2.13.0

Closes #11862

2 years agotpl/tplimpl: Modify figure shortcode to look for page resource
Joe Mooring [Thu, 14 Mar 2024 05:38:15 +0000 (22:38 -0700)]
tpl/tplimpl: Modify figure shortcode to look for page resource

Closes #12244
Closes #12245

2 years agoFix panic when changing archetype files when servere is running
Bjørn Erik Pedersen [Wed, 13 Mar 2024 16:03:16 +0000 (17:03 +0100)]
Fix panic when changing archetype files when servere is running

Fixes #12195

2 years agobuild(deps): bump golang.org/x/mod from 0.15.0 to 0.16.0
dependabot[bot] [Tue, 5 Mar 2024 08:48:27 +0000 (08:48 +0000)]
build(deps): bump golang.org/x/mod from 0.15.0 to 0.16.0

Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/mod/compare/v0.15.0...v0.16.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>
2 years agoFix front matter date location when value gets inherited from other dates
Bjørn Erik Pedersen [Wed, 13 Mar 2024 14:32:33 +0000 (15:32 +0100)]
Fix front matter date location when value gets inherited from other dates

Fixes #12236

2 years agoFix Name for nested resourced fetched in resources.ByName and similar
Bjørn Erik Pedersen [Wed, 13 Mar 2024 10:19:06 +0000 (11:19 +0100)]
Fix Name for nested resourced fetched in resources.ByName and similar

Fixes #12214

2 years agocommon/hugo: Rename IsMultiHost and IsMultiLingual
Joe Mooring [Tue, 12 Mar 2024 15:18:23 +0000 (08:18 -0700)]
common/hugo: Rename IsMultiHost and IsMultiLingual

hugo.IsMultiHost => hugo.IsMultihost
hugo.IsMultiLingual => hugo.IsMultilingual

Closes #12232

2 years agohugolib: Deprecate .Site.MultiLingual in favor of hugo.IsMultiLingual
Joe Mooring [Sat, 9 Mar 2024 19:21:46 +0000 (11:21 -0800)]
hugolib: Deprecate .Site.MultiLingual in favor of hugo.IsMultiLingual

Closes #12224

2 years agosnap: Transition to from core20 to core22
Joe Mooring [Sat, 9 Mar 2024 16:47:53 +0000 (08:47 -0800)]
snap: Transition to from core20 to core22

Closes #12219

2 years agoreleaser: Prepare repository for 0.124.0-DEV
hugoreleaser [Thu, 7 Mar 2024 13:28:40 +0000 (13:28 +0000)]
releaser: Prepare repository for 0.124.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.123.8
hugoreleaser [Thu, 7 Mar 2024 13:14:42 +0000 (13:14 +0000)]
releaser: Bump versions for release of 0.123.8

[ci skip]

2 years agomarkup/goldmark: TOC: render strikethrough, emojis
Jonas Zeiger [Tue, 5 Dec 2023 23:29:03 +0000 (00:29 +0100)]
markup/goldmark: TOC: render strikethrough, emojis

Configure the TOC (TableOfContents, toc.go) goldmark renderer to always
enable the Strikethrough and Emoji extensions. This allows handling
ast.KindStrikethrough and ast.KindEmoji AST nodes when rendering the TOC.

Fixes #7169
Fixes #11783
Fixes #12022

2 years agoAdd hugo.IsMultiHost
razonyang [Thu, 29 Feb 2024 15:58:57 +0000 (23:58 +0800)]
Add hugo.IsMultiHost

2 years agodocs: Fix hyphens and grammar in synopsis of command 'hugo server'
Andreas Deininger [Wed, 21 Feb 2024 19:18:38 +0000 (20:18 +0100)]
docs: Fix hyphens and grammar in synopsis of command 'hugo server'

2 years agoresources/images: Retain newlines with text overlays
Joe Mooring [Wed, 6 Mar 2024 16:15:39 +0000 (08:15 -0800)]
resources/images: Retain newlines with text overlays

Closes #12206

2 years agoDon't auto-create empty sections for nested taxonomies
Bjørn Erik Pedersen [Thu, 7 Mar 2024 08:07:12 +0000 (09:07 +0100)]
Don't auto-create empty sections for nested taxonomies

Fixes #12188

2 years agoFix resource name in resources.ByType
Bjørn Erik Pedersen [Thu, 7 Mar 2024 08:00:44 +0000 (09:00 +0100)]
Fix resource name in resources.ByType

Fixes #12190

2 years agoFix global resource isn't published when using an uncommon code construct
Bjørn Erik Pedersen [Thu, 7 Mar 2024 07:55:19 +0000 (08:55 +0100)]
Fix global resource isn't published when using an uncommon code construct

Fixes #12190

2 years agoFix section page resource not published if resource filename partially matches conten...
Bjørn Erik Pedersen [Thu, 7 Mar 2024 07:34:00 +0000 (08:34 +0100)]
Fix section page resource not published if resource filename partially matches content file name

Fixes #12198

2 years agoFix taxonomy kind template lookup issue
Bjørn Erik Pedersen [Thu, 7 Mar 2024 07:25:34 +0000 (08:25 +0100)]
Fix taxonomy kind template lookup issue

Fixes #12193

2 years agotpl/tplimpl: Honor markdown attributes in embedded image render hook
Joe Mooring [Wed, 6 Mar 2024 00:06:50 +0000 (16:06 -0800)]
tpl/tplimpl: Honor markdown attributes in embedded image render hook

Fixes #12203

2 years agoreleaser: Prepare repository for 0.124.0-DEV
hugoreleaser [Fri, 1 Mar 2024 16:30:33 +0000 (16:30 +0000)]
releaser: Prepare repository for 0.124.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.123.7
hugoreleaser [Fri, 1 Mar 2024 16:16:06 +0000 (16:16 +0000)]
releaser: Bump versions for release of 0.123.7

[ci skip]

2 years agohugofs: Fix vertical mount merge issue
Bjørn Erik Pedersen [Fri, 1 Mar 2024 13:42:56 +0000 (14:42 +0100)]
hugofs: Fix vertical mount merge issue

Fixes #12175

2 years agoFix and add integration test for the Bootstrap SCSS module for both Dart Sass and...
Bjørn Erik Pedersen [Thu, 29 Feb 2024 18:05:23 +0000 (19:05 +0100)]
Fix and add integration test for the Bootstrap SCSS module for both Dart Sass and Libsass

This fixes the reverse filesystem lookup (absolute filename to path relative to the composite filesystem).

The old logic had some assumptions about the locality of the actual files that didn't work in more complex scenarios.

This commit now also adds the popular Bootstrap SCSS Hugo module to the CI build (both for libsass and dartsass transpiler), so we can hopefully avoid similar future breakage.

Fixes #12178

2 years agoFix resources.GetMatch, resources.Match, and resources.ByType to they don't normalize...
Bjørn Erik Pedersen [Fri, 1 Mar 2024 10:47:16 +0000 (11:47 +0100)]
Fix resources.GetMatch, resources.Match, and resources.ByType to they don't normalize permalinks

Fixes #12182

2 years agoMake sure that sitemaps gets generated even if there is a content bundle with the...
Bjørn Erik Pedersen [Fri, 1 Mar 2024 10:37:53 +0000 (11:37 +0100)]
Make sure that sitemaps gets generated even if there is a content bundle with the same path

Fixes #12183

2 years agoresources/page: Make Taxonomy.Get and Taxonomy.Count case-insensitive
Joe Mooring [Thu, 29 Feb 2024 19:18:35 +0000 (11:18 -0800)]
resources/page: Make Taxonomy.Get and Taxonomy.Count case-insensitive

Closes #12177

2 years agoreleaser: Bump versions for release of 0.123.6
hugoreleaser [Wed, 28 Feb 2024 18:29:40 +0000 (18:29 +0000)]
releaser: Bump versions for release of 0.123.6

[ci skip]

2 years agoFix panic when cascading headless from site config to section that does not have...
Bjørn Erik Pedersen [Wed, 28 Feb 2024 17:33:42 +0000 (18:33 +0100)]
Fix panic when cascading headless from site config to section that does not have an _index.md file

Fixes #12172

2 years agoFix assets vs data issue
Bjørn Erik Pedersen [Wed, 28 Feb 2024 16:58:27 +0000 (17:58 +0100)]
Fix assets vs data issue

And possibly some other related file mount issues.

Fixes #12133

2 years agoFix draft for non-default content when content in default language does not exist
Bjørn Erik Pedersen [Wed, 28 Feb 2024 16:28:44 +0000 (17:28 +0100)]
Fix draft for non-default content when content in default language does not exist

Fixes #12132

2 years agoreleaser: Prepare repository for 0.124.0-DEV
hugoreleaser [Wed, 28 Feb 2024 16:01:41 +0000 (16:01 +0000)]
releaser: Prepare repository for 0.124.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.123.5
hugoreleaser [Wed, 28 Feb 2024 15:47:09 +0000 (15:47 +0000)]
releaser: Bump versions for release of 0.123.5

[ci skip]

2 years agoFix .Page.Pages with similary named sections
Bjørn Erik Pedersen [Wed, 28 Feb 2024 10:39:10 +0000 (11:39 +0100)]
Fix .Page.Pages with similary named sections

Fixes #12169

2 years agoFix single mount rename panic
Bjørn Erik Pedersen [Wed, 28 Feb 2024 08:12:41 +0000 (09:12 +0100)]
Fix single mount rename panic

Fixes #12141

2 years agoFix multihost processed image not copied to non-default content languages
Bjørn Erik Pedersen [Tue, 27 Feb 2024 08:15:47 +0000 (09:15 +0100)]
Fix multihost processed image not copied to non-default content languages

Fixes #12163

2 years agobuild(deps): bump github.com/bep/overlayfs from 0.9.1 to 0.9.2
dependabot[bot] [Tue, 27 Feb 2024 08:13:54 +0000 (08:13 +0000)]
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>
2 years agoreleaser: Prepare repository for 0.124.0-DEV
hugoreleaser [Mon, 26 Feb 2024 16:46:48 +0000 (16:46 +0000)]
releaser: Prepare repository for 0.124.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.123.4
hugoreleaser [Mon, 26 Feb 2024 16:33:05 +0000 (16:33 +0000)]
releaser: Bump versions for release of 0.123.4

[ci skip]

2 years agoFix cascade-pattern-with-extension for cascade in site config
Bjørn Erik Pedersen [Mon, 26 Feb 2024 15:13:05 +0000 (16:13 +0100)]
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

2 years agobuild(deps): bump github.com/spf13/fsync from 0.10.0 to 0.10.1
dependabot[bot] [Mon, 26 Feb 2024 08:47:33 +0000 (08:47 +0000)]
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>
2 years agoFix term template lookup when its backed by a content file
Bjørn Erik Pedersen [Sun, 25 Feb 2024 14:43:52 +0000 (15:43 +0100)]
Fix term template lookup when its backed by a content file

Closes #12146

2 years agoresource: Revert the normalization of Resource.Name
Bjørn Erik Pedersen [Sun, 25 Feb 2024 09:24:46 +0000 (10:24 +0100)]
resource: Revert the normalization of Resource.Name

Which means that .Name now returns the same as it did in 0.122.0.

Closes #12142

2 years agoFix panic for disableKinds page for content resources
Bjørn Erik Pedersen [Sat, 24 Feb 2024 15:52:41 +0000 (16:52 +0100)]
Fix panic for disableKinds page for content resources

Fixes #12144

2 years agotocss: Fix the import resolving from absolute to relative assets paths
Bjørn Erik Pedersen [Sat, 24 Feb 2024 10:51:16 +0000 (11:51 +0100)]
tocss: Fix the import resolving from absolute to relative assets paths

Fixes #12137

2 years agoMaek Resoyrce.Key as (mostly) internal
Bjørn Erik Pedersen [Sat, 24 Feb 2024 14:17:15 +0000 (15:17 +0100)]
Maek Resoyrce.Key as (mostly) internal

2 years agoconfig/allconfig: Fix typo
Joe Mooring [Fri, 23 Feb 2024 20:40:15 +0000 (12:40 -0800)]
config/allconfig: Fix typo

Closes #12134

2 years agoreleaser: Prepare repository for 0.124.0-DEV
hugoreleaser [Fri, 23 Feb 2024 17:22:38 +0000 (17:22 +0000)]
releaser: Prepare repository for 0.124.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.123.3
hugoreleaser [Fri, 23 Feb 2024 17:09:20 +0000 (17:09 +0000)]
releaser: Bump versions for release of 0.123.3

[ci skip]

2 years agocache/dynacache: Reset ticker in case one cache eviction takes some time
Bjørn Erik Pedersen [Fri, 23 Feb 2024 16:56:29 +0000 (17:56 +0100)]
cache/dynacache: Reset ticker in case one cache eviction takes some time

Updates #12129

2 years agoRevert "cache/dynacache: Prevent multiple concurrent resizes"
Bjørn Erik Pedersen [Fri, 23 Feb 2024 16:44:32 +0000 (17:44 +0100)]
Revert "cache/dynacache: Prevent multiple concurrent resizes"

This reverts commit 564bae06f6513cbca80bd54411f9a66ec2115995.

Thinking about it, the above doesn't make any sense/having any effect.

2 years agocache/dynacache: Prevent multiple concurrent resizes
Bjørn Erik Pedersen [Fri, 23 Feb 2024 16:23:37 +0000 (17:23 +0100)]
cache/dynacache: Prevent multiple concurrent resizes

Updates #12129

2 years agoSpeed up GetPage
Bjørn Erik Pedersen [Fri, 23 Feb 2024 14:01:19 +0000 (15:01 +0100)]
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)
```

2 years agohugolib: Fix a .Page.GetPage from bundle case
Bjørn Erik Pedersen [Fri, 23 Feb 2024 08:37:05 +0000 (09:37 +0100)]
hugolib: Fix a .Page.GetPage from bundle case

Fixes #12120

2 years agoresources: Skip the image golden tests when running locally
Bjørn Erik Pedersen [Fri, 23 Feb 2024 09:30:11 +0000 (10:30 +0100)]
resources: Skip the image golden tests when running locally

See #12119

2 years agojs: Support JSX and JSXImportSourceOptions
Benjamin Altpeter [Thu, 22 Feb 2024 16:58:22 +0000 (17:58 +0100)]
js: Support JSX and JSXImportSourceOptions

Fixes #12118

2 years agohugolib: Add capitalizeListTitles config option
Joe Mooring [Thu, 22 Feb 2024 19:51:22 +0000 (11:51 -0800)]
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

2 years agoreleaser: Prepare repository for 0.124.0-DEV
hugoreleaser [Thu, 22 Feb 2024 15:41:43 +0000 (15:41 +0000)]
releaser: Prepare repository for 0.124.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.123.2
hugoreleaser [Thu, 22 Feb 2024 15:27:15 +0000 (15:27 +0000)]
releaser: Bump versions for release of 0.123.2

[ci skip]

2 years agoFix it so not all bundled resources are removed when one translation is drafted
Bjørn Erik Pedersen [Thu, 22 Feb 2024 14:06:42 +0000 (15:06 +0100)]
Fix it so not all bundled resources are removed when one translation is drafted

Fixes #12105

2 years agocommands/mod: Ignore invalid module path
Razon Yang [Thu, 22 Feb 2024 15:00:03 +0000 (23:00 +0800)]
commands/mod: Ignore invalid module path

2 years agoFix regression on handling of overlapping file mounts
Bjørn Erik Pedersen [Wed, 21 Feb 2024 19:16:02 +0000 (20:16 +0100)]
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

2 years agoSitemap should not use list.xml
Bjørn Erik Pedersen [Wed, 21 Feb 2024 18:06:46 +0000 (19:06 +0100)]
Sitemap should not use list.xml

Fixes #12101

2 years agoFix rebuild when adding a bundle with space in name
Bjørn Erik Pedersen [Wed, 21 Feb 2024 16:04:32 +0000 (17:04 +0100)]
Fix rebuild when adding a bundle with space in name

Fixes #12092

2 years agoFix relative import issue in libsass/dart sass
Bjørn Erik Pedersen [Wed, 21 Feb 2024 15:25:19 +0000 (16:25 +0100)]
Fix relative import issue in libsass/dart sass

Fixes #12094

2 years agoFix relref regression with trailing slash
Bjørn Erik Pedersen [Wed, 21 Feb 2024 14:42:00 +0000 (15:42 +0100)]
Fix relref regression with trailing slash

Fixes #12096

2 years agoreleaser: Prepare repository for 0.124.0-DEV
hugoreleaser [Wed, 21 Feb 2024 08:30:57 +0000 (08:30 +0000)]
releaser: Prepare repository for 0.124.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.123.1
hugoreleaser [Wed, 21 Feb 2024 08:17:45 +0000 (08:17 +0000)]
releaser: Bump versions for release of 0.123.1

[ci skip]

2 years agotpl/tplimpl: Resolve fragments in link render hook
Joe Mooring [Wed, 21 Feb 2024 01:57:51 +0000 (17:57 -0800)]
tpl/tplimpl: Resolve fragments in link render hook

Fixes #12084

2 years agoFix rebuilding of pages without default content language
Bjørn Erik Pedersen [Tue, 20 Feb 2024 16:31:26 +0000 (17:31 +0100)]
Fix rebuilding of pages without default content language

Fixes #12082

2 years agoFix dart sass import regression
Bjørn Erik Pedersen [Tue, 20 Feb 2024 13:46:03 +0000 (14:46 +0100)]
Fix dart sass import regression

Fixes #12072

2 years agoFall back to original name in Resources.GetMatch/Match
Bjørn Erik Pedersen [Tue, 20 Feb 2024 15:08:18 +0000 (16:08 +0100)]
Fall back to original name in Resources.GetMatch/Match

Same as we do in .Get.

Fixes #12076

2 years agoFix robots.txt using the built-in template regression
Bjørn Erik Pedersen [Tue, 20 Feb 2024 09:02:42 +0000 (10:02 +0100)]
Fix robots.txt using the built-in template regression

Fixes #12071