]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
2 years agoall: Fix duplicate words in comments
Eitan Adler [Thu, 11 Apr 2024 07:31:33 +0000 (00:31 -0700)]
all: Fix duplicate words in comments

2 years agobuild(deps): bump golang.org/x/net from 0.23.0 to 0.24.0
dependabot[bot] [Fri, 5 Apr 2024 15:46:54 +0000 (15:46 +0000)]
build(deps): bump golang.org/x/net from 0.23.0 to 0.24.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.24.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>
2 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.123.0 to 0.124.0
dependabot[bot] [Mon, 8 Apr 2024 08:34:15 +0000 (08:34 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.123.0 to 0.124.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.123.0 to 0.124.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.123.0...v0.124.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>
2 years agoall: Typo fixes
Christian Oliff [Thu, 11 Apr 2024 07:23:17 +0000 (16:23 +0900)]
all: Typo fixes

2 years agobabel: Run go fmt
Bjørn Erik Pedersen [Mon, 8 Apr 2024 16:28:04 +0000 (18:28 +0200)]
babel: Run go fmt

2 years agobabel: Close file before removing
guangwu [Mon, 8 Apr 2024 13:23:08 +0000 (21:23 +0800)]
babel: Close file before removing

2 years agobump golang.org/x/mod from 0.16.0 to 0.17.0
dependabot[bot] [Fri, 5 Apr 2024 08:59:02 +0000 (08:59 +0000)]
bump golang.org/x/mod from 0.16.0 to 0.17.0

Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/mod/compare/v0.16.0...v0.17.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 agohugolib: Fix regression for blank summaries
curegit [Fri, 5 Apr 2024 15:43:55 +0000 (00:43 +0900)]
hugolib: Fix regression for blank summaries

Fix regression in content summarization so that we can use empty
summary by using the manual summary divider. Since v0.123, there
has been the regression that causes Hugo to use automatic summary
generation when the manual summary results in an empty string,
even if there is a `<!--more-->` summary divider.

2 years agoFix sectionPagesMenu for pages in root level
Bjørn Erik Pedersen [Fri, 5 Apr 2024 10:00:38 +0000 (12:00 +0200)]
Fix sectionPagesMenu for pages in root level

Fixes #12306

2 years agoresources/page: Escape hash sign in permalinks
Soren L. Hansen [Thu, 4 Apr 2024 20:31:20 +0000 (13:31 -0700)]
resources/page: Escape hash sign in permalinks

When creating a link to a file with a `#` in the filename, the link gets
truncated. This happens because the filename is eventaully passed to
`url.Parse` which (correctly!) interprets the `#` as fragment separator.

This commit escapes the `#` in the filename before creating the link.

Fixes #4926
Fixes #8232
Fixes #12342

Co-authored-by: Joe Mooring <joe.mooring@veriphor.com>
2 years agobuild(deps): bump github.com/pelletier/go-toml/v2 from 2.1.1 to 2.2.0
dependabot[bot] [Wed, 20 Mar 2024 08:49:14 +0000 (08:49 +0000)]
build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.1 to 2.2.0

Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.1.1 to 2.2.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.1.1...v2.2.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>
2 years agobuild(deps): bump github.com/yuin/goldmark from 1.7.0 to 1.7.1
dependabot[bot] [Thu, 4 Apr 2024 08:38:50 +0000 (08:38 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.7.0 to 1.7.1

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.0...v1.7.1)

---
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>
2 years agotpl/strings: Improve type checking
Joe Mooring [Thu, 4 Apr 2024 15:22:33 +0000 (08:22 -0700)]
tpl/strings: Improve type checking

2 years agobuild(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
dependabot[bot] [Mon, 1 Apr 2024 08:25:24 +0000 (08:25 +0000)]
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront

Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2) from 1.32.6 to 1.35.4.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fsx/v1.32.6...service/ecs/v1.35.4)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump golang.org/x/net from 0.22.0 to 0.23.0
dependabot[bot] [Thu, 4 Apr 2024 08:39:09 +0000 (08:39 +0000)]
build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.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>
2 years agotpl/tplimpl: Improve youtube shortcode
Joe Mooring [Wed, 3 Apr 2024 20:09:11 +0000 (13:09 -0700)]
tpl/tplimpl: Improve youtube shortcode

Changes:

- Add query string params for controls, loop, mute, start, and end
- Add iframe loading attribute
- Obtain default iframe title from YouTube oEmbed API
- Fix autoplay feature
- Improve readability

Closes #3694
Closes #9213
Closes #10520
Closes #10575
Closes #10576

Co-authored-by: sgharms <sgharms@stevengharms.com>
2 years agoerrors: Return error from cast.ToStringE() consistently
seiya [Wed, 3 Apr 2024 00:12:13 +0000 (09:12 +0900)]
errors: Return error from cast.ToStringE() consistently

2 years agotpl/tplimpl: Improve embedded opengraph template
Joe Mooring [Mon, 1 Apr 2024 15:51:32 +0000 (08:51 -0700)]
tpl/tplimpl: Improve embedded opengraph template

Changes:

- Add tags per documentation
- Prefer site.Title over site.Params.title
- Plainify titles, tags, and descriptions
- Add fallback values for locale
- Fix pages related by series
- Improve readability

Closes #8296
Closes #8698
Closes #8991
Closes #9818
Closes #9866
Closes #10647

Co-authored-by: tomy0000000 <git@tomy.me>
Co-authored-by: sean-au <sean@powerfulwebdesign.com.au>
2 years agotpl/strings: Create strings.Diff template function
Joe Mooring [Tue, 2 Apr 2024 02:26:15 +0000 (19:26 -0700)]
tpl/strings: Create strings.Diff template function

Closes #12330

2 years agoFix resource bundling for overlapping page.md vs page.txt
Bjørn Erik Pedersen [Tue, 2 Apr 2024 09:53:43 +0000 (11:53 +0200)]
Fix resource bundling for overlapping page.md vs page.txt

Fixes #12320

2 years agotpl/tplimpl: Optionally exclude content from sitemap
Joe Mooring [Mon, 1 Apr 2024 22:30:03 +0000 (15:30 -0700)]
tpl/tplimpl: Optionally exclude content from sitemap

Define global inclusion/exclusion in site configuration, and override
via front matter. For example, to exclude a page from the sitemap:

    [sitemap]
    disable = true # default is false

Closes #653
Closes #12282

Co-authored-by: kolappannathan <kolappannathan@users.noreply.github.com>
Co-authored-by: felicianotech <FelicianoTech@gmail.com>
2 years agotpl/tplimpl: Remove trailing slash from void elements
Joe Mooring [Mon, 1 Apr 2024 15:07:02 +0000 (08:07 -0700)]
tpl/tplimpl: Remove trailing slash from void elements

Closes #11867

2 years agotpl/tplimpl: Update RSS template
Joe Mooring [Sat, 23 Mar 2024 20:39:44 +0000 (13:39 -0700)]
tpl/tplimpl: Update RSS template

- Use publication date for pubdate
- Include version in generator element

Closes #3918
Closes #11692

2 years agotpl/tplimpl: Update schema template
Joe Mooring [Sat, 23 Mar 2024 23:34:39 +0000 (16:34 -0700)]
tpl/tplimpl: Update schema template

Changes:

- Remove trailing comma from list of keywords.
- Improve keywords precedence:
  1. Use "keywords" term page titles.
  2. Use "keywords" from front matter if "keywords" is not a taxonomy.
  3. Use "tags" term page titles.
  4. Use term page titles from all taxonomies.
- Enable schema for all page kinds, previously limited to kind = page.
- Remove trailing slashes from void elements.
- Improve readability.

Closes #7570

Co-authored by: 0urobor0s <0urobor0s@users.noreply.github.com>

2 years agoresources: Use different cache key when copying resources
Joe Mooring [Mon, 25 Mar 2024 21:17:57 +0000 (14:17 -0700)]
resources: Use different cache key when copying resources

Closes #10412
Closes #12310

2 years agoFix panic with debug.Dump with Page when running the server
Bjørn Erik Pedersen [Tue, 26 Mar 2024 09:43:08 +0000 (10:43 +0100)]
Fix panic with debug.Dump with Page when running the server

This replaces the current implementation with `json.MarshalIndent` which doesn't produce the same output, but at least it doesn't crash.

There's a bug in the upstream `litter` library. This can probably be fixed, but that needs to wait.

I have tested `go-spew` which does not crash, but it is very data racy in this context.

FIxes #12309

2 years agotpl/tplimpl: Update Google Analytics template and config
Joe Mooring [Sat, 23 Mar 2024 20:07:00 +0000 (13:07 -0700)]
tpl/tplimpl: Update Google Analytics template and config

Google Analytics 4 (GA4) replaced Google Universal Analytics (UA)
effective 1 July 2023.

See https://support.google.com/analytics/answer/11583528.

Changes:

- Update tpl/tplimpl/embedded/templates/google_analytics.html
- Remove tpl/tplimpl/embedded/templates/google_analytics_async.html
- Remove extraneous config settings

Closes #11802
Closes #10093

2 years agohugolib: Conditionally suppress .Site.Author deprecation notice
Joe Mooring [Fri, 22 Mar 2024 20:02:56 +0000 (13:02 -0700)]
hugolib: Conditionally suppress .Site.Author deprecation notice

Suppress the .Site.Author deprecation notice unless the Author key
is present and not empty in the site configuration.

Closes #12297

2 years agoresources/page: Fix GoDoc comment
George Ma [Fri, 22 Mar 2024 07:56:10 +0000 (15:56 +0800)]
resources/page: Fix GoDoc comment

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