From b7db52eb7efdcd844b4f47f40a4c2f8c89c0dcb3 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 22 Jun 2026 03:28:16 +0800 Subject: [PATCH] chore: bump minimum Hugo version to 0.161.0 for hugo:vars support The hugo:vars feature (used for SCSS variable configuration via [params.appearance]) requires Hugo v0.161.0+. See https://gohugo.io/functions/css/sass/#vars --- .devcontainer/devcontainer.json | 2 +- CLAUDE.md | 2 +- CONTRIBUTING.md | 2 +- README.md | 2 +- README.zh-cn.md | 2 +- hugo.toml | 2 +- layouts/_partials/init/detection-version.html | 2 +- theme.toml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 32587a47..43143ca6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ "build": { "dockerfile": "Dockerfile", "args": { - "HUGO_VERSION": "0.158.0", + "HUGO_VERSION": "0.161.0", "DART_SASS_VERSION": "1.99.0", "GO_VERSION": "1.24.4" } diff --git a/CLAUDE.md b/CLAUDE.md index 7ceb318c..e9b18717 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,7 +11,7 @@ FixIt is a modern, responsive theme for the Hugo static site generator. Built wi ### Prerequisites - Node.js >= 20 -- Hugo Extended >= 0.158.0 (Dart Sass required) +- Hugo Extended >= 0.161.0 (Dart Sass required) - pnpm ### Development diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bb73a0b9..e9ad7f91 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ Make sure that you follow [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) while contrib Before you start contributing, make sure you have the following tools installed: -- **Hugo Extended** (>= 0.158.0) - The static site generator +- **Hugo Extended** (>= 0.161.0) - The static site generator - **Dart Sass** - Required for SCSS compilation - **Node.js** (>= 22) - Required for package management and build tools - **pnpm** - Package manager diff --git a/README.md b/README.md index be46736a..a496b3fa 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ [![Build](https://img.shields.io/github/deployments/hugo-fixit/FixIt/Production?style=flat&label=Build&logo=vercel)](https://demo.fixit.lruihao.cn/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/hugo-fixit/FixIt?style=flat&label=Release&logo=github&include_prereleases)](https://github.com/hugo-fixit/FixIt/releases) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.158.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.161.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) [![License](https://img.shields.io/github/license/hugo-fixit/FixIt?style=flat&label=License)](/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/hugo-fixit/FixIt?style=social)](https://github.com/hugo-fixit/FixIt) [![Gitee star of FixIt](https://gitee.com/lruihao/FixIt/badge/star.svg)](https://gitee.com/lruihao/FixIt/stargazers) diff --git a/README.zh-cn.md b/README.zh-cn.md index fbeb82b7..e4b09fb5 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -26,7 +26,7 @@ [![Build](https://img.shields.io/github/deployments/hugo-fixit/FixIt/Production?style=flat&label=Build&logo=vercel)](https://demo.fixit.lruihao.cn/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/hugo-fixit/FixIt?style=flat&label=Release&logo=github&include_prereleases)](https://github.com/hugo-fixit/FixIt/releases) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.158.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.161.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) [![License](https://img.shields.io/github/license/hugo-fixit/FixIt?style=flat&label=License)](/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/hugo-fixit/FixIt?style=social)](https://github.com/hugo-fixit/FixIt) [![Gitee star of FixIt](https://gitee.com/lruihao/FixIt/badge/star.svg)](https://gitee.com/lruihao/FixIt/stargazers) diff --git a/hugo.toml b/hugo.toml index d05242d5..c5d57029 100644 --- a/hugo.toml +++ b/hugo.toml @@ -171,7 +171,7 @@ weight = 80 [module.hugoVersion] extended = true -min = "0.158.0" +min = "0.161.0" # ------------------------------------------------------------------------------------- # Markup Configuration diff --git a/layouts/_partials/init/detection-version.html b/layouts/_partials/init/detection-version.html index a6c45165..27de9bef 100644 --- a/layouts/_partials/init/detection-version.html +++ b/layouts/_partials/init/detection-version.html @@ -3,7 +3,7 @@ {{- $devOpts := .Site.Store.Get "devOpts" -}} {{- /* Check Hugo version */ -}} -{{- $MINIMAL_HUGO_VERSION := "0.158.0" -}} +{{- $MINIMAL_HUGO_VERSION := "0.161.0" -}} {{- if lt hugo.Version $MINIMAL_HUGO_VERSION -}} {{- errorf "\n\n%v\n\n" (dict "Current" hugo.Version "Minimal" $MINIMAL_HUGO_VERSION | T "init.hugoVersionError") -}} {{- end -}} diff --git a/theme.toml b/theme.toml index 04a26404..b9e23d83 100644 --- a/theme.toml +++ b/theme.toml @@ -7,7 +7,7 @@ licenselink = "https://github.com/hugo-fixit/FixIt/blob/main/LICENSE" description = "A Clean, Elegant but Advanced Hugo Theme for Hugo." homepage = "https://github.com/hugo-fixit/FixIt" demosite = "https://fixit.lruihao.cn" -min_version = "0.158.0" +min_version = "0.161.0" tags = [ "blog", "clean",