theme: raise minimum Hugo version to 0.126.3

This commit is contained in:
Sören Weber 2025-04-10 21:42:06 +02:00
parent b0c6bb558d
commit fd809dc523
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
12 changed files with 35 additions and 13 deletions
.github/actions/release_milestone
docs
hugo.toml
layouts
_default
partials
theme.toml

View file

@ -108,7 +108,7 @@ runs:
GITHUB_TOKEN: ${{ inputs.github_token }} GITHUB_TOKEN: ${{ inputs.github_token }}
GREN_GITHUB_TOKEN: ${{ inputs.github_token }} GREN_GITHUB_TOKEN: ${{ inputs.github_token }}
run: | run: |
echo -e "+++\ntitle = 'Version ${{ steps.majorvers.outputs.value }}'\ntype = 'releasenotes'\nweight = -${{ steps.majorvers.outputs.value }}\n\n[params]\n disableToc = false\n hidden = true\n minHugoVersion = '0.126.0'\n+++\n\n{{% pages showhidden=\"true\" showdivider=\"true\" %}}" > docs/content/introduction/releasenotes/${{ steps.majorvers.outputs.value }}/_index.en.md echo -e "+++\ntitle = 'Version ${{ steps.majorvers.outputs.value }}'\ntype = 'releasenotes'\nweight = -${{ steps.majorvers.outputs.value }}\n\n[params]\n disableToc = false\n hidden = true\n minHugoVersion = '0.126.3'\n+++\n\n{{% pages showhidden=\"true\" showdivider=\"true\" %}}" > docs/content/introduction/releasenotes/${{ steps.majorvers.outputs.value }}/_index.en.md
- name: Update releasenotes front matter - name: Update releasenotes front matter
uses: surahmansada/file-regex-replace@v1 uses: surahmansada/file-regex-replace@v1
@ -127,8 +127,8 @@ runs:
- name: Generate piratish releasenotes - name: Generate piratish releasenotes
shell: bash shell: bash
run: | run: |
echo -e "+++\ntitle = 'Version ${{ steps.majorvers.outputs.value }}'\ntype = 'releasenotes'\nweight = -${{ steps.majorvers.outputs.value }}\n\n[params]\n disableToc = false\n hidden = true\n minHugoVersion = '0.126.0'\n+++\n{{< piratify >}}" > docs/content/introduction/releasenotes/${{ steps.majorvers.outputs.value }}/_index.pir.md echo -e "+++\ntitle = 'Version ${{ steps.majorvers.outputs.value }}'\ntype = 'releasenotes'\nweight = -${{ steps.majorvers.outputs.value }}\n\n[params]\n disableToc = false\n hidden = true\n minHugoVersion = '0.126.3'\n+++\n{{< piratify >}}" > docs/content/introduction/releasenotes/${{ steps.majorvers.outputs.value }}/_index.pir.md
echo -e "+++\ntitle = 'Version ${{ steps.majorvers.outputs.value }}.${{ steps.minorvers.outputs.value }}'\ntype = 'releasenotes'\nweight = -${{ steps.minorvers.outputs.value }}\n\n[params]\n disableToc = false\n hidden = true\n minHugoVersion = '0.126.0'\n+++\n{{< piratify >}}" > docs/content/introduction/releasenotes/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}.pir.md echo -e "+++\ntitle = 'Version ${{ steps.majorvers.outputs.value }}.${{ steps.minorvers.outputs.value }}'\ntype = 'releasenotes'\nweight = -${{ steps.minorvers.outputs.value }}\n\n[params]\n disableToc = false\n hidden = true\n minHugoVersion = '0.126.3'\n+++\n{{< piratify >}}" > docs/content/introduction/releasenotes/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}.pir.md
- name: Generate english changelogs - name: Generate english changelogs
shell: bash shell: bash

View file

@ -12,7 +12,7 @@ Here's how to start your new website. If you're new to Hugo, we recommend learni
## Install Hugo ## Install Hugo
Download and install Hugo {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.126.0{{% /badge %}} or newer for your operating system [following the instructions](https://gohugo.io/installation/). Download and install Hugo {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.126.3{{% /badge %}} or newer for your operating system [following the instructions](https://gohugo.io/installation/).
The _standard_ edition of Hugo is sufficient but you can also use the _extended_ edition. The _standard_ edition of Hugo is sufficient but you can also use the _extended_ edition.

View file

@ -0,0 +1,22 @@
+++
title = 'Version 7.7'
type = 'releasenotes'
weight = -7
[params]
disableToc = false
hidden = true
minHugoVersion = '0.126.3'
+++
## 7.7.0 (XXXX-XX-XX) {#7-7-0}
### Hugo 0.126.3
- {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.126.3{{% /badge %}} This release requires a newer Hugo version.
### Change
- {{% badge style="note" title=" " %}}Change{{% /badge %}} This release restores compatiblity for Hugo {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.146.0{{% /badge %}} or newer.
In case you've called `dependencies.gotmpl` from your own templates, the theme will generate a warning. Call `dependencies.html` instead.

View file

@ -6,7 +6,7 @@ weight = -7
[params] [params]
disableToc = false disableToc = false
hidden = true hidden = true
minHugoVersion = '0.126.0' minHugoVersion = '0.126.3'
+++ +++
{{% pages showhidden="true" showdivider="true" %}} {{% pages showhidden="true" showdivider="true" %}}

View file

@ -6,6 +6,6 @@ weight = -7
[params] [params]
disableToc = false disableToc = false
hidden = true hidden = true
minHugoVersion = '0.126.0' minHugoVersion = '0.126.3'
+++ +++
{{< piratify >}} {{< piratify >}}

View file

@ -8,7 +8,7 @@ weight = 4
[params] [params]
alwaysopen = false alwaysopen = false
disableToc = false disableToc = false
minHugoVersion = '0.126.0' minHugoVersion = '0.126.3'
+++ +++
{{% pages showdivider="true" showhidden="true" hidevisible="true" showtitle="true" %}} {{% pages showdivider="true" showhidden="true" hidevisible="true" showtitle="true" %}}

View file

@ -8,6 +8,6 @@ weight = 4
[params] [params]
alwaysopen = false alwaysopen = false
disableToc = false disableToc = false
minHugoVersion = '0.126.0' minHugoVersion = '0.126.3'
+++ +++
{{< piratify >}} {{< piratify >}}

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
{{- block "storeOutputFormat" . }}{{ end }} {{- block "storeOutputFormat" . }}{{ end }}
{{- if .IsHome }} {{- if .IsHome }}
{{- $hugoVersion := "0.126.0" }} {{- $hugoVersion := "0.126.3" }}
{{- if lt hugo.Version $hugoVersion }} {{- if lt hugo.Version $hugoVersion }}
{{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }} {{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }}
{{- end }} {{- end }}

View file

@ -1 +1 @@
7.6.1+3e2dd237eb6f1bb1ff4c61c702d06c689dd7ebd7 7.6.1+b0c6bb558d7728ac4535a2ac677c5f47297203cc

View file

@ -28,7 +28,7 @@ features = [
[module] [module]
[module.hugoVersion] [module.hugoVersion]
min = '0.126.0' min = '0.126.3'
[author] [author]
name = 'Sören Weber' name = 'Sören Weber'