theme: require new hugo version for leveraging findRESubmatch #679

This commit is contained in:
Sören Weber 2023-11-26 21:02:51 +01:00
parent 85a4f5e307
commit 55d6b5d56a
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
6 changed files with 8 additions and 6 deletions

View file

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

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). 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="fab fa-hackerrank" title=" " %}}0.95.0{{% /badge %}} The minimum required Hugo version. - {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.110.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. - {{% 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
## 5.24.0.beta {#5240} ## 5.24.0.beta {#5240}
- {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.110.0{{% /badge %}} The minimum required Hugo version.
- {{% badge style="note" title=" " %}}Change{{% /badge %}} The light themes have a bit more contrast for content text and headings. Also the syntaxhighlighting was changed to the more colorful MonokaiLight. This brings the syntaxhighlightning in sync with the corresponding dark theme variants, which are using Monokai. If you dislike this, you can create your own color variant file as [described here](basics/branding#modify-shipped-variants). - {{% badge style="note" title=" " %}}Change{{% /badge %}} The light themes have a bit more contrast for content text and headings. Also the syntaxhighlighting was changed to the more colorful MonokaiLight. This brings the syntaxhighlightning in sync with the corresponding dark theme variants, which are using Monokai. If you dislike this, you can create your own color variant file as [described here](basics/branding#modify-shipped-variants).
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You now can configure additional options for every theme variant in your `config.toml`. This allows for optional [advanced functionality](basics/branding#theme-variant-advanced). You don't need to change anything as the old configuration options will still work (but may generate warnings now). - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You now can configure additional options for every theme variant in your `config.toml`. This allows for optional [advanced functionality](basics/branding#theme-variant-advanced). You don't need to change anything as the old configuration options will still work (but may generate warnings now).

View file

@ -7,6 +7,6 @@ weight = 10
Thanks to the simplicity of Hugo, this page is as empty as this theme needs requirements. 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="fab fa-hackerrank" title=" " %}}0.95.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="fab fa-hackerrank" title=" " %}}0.110.0{{% /badge %}} of the [Hugo binary](https://gohugo.io/getting-started/installing/) for your OS (Windows, Linux, Mac).
![Magic](magic.gif) ![Magic](magic.gif)

View file

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

View file

@ -6,7 +6,7 @@
{{- $basename = partial "BaseName.hugo" $format.RelPermalink }} {{- $basename = partial "BaseName.hugo" $format.RelPermalink }}
{{- end }} {{- end }}
{{- if eq . .Site.Sites.First.Home }} {{- if eq . .Site.Sites.First.Home }}
{{- $minHugoVersion := "0.95.0" }} {{- $minHugoVersion := "0.110.0" }}
{{- if lt hugo.Version $minHugoVersion }} {{- if lt hugo.Version $minHugoVersion }}
{{- errorf "The Relearn theme requires Hugo %s or later" $minHugoVersion }} {{- errorf "The Relearn theme requires Hugo %s or later" $minHugoVersion }}
{{- end }} {{- end }}

View file

@ -24,7 +24,7 @@ features = ["badges", "breadcrumbs", "boxes", "buttons",
[module] [module]
[module.hugoVersion] [module.hugoVersion]
min = "0.95.0" min = "0.110.0"
[author] [author]
name = "Sören Weber" name = "Sören Weber"