theme: raise minimum required Hugo version to 0.126.0 #888

This commit is contained in:
Sören Weber 2024-08-27 00:10:01 +02:00
parent 5d89fffd3e
commit b063a362e9
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
6 changed files with 8 additions and 6 deletions

View file

@ -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

View file

@ -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" %}}

View file

@ -1,4 +1,4 @@
@echo off
setlocal enabledelayedexpansion
call "test-hugo.bat" 0.121.0
call "test-hugo.bat" 0.126.0

View file

@ -1,6 +1,6 @@
[module]
[module.hugoVersion]
min = "0.121.0"
min = "0.126.0"
[mediaTypes]
[mediaTypes."text/javascript"]

View file

@ -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 }}

View file

@ -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"