Repository navigation
·
1 commit
to main
since this release
Immutable
release. Only release title and notes can be modified.
See CHANGELOG.md for more details.
Dart Sass support
You can now install standalone Dart Sass alongside Hugo with the optional dart-sass-version input:
- uses: peaceiris/actions-hugo@v3.3.0
with:
hugo-version: '0.160.1'
dart-sass-version: '1.108.2'
- run: hugo --minifySelect the Dart Sass transpiler in your Hugo template:
{{ $css := resources.Get "scss/main.scss" | css.Sass (dict "transpiler" "dartsass") }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
- Requires Hugo 0.114.0 or later and works independently of
extended. Useresources.ToCSSon older Hugo template APIs. The olddart-sass-embeddedprotocol is not supported. - Supports Linux glibc, macOS, and Windows on x64 or arm64, when the selected release publishes the matching asset. Musl is not supported.
- Use a fixed
major.minor.patchversion;latest, ranges, and URLs are not accepted. Omitting the input preserves existing behavior, with no Sass network requests or PATH changes. - A valid GitHub API SHA-256 digest is required. Archives are verified before extraction or execution. Missing digests or assets, API errors, and checksum mismatches fail the action; there is no unverified fallback. Older Sass releases may lack a digest.
- The new
github-tokeninput defaults to${{ github.token }}for release metadata requests. Read-only permissions suffice; no token configuration is needed for typical use.
Digest verification checks integrity against the same publisher; it is not a signature or an independent immutable checksum pin.
See Dart Sass installation details for token overrides, platform selection, and the trust model.