mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: require new hugo version for leveraging findRESubmatch #679
This commit is contained in:
parent
85a4f5e307
commit
55d6b5d56a
6 changed files with 8 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
[module]
|
||||
[module.hugoVersion]
|
||||
min = "0.95.0"
|
||||
min = "0.110.0"
|
||||
|
||||
[mediaTypes]
|
||||
[mediaTypes."text/javascript"]
|
||||
|
|
|
@ -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="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.
|
||||
|
||||
|
@ -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}
|
||||
|
||||
- {{% 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="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).
|
||||
|
|
|
@ -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="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)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
call "test-hugo.bat" 0.95.0
|
||||
call "test-hugo.bat" 0.110.0
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{- $basename = partial "BaseName.hugo" $format.RelPermalink }}
|
||||
{{- end }}
|
||||
{{- if eq . .Site.Sites.First.Home }}
|
||||
{{- $minHugoVersion := "0.95.0" }}
|
||||
{{- $minHugoVersion := "0.110.0" }}
|
||||
{{- if lt hugo.Version $minHugoVersion }}
|
||||
{{- errorf "The Relearn theme requires Hugo %s or later" $minHugoVersion }}
|
||||
{{- end }}
|
||||
|
|
|
@ -24,7 +24,7 @@ features = ["badges", "breadcrumbs", "boxes", "buttons",
|
|||
|
||||
[module]
|
||||
[module.hugoVersion]
|
||||
min = "0.95.0"
|
||||
min = "0.110.0"
|
||||
|
||||
[author]
|
||||
name = "Sören Weber"
|
||||
|
|
Loading…
Reference in a new issue