From e54cf3e6d1c631ed1ea01d758464f2b220f68cb7 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Tue, 1 Oct 2024 21:52:34 +0200 Subject: [PATCH] Fix deprecation warnings, upgrade to hugo 0.134 (#653) --- .github/workflows/main.yml | 4 ++-- layouts/partials/docs/brand.html | 2 +- layouts/partials/docs/html-head.html | 2 +- theme.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c44825..6c2df2c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: matrix: hugo-version: - 'latest' - - '0.124.0' + - '0.134.2' steps: - uses: actions/checkout@v4 with: @@ -17,7 +17,7 @@ jobs: fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: hugo-version: ${{ matrix.hugo-version }} extended: true diff --git a/layouts/partials/docs/brand.html b/layouts/partials/docs/brand.html index f9accb4..7824ef1 100644 --- a/layouts/partials/docs/brand.html +++ b/layouts/partials/docs/brand.html @@ -1,5 +1,5 @@

- + {{- with .Site.Params.BookLogo -}} Logo {{- end -}} diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 5548e94..7cae998 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -23,7 +23,7 @@ {{- end -}} -{{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint }} +{{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | css.Sass | resources.Minify | resources.Fingerprint }} {{- if default true .Site.Params.BookSearch -}} diff --git a/theme.toml b/theme.toml index 784e610..b24899f 100644 --- a/theme.toml +++ b/theme.toml @@ -9,7 +9,7 @@ homepage = "https://github.com/alex-shpak/hugo-book" demosite = "https://hugo-book-demo.netlify.app" tags = ["responsive", "clean", "documentation", "docs", "flexbox", "search", "mobile", "multilingual", "disqus"] features = [] -min_version = "0.124" +min_version = "0.128.0" [author] name = "Alex Shpak"