From 58e2f318fc9a23e81ea8f4e09e71e6ac0235686f Mon Sep 17 00:00:00 2001 From: AJaccP Date: Tue, 20 May 2025 18:17:35 -0400 Subject: [PATCH 1/2] Revert "update deprecated resources.ToCSS to css.Sass (#584)" This reverts commit db210cea1288072f624418671f2a391ce3da0725. --- .github/workflows/gh-pages.yml | 2 +- .github/workflows/hugo-preview.yml | 2 +- layouts/partials/head.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 636ccde45..325a14f01 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.146.6' + hugo-version: '0.83.1' extended: true - name: Build diff --git a/.github/workflows/hugo-preview.yml b/.github/workflows/hugo-preview.yml index fbec543fc..0dda5637e 100644 --- a/.github/workflows/hugo-preview.yml +++ b/.github/workflows/hugo-preview.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.146.6' + hugo-version: '0.83.1' extended: true - name: Setup base URL env var diff --git a/layouts/partials/head.html b/layouts/partials/head.html index fded38488..0f6678c30 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,7 +2,7 @@ {{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}} - {{- $styles := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "main.scss" . | css.Sass $options | resources.Fingerprint "sha512" }} + {{- $styles := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS $options | resources.Fingerprint "sha512" }} Date: Tue, 20 May 2025 18:24:15 -0400 Subject: [PATCH 2/2] hugo version update test --- .github/workflows/gh-pages.yml | 2 +- .github/workflows/hugo-preview.yml | 2 +- layouts/partials/head.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 325a14f01..00492084c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.83.1' + hugo-version: '0.128.0' extended: true - name: Build diff --git a/.github/workflows/hugo-preview.yml b/.github/workflows/hugo-preview.yml index 0dda5637e..c96f4d6e5 100644 --- a/.github/workflows/hugo-preview.yml +++ b/.github/workflows/hugo-preview.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.83.1' + hugo-version: '0.128.0' extended: true - name: Setup base URL env var diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0f6678c30..fded38488 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,7 +2,7 @@ {{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}} - {{- $styles := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS $options | resources.Fingerprint "sha512" }} + {{- $styles := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "main.scss" . | css.Sass $options | resources.Fingerprint "sha512" }}