From b063a362e9893a8e4cdbab3d88e7d3cfb738f3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 27 Aug 2024 00:10:01 +0200 Subject: [PATCH] theme: raise minimum required Hugo version to 0.126.0 #888 --- exampleSite/content/basics/migration/_index.en.md | 4 +++- exampleSite/content/basics/requirements/_index.en.md | 2 +- exampleSite/test-hugo.min.bat | 2 +- hugo.toml | 2 +- layouts/partials/header.html | 2 +- theme.toml | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/exampleSite/content/basics/migration/_index.en.md b/exampleSite/content/basics/migration/_index.en.md index 3604b0fd03..cf64334d7d 100644 --- a/exampleSite/content/basics/migration/_index.en.md +++ b/exampleSite/content/basics/migration/_index.en.md @@ -6,7 +6,7 @@ weight = 2 This document shows you what's new in the latest release and flags it with one of the following badges. For a detailed list of changes, see the [history page](basics/history). -- {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.121.0{{% /badge %}} The minimum required Hugo version. +- {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.126.0{{% /badge %}} The minimum required Hugo version. - {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} A change that requires action by you after upgrading to assure the site is still functional. @@ -20,6 +20,8 @@ This document shows you what's new in the latest release and flags it with one o ## 7.0.0 (XXXX-XX-XX) {#700} +- {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.126.0{{% /badge %}} This release requires a newer Hugo version. + - {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} This release changes the way, the search index and the dedicated search page are generated and require reconfiguration by you to not break your build. You need to remove the `search` and `searchpage` output format from `outputs.home` in your `hugo.toml`, resulting in something similar to diff --git a/exampleSite/content/basics/requirements/_index.en.md b/exampleSite/content/basics/requirements/_index.en.md index 20808d71a7..47f2abd3c7 100755 --- a/exampleSite/content/basics/requirements/_index.en.md +++ b/exampleSite/content/basics/requirements/_index.en.md @@ -7,6 +7,6 @@ weight = 10 Thanks to the simplicity of Hugo, this page is as empty as this theme needs requirements. -Just download at least version {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.121.0{{% /badge %}} of the [Hugo binary](https://gohugo.io/getting-started/installing/) for your OS (Windows, Linux, Mac). +Just download at least version {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.126.0{{% /badge %}} of the [Hugo binary](https://gohugo.io/getting-started/installing/) for your OS (Windows, Linux, Mac). {{% figure src="magic.gif" link="https://gohugo.io" alt="Magic" caption="It's a kind of magic" %}} diff --git a/exampleSite/test-hugo.min.bat b/exampleSite/test-hugo.min.bat index 718f3ebd62..8e3f5574a6 100644 --- a/exampleSite/test-hugo.min.bat +++ b/exampleSite/test-hugo.min.bat @@ -1,4 +1,4 @@ @echo off setlocal enabledelayedexpansion -call "test-hugo.bat" 0.121.0 +call "test-hugo.bat" 0.126.0 diff --git a/hugo.toml b/hugo.toml index 026cc8231e..2e82bdf341 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,6 +1,6 @@ [module] [module.hugoVersion] - min = "0.121.0" + min = "0.126.0" [mediaTypes] [mediaTypes."text/javascript"] diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a8d34f034d..89a1018f6c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,7 +2,7 @@ {{- $format := partial "get-format.hugo" . }} {{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }} {{- if eq . .Site.Sites.First.Home }} - {{- $hugoVersion := "0.121.0" }} + {{- $hugoVersion := "0.126.0" }} {{- if lt hugo.Version $hugoVersion }} {{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }} {{- end }} diff --git a/theme.toml b/theme.toml index 7c8ae2e871..6b3688b0e8 100644 --- a/theme.toml +++ b/theme.toml @@ -24,7 +24,7 @@ features = ["badges", "breadcrumbs", "boxes", "buttons", [module] [module.hugoVersion] - min = "0.121.0" + min = "0.126.0" [author] name = "Sören Weber"