diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-09-26 20:50:31 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <git@serghei.pl> | 2024-09-26 21:05:09 +0200 |
| commit | 0261be16e89a29fda7e86ff90e7ea42153c1d025 (patch) | |
| tree | f448cd42813b3181d1836ba02ef20d3ce14133a8 | |
| parent | a41f74faf15901add15ac81849806e628d807a0f (diff) | |
| download | gohugo-theme-ed-0261be16e89a29fda7e86ff90e7ea42153c1d025.tar.gz | |
Replace deprecated resource.ToCss with css.Sass
| -rw-r--r-- | CHANGELOG.md | 14 | ||||
| -rw-r--r-- | layouts/partials/styles.html | 2 |
2 files changed, 10 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a9ae3b..eb59b13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,16 +16,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Simplified setting of language and direction for the site by using the `site.Language.LanguageCode` and `site.Language.LanguageDirection` variables. - This change simplifies the theme's configuration and aligns with Hugo's best practices. + This change simplifies the theme's configuration and aligns with Hugo's best + practices. +- Replace deprecated `resource.ToCss` with `css.Sass` to ensure compatibility + with future versions of Hugo. ### Removed - Removed `GetLanguageDirection` function as it is no longer needed. - Removed explicit setting of the `defaultContentLanguage` for the example site - as it doesn't add any value. The default content language is set to `en` by default. -- Removed explicit setting of the `languageCode` for the example site to force Hugo use - `site.Language.LanguageCode` as the default language code for the site. See - `exampleSite/config/_default/languages.yaml` for more details. + as it doesn't add any value. The default content language is set to `en` by + default. +- Removed explicit setting of the `languageCode` for the example site to force + Hugo use `site.Language.LanguageCode` as the default language code for the + site. See `exampleSite/config/_default/languages.yaml` for more details. ## [v0.8.0](https://github.com/sergeyklay/gohugo-theme-ed/compare/v0.7.0...v0.8.0) diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index 8283883..714677e 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -1,5 +1,5 @@ {{- /* Styles */}} -{{- $theme := resources.Get "sass/style.scss" | resources.ToCSS }} +{{- $theme := resources.Get "sass/style.scss" | css.Sass }} {{- /* order is important */}} {{- /* to ass more styles use the following format: slice $theme $style1 $style2 $style3 ... */}} |
