Skip to content

Commit fd809dc

Browse files
committed
theme: raise minimum Hugo version to 0.126.3 #1086
1 parent b0c6bb5 commit fd809dc

File tree

12 files changed

+35
-13
lines changed

12 files changed

+35
-13
lines changed

.github/actions/release_milestone/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ runs:
108108
GITHUB_TOKEN: ${{ inputs.github_token }}
109109
GREN_GITHUB_TOKEN: ${{ inputs.github_token }}
110110
run: |
111-
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
111+
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
112112
113113
- name: Update releasenotes front matter
114114
uses: surahmansada/file-regex-replace@v1
@@ -127,8 +127,8 @@ runs:
127127
- name: Generate piratish releasenotes
128128
shell: bash
129129
run: |
130-
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
131-
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
130+
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
131+
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
132132
133133
- name: Generate english changelogs
134134
shell: bash

docs/content/introduction/quickstart/_index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Here's how to start your new website. If you're new to Hugo, we recommend learni
1212
1313
## Install Hugo
1414

15-
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/).
15+
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/).
1616

1717
The _standard_ edition of Hugo is sufficient but you can also use the _extended_ edition.
1818

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
+++
2+
title = 'Version 7.7'
3+
type = 'releasenotes'
4+
weight = -7
5+
6+
[params]
7+
disableToc = false
8+
hidden = true
9+
minHugoVersion = '0.126.3'
10+
+++
11+
12+
## 7.7.0 (XXXX-XX-XX) {#7-7-0}
13+
14+
### Hugo 0.126.3
15+
16+
- {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.126.3{{% /badge %}} This release requires a newer Hugo version.
17+
18+
### Change
19+
20+
- {{% 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.
21+
22+
In case you've called `dependencies.gotmpl` from your own templates, the theme will generate a warning. Call `dependencies.html` instead.

docs/content/introduction/releasenotes/7/_index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight = -7
66
[params]
77
disableToc = false
88
hidden = true
9-
minHugoVersion = '0.126.0'
9+
minHugoVersion = '0.126.3'
1010
+++
1111

1212
{{% pages showhidden="true" showdivider="true" %}}

docs/content/introduction/releasenotes/7/_index.pir.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ weight = -7
66
[params]
77
disableToc = false
88
hidden = true
9-
minHugoVersion = '0.126.0'
9+
minHugoVersion = '0.126.3'
1010
+++
1111
{{< piratify >}}

docs/content/introduction/releasenotes/_index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight = 4
88
[params]
99
alwaysopen = false
1010
disableToc = false
11-
minHugoVersion = '0.126.0'
11+
minHugoVersion = '0.126.3'
1212
+++
1313

1414
{{% pages showdivider="true" showhidden="true" hidevisible="true" showtitle="true" %}}

docs/content/introduction/releasenotes/_index.pir.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ weight = 4
88
[params]
99
alwaysopen = false
1010
disableToc = false
11-
minHugoVersion = '0.126.0'
11+
minHugoVersion = '0.126.3'
1212
+++
1313
{{< piratify >}}

docs/test-hugo.min.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
22
setlocal enabledelayedexpansion
33

4-
call "test-hugo.bat" 0.126.0
4+
call "test-hugo.bat" 0.126.3

hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[module]
22
[module.hugoVersion]
3-
min = '0.126.0'
3+
min = '0.126.3'
44

55
[mediaTypes]
66
[mediaTypes.'text/javascript']

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
{{- block "storeOutputFormat" . }}{{ end }}
33
{{- if .IsHome }}
4-
{{- $hugoVersion := "0.126.0" }}
4+
{{- $hugoVersion := "0.126.3" }}
55
{{- if lt hugo.Version $hugoVersion }}
66
{{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }}
77
{{- end }}

0 commit comments

Comments
 (0)