The importContext is relevant for css.Build, js.Build, css.Sass, and css.PostCSS. and it allows you to make resources (e.g. built from resources.FromString) resolvable in e.g. CSS @import statements.
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [hugo-extended](https://github.com/gohugoio/hugo) | tools | minor | `0.164.0` → `0.165.0` |
---
### Release Notes
<details>
<summary>gohugoio/hugo (hugo-extended)</summary>
### [`v0.165.0`](https://github.com/gohugoio/hugo/releases/tag/v0.165.0)
[Compare Source](https://github.com/gohugoio/hugo/compare/v0.164.0...v0.165.0)
The two main new things is the new `css.ChromaStyles` template func and the new `importContext` option demonstrated below.
```handlebars
{{ $light := css.ChromaStyles (dict "targetPath" "css/components/chroma-light.css" "style" "github" "mode" "light") }}
{{ $dark := css.ChromaStyles (dict "targetPath" "css/components/chroma-dark.css" "style" "github" "mode" "dark") }}
{{ $opts := dict "minify" true "importContext" (slice $light $dark) }}
{{ $css := resources.Get "css/main.css" | css.Build $opts }}
```
The `importContext` is relevant for `css.Build`, `js.Build`, `css.Sass`, and `css.PostCSS`. and it allows you to make resources (e.g. built from `resources.FromString`) resolvable in e.g. CSS `@import` statements.
#### Note
- Remove tailwindcss from the default security.exec.allow list (note) [`8a55df7`](https://github.com/gohugoio/hugo/commit/8a55df7a) [@​bep](https://github.com/bep) [#​15178](https://github.com/gohugoio/hugo/issues/15178) [#​15171](https://github.com/gohugoio/hugo/issues/15171)
#### Bug fixes
- Fix resource transformation chaining after content access [`f772998`](https://github.com/gohugoio/hugo/commit/f772998f) [@​bep](https://github.com/bep) [#​15189](https://github.com/gohugoio/hugo/issues/15189)
- Fix server static file detection for deleted files/directories in the static syncer [`2ffaf1f`](https://github.com/gohugoio/hugo/commit/2ffaf1fc) [@​bep](https://github.com/bep)
- Fix server errors when deleting static files or directories [`a808f6e`](https://github.com/gohugoio/hugo/commit/a808f6e4) [@​bep](https://github.com/bep) [#​15174](https://github.com/gohugoio/hugo/issues/15174)
- Fix panic on server atomic save edits on MacOS [`6bf1524`](https://github.com/gohugoio/hugo/commit/6bf15241) [@​bep](https://github.com/bep) [#​15130](https://github.com/gohugoio/hugo/issues/15130)
- markup/asciidocext: Fix TOC parsing for asciidoctor-html5s [`f961093`](https://github.com/gohugoio/hugo/commit/f961093e) [@​jmooring](https://github.com/jmooring) [#​15121](https://github.com/gohugoio/hugo/issues/15121)
- snap: Fix snap home environment [`984358f`](https://github.com/gohugoio/hugo/commit/984358f0) [@​jmooring](https://github.com/jmooring) [#​15114](https://github.com/gohugoio/hugo/issues/15114)
#### Improvements
- resources: Resume chained resource transformations [`995a215`](https://github.com/gohugoio/hugo/commit/995a2159) [@​bep](https://github.com/bep) [#​15189](https://github.com/gohugoio/hugo/issues/15189) [#​15189](https://github.com/gohugoio/hugo/issues/15189)
- resources/jsconfig: Drop source root mapping for the current source root [`f88f0a9`](https://github.com/gohugoio/hugo/commit/f88f0a9f) [@​bep](https://github.com/bep) [#​15169](https://github.com/gohugoio/hugo/issues/15169)
- circleci: Upgrade to Go 1.26.5 [`52c9bd7`](https://github.com/gohugoio/hugo/commit/52c9bd79) [@​bep](https://github.com/bep)
- Add Data.Artifacts to css.Build and js.Build [`44da086`](https://github.com/gohugoio/hugo/commit/44da0860) [@​bep](https://github.com/bep) [#​15173](https://github.com/gohugoio/hugo/issues/15173)
- css: Add classDark and classLight options to css.ChromaStyles and gen chromastyles [`33d1f2c`](https://github.com/gohugoio/hugo/commit/33d1f2c8) [@​bep](https://github.com/bep) [#​15167](https://github.com/gohugoio/hugo/issues/15167)
- markup/highlight: Re-emit token colors dropped by Chroma's minifier [`64da6d7`](https://github.com/gohugoio/hugo/commit/64da6d7c) [@​bep](https://github.com/bep) [#​15161](https://github.com/gohugoio/hugo/issues/15161)
- Add importContext option to css.Build, js.Build, css.Sass and css.TailwindCSS [`70db201`](https://github.com/gohugoio/hugo/commit/70db201e) [@​bep](https://github.com/bep) [#​15103](https://github.com/gohugoio/hugo/issues/15103)
- Remove some old deprecations [`8a468df`](https://github.com/gohugoio/hugo/commit/8a468df0) [@​bep](https://github.com/bep)
- Add css.ChromaStyles [`615e45d`](https://github.com/gohugoio/hugo/commit/615e45d6) [@​bep](https://github.com/bep) [#​15112](https://github.com/gohugoio/hugo/issues/15112)
- check.sh: Handle staticcheck not installed/in PATH [`a243a61`](https://github.com/gohugoio/hugo/commit/a243a615) [@​Soundcreates](https://github.com/Soundcreates)
- warpc: Improve AVIF error message on memory allocation failure [`7d90277`](https://github.com/gohugoio/hugo/commit/7d90277a) [@​bep](https://github.com/bep)
- cache/filecache: Don't prune used cache entries with mixed-case dir names [`861ede6`](https://github.com/gohugoio/hugo/commit/861ede6d) [@​bep](https://github.com/bep) [#​15101](https://github.com/gohugoio/hugo/issues/15101)
- Drop symlinks in parent directories [`f228c87`](https://github.com/gohugoio/hugo/commit/f228c87d) [@​bep](https://github.com/bep)
- Delete .gemini [`7df45f6`](https://github.com/gohugoio/hugo/commit/7df45f61) [@​bep](https://github.com/bep)
- common/hugo: Include non-go dependencies in go env output [`89b8c32`](https://github.com/gohugoio/hugo/commit/89b8c322) [@​jmooring](https://github.com/jmooring) [#​15116](https://github.com/gohugoio/hugo/issues/15116)
#### Dependency Updates
- build(deps): bump github.com/bep/imagemeta from 0.17.3 to 1.0.0 [`0bb337b`](https://github.com/gohugoio/hugo/commit/0bb337b2) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/evanw/esbuild from 0.28.1 to 0.28.2 [`03dc917`](https://github.com/gohugoio/hugo/commit/03dc9170) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/tdewolff/minify/v2 from 2.24.14 to 2.24.16 [`c829b73`](https://github.com/gohugoio/hugo/commit/c829b736) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/getkin/kin-openapi from 0.145.0 to 0.146.0 [`94f3908`](https://github.com/gohugoio/hugo/commit/94f3908e) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/rogpeppe/go-internal from 1.15.0 to 1.16.0 [`75fcc75`](https://github.com/gohugoio/hugo/commit/75fcc752) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/mattn/go-isatty from 0.0.22 to 0.0.24 [`b5fa03d`](https://github.com/gohugoio/hugo/commit/b5fa03d3) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/yuin/goldmark from 1.8.4 to 1.8.5 [`9da472d`](https://github.com/gohugoio/hugo/commit/9da472dd) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump golang.org/x/tools from 0.47.0 to 0.48.0 [`635532a`](https://github.com/gohugoio/hugo/commit/635532a2) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.13 to 2.2.14 [`9c71f60`](https://github.com/gohugoio/hugo/commit/9c71f600) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/getkin/kin-openapi from 0.144.0 to 0.145.0 [`420527f`](https://github.com/gohugoio/hugo/commit/420527fc) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump golang.org/x/image from 0.43.0 to 0.44.0 [`7fe786e`](https://github.com/gohugoio/hugo/commit/7fe786e3) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/bep/imagemeta from 0.17.2 to 0.17.3 [`03b244f`](https://github.com/gohugoio/hugo/commit/03b244fc) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/tdewolff/minify/v2 from 2.24.13 to 2.24.14 [`9611813`](https://github.com/gohugoio/hugo/commit/96118133) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/yuin/goldmark from 1.8.2 to 1.8.4 [`e35b7f0`](https://github.com/gohugoio/hugo/commit/e35b7f04) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump golang.org/x/net from 0.56.0 to 0.57.0 [`0796fa7`](https://github.com/gohugoio/hugo/commit/0796fa7a) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump golang.org/x/text from 0.38.0 to 0.40.0 [`1b701b7`](https://github.com/gohugoio/hugo/commit/1b701b72) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump github.com/getkin/kin-openapi from 0.140.0 to 0.144.0 [`a32d70b`](https://github.com/gohugoio/hugo/commit/a32d70b7) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump google.golang.org/grpc from 1.80.0 to 1.82.1 [`948cfb9`](https://github.com/gohugoio/hugo/commit/948cfb98) [@​dependabot](https://github.com/dependabot)\[bot]
- build(deps): bump golang.org/x/mod from 0.37.0 to 0.38.0 [`8930802`](https://github.com/gohugoio/hugo/commit/8930802e) [@​dependabot](https://github.com/dependabot)\[bot]
#### Documentation
- Remove Star History from README [`dd3f273`](https://github.com/gohugoio/hugo/commit/dd3f2731) [@​bep](https://github.com/bep) [#​15190](https://github.com/gohugoio/hugo/issues/15190)
- Update README.md [`d1f191c`](https://github.com/gohugoio/hugo/commit/d1f191c5) [@​jmooring](https://github.com/jmooring)
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zMC4zIiwidXBkYXRlZEluVmVyIjoiNDQuMzAuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
0.164.0→0.165.0Release Notes
gohugoio/hugo (hugo-extended)
v0.165.0Compare Source
The two main new things is the new
css.ChromaStylestemplate func and the newimportContextoption demonstrated below.The
importContextis relevant forcss.Build,js.Build,css.Sass, andcss.PostCSS. and it allows you to make resources (e.g. built fromresources.FromString) resolvable in e.g. CSS@importstatements.Note
8a55df7@bep #15178 #15171Bug fixes
f772998@bep #151892ffaf1f@bepa808f6e@bep #151746bf1524@bep #15130f961093@jmooring #15121984358f@jmooring #15114Improvements
995a215@bep #15189 #15189f88f0a9@bep #1516952c9bd7@bep44da086@bep #1517333d1f2c@bep #1516764da6d7@bep #1516170db201@bep #151038a468df@bep615e45d@bep #15112a243a61@Soundcreates7d90277@bep861ede6@bep #15101f228c87@bep7df45f6@bep89b8c32@jmooring #15116Dependency Updates
0bb337b@dependabot[bot]03dc917@dependabot[bot]c829b73@dependabot[bot]94f3908@dependabot[bot]75fcc75@dependabot[bot]b5fa03d@dependabot[bot]9da472d@dependabot[bot]635532a@dependabot[bot]9c71f60@dependabot[bot]420527f@dependabot[bot]7fe786e@dependabot[bot]03b244f@dependabot[bot]9611813@dependabot[bot]e35b7f0@dependabot[bot]0796fa7@dependabot[bot]1b701b7@dependabot[bot]a32d70b@dependabot[bot]948cfb9@dependabot[bot]8930802@dependabot[bot]Documentation
dd3f273@bep #15190d1f191c@jmooringConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.