diff --git a/README.md b/README.md index c18c683b0..6ffc6fd8c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # FixIt Theme | Hugo [![GitHub release (latest by date)](https://img.shields.io/github/v/release/hugo-fixit/FixIt?style=flat)](https://github.com/hugo-fixit/FixIt/releases) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.123.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.127.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) [![License](https://img.shields.io/github/license/hugo-fixit/FixIt?style=flat)](/LICENSE) 👉 English README | [简体中文说明](README.zh-cn.md) diff --git a/README.zh-cn.md b/README.zh-cn.md index 11eceba50..6ba1639f7 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -1,7 +1,7 @@ # FixIt 主题 | Hugo [![GitHub release (latest by date)](https://img.shields.io/github/v/release/hugo-fixit/FixIt?style=flat)](https://github.com/hugo-fixit/FixIt/releases) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.123.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.127.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) [![License](https://img.shields.io/github/license/hugo-fixit/FixIt?style=flat)](/LICENSE) 👉 [English README](README.md) | 简体中文说明 diff --git a/hugo.toml b/hugo.toml index 1126b7efa..145e01484 100644 --- a/hugo.toml +++ b/hugo.toml @@ -133,7 +133,7 @@ enableEmoji = true [module] [module.hugoVersion] extended = true - min = "0.123.0" + min = "0.127.0" # ------------------------------------------------------------------------------------- # Markup related configuration in Hugo diff --git a/layouts/partials/init/detection-env.html b/layouts/partials/init/detection-env.html index fb9899948..e61671790 100644 --- a/layouts/partials/init/detection-env.html +++ b/layouts/partials/init/detection-env.html @@ -26,7 +26,7 @@ {{- if ne .Site.Params.dev.enable true -}} {{- .Scratch.Set "devOpts" dict -}} {{- end -}} - {{- if eq .Site .Sites.First -}} + {{- if eq .Site .Sites.Default -}} {{- warnf "FixIt %v\n%v\n\n" (.Scratch.Get "version") (T "init.devEnvWarn") -}} {{- end -}} {{- end -}} diff --git a/layouts/partials/init/detection-version.html b/layouts/partials/init/detection-version.html index 6944857c2..f53e803ee 100644 --- a/layouts/partials/init/detection-version.html +++ b/layouts/partials/init/detection-version.html @@ -10,7 +10,7 @@ {{- end -}} {{- /* FixIt theme version detection */ -}} -{{- if eq .Site .Sites.First -}} +{{- if eq .Site .Sites.Default -}} {{- if not .Site.Params.version -}} {{- errorf "FixIt %v\n%v\n\n" $version (T "init.configurationError") -}} {{- else if gt "0.2.0" (strings.TrimPrefix "v" .Site.Params.version) -}} diff --git a/theme.toml b/theme.toml index 9ebab62df..7ea28e150 100644 --- a/theme.toml +++ b/theme.toml @@ -7,7 +7,7 @@ licenselink = "https://github.com/hugo-fixit/FixIt/blob/master/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.123.0" +min_version = "0.127.0" tags = [ "blog",