Skip to content

Commit a421ea9

Browse files
committed
Update Hugo
1 parent 2da69a4 commit a421ea9

15 files changed

Lines changed: 30 additions & 30 deletions

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup HUGO
1818
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
1919
with:
20-
hugo-version: '0.156.0'
20+
hugo-version: '0.160.1'
2121
- name: Render
2222
working-directory: '.hugo'
2323
run: hugo

.hugo/layouts/apidiff/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>{{ .Title }}</h1>
5252
{{- $targetversion := .Params.Targetversion }}
5353
{{- $baseversion := .Params.Baseversion }}
5454

55-
{{- with (index (index (index $.Site.Data.jdk.versions $targetversion) "apidiff") $baseversion) }}
55+
{{- with (index (index (index hugo.Data.jdk.versions $targetversion) "apidiff") $baseversion) }}
5656

5757
<p>
5858
Comparing <a href="../../../{{ .target.feature }}/">Java {{ .target.feature }}</a> ({{ .target.version }}-{{ .target.vendor }})

.hugo/layouts/opcode/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- partial "header.html" . }}
22
{{- $opcode := .Params.Opcode }}
3-
{{- with (index $.Site.Data.bytecode.opcodes $opcode) }}
3+
{{- with (index hugo.Data.bytecode.opcodes $opcode) }}
44

55
<h1>Opcode <code>{{ .mnemonic }}</code></h1>
66

@@ -12,7 +12,7 @@ <h1>Opcode <code>{{ .mnemonic }}</code></h1>
1212
<tbody>
1313
<tr>
1414
<th>Category</th>
15-
<td>{{ (index $.Site.Data.bytecode.categories .category).title }}</td>
15+
<td>{{ (index hugo.Data.bytecode.categories .category).title }}</td>
1616
</tr>
1717
<tr>
1818
<th>Opcode dec</th>

.hugo/layouts/partials/upgrade.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{{- $version := . }}
2-
{{- $jdk := index site.Data.jdk.versions $version }}
2+
{{- $jdk := index hugo.Data.jdk.versions $version }}
33
{{- $newerlts := slice }}
44
{{- $newerltshtml := slice }}
55
{{- $newerrel := slice }}
66
{{- $newerrelhtml := slice }}
77
{{- $newerdev := slice }}
88
{{- $newerdevhtml := slice }}
99

10-
{{- range sort site.Data.jdk.versions "ga" "asc" }}
10+
{{- range sort hugo.Data.jdk.versions "ga" "asc" }}
1111
{{- if gt .ga $jdk.ga }}
1212
{{- if eq .status "LTS" }}
1313
{{- $newerlts = $newerlts | append . }}

.hugo/layouts/shortcodes/allfeatures.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</tr>
88
</thead>
99
<tbody>
10-
{{- range $jdk := sort $.Site.Data.jdk.versions "ga" "desc" }}
10+
{{- range $jdk := sort hugo.Data.jdk.versions "ga" "desc" }}
1111
{{- range $jdk.features }}
1212
{{- if and (not .incubator) (not .preview) }}
1313
<tr>

.hugo/layouts/shortcodes/bytecodecategorieslist.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- range sort $.Site.Data.bytecode.categories "order" }}
1+
{{- range sort hugo.Data.bytecode.categories "order" }}
22
{{- $currentcategory := .id }}
33
<h2>{{ .title }}</h2>
44
<p>{{ .description }}</p>
@@ -12,7 +12,7 @@ <h2>{{ .title }}</h2>
1212
</tr>
1313
</thead>
1414
<tbody>
15-
{{- range sort $.Site.Data.bytecode.opcodes "mnemonic" }}
15+
{{- range sort hugo.Data.bytecode.opcodes "mnemonic" }}
1616
{{- if eq .category $currentcategory }}
1717
<tr>
1818
<td><a href="op/{{ .mnemonic }}/"><code>{{ .mnemonic }}</code></a></td>

.hugo/layouts/shortcodes/bytecodemnemoniclist.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</tr>
88
</thead>
99
<tbody>
10-
{{- range sort $.Site.Data.bytecode.opcodes "mnemonic" }}
10+
{{- range sort hugo.Data.bytecode.opcodes "mnemonic" }}
1111
<tr>
1212
<td><a href="../op/{{ .mnemonic }}/"><code>{{ .mnemonic }}</code></a></td>
1313
<td>{{ .opcode }}</td>

.hugo/layouts/shortcodes/bytecodeopcodelist.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</tr>
88
</thead>
99
<tbody>
10-
{{- range sort $.Site.Data.bytecode.opcodes "opcode" }}
10+
{{- range sort hugo.Data.bytecode.opcodes "opcode" }}
1111
<tr>
1212
<td><a href="../op/{{ .mnemonic }}/"><code>{{ .opcode }}</code></a></td>
1313
<td>{{ .mnemonic }}</td>

.hugo/layouts/shortcodes/classfileversionslist.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</tr>
77
</thead>
88
<tbody>
9-
{{- range sort $.Site.Data.jdk.versions "ga" }}
9+
{{- range sort hugo.Data.jdk.versions "ga" }}
1010
<tr>
1111
<td><a href="../../jdk/{{ .version }}/">{{ .name }}</a></td>
1212
<td>{{ .bytecode }}</td>

.hugo/layouts/shortcodes/datacheck.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
{{ $jdkversions := $.Site.Data.jdk.versions }}
1+
{{ $jdkversions := hugo.Data.jdk.versions }}
22

33
<ul>
44

55
<li>All JDK versions have valid status.</li>
66
<ul>
77
{{ range $jdkversions }}
8-
{{ if not (index $.Site.Data.jdk.status .status) }}{{ errorf "Unknown Status %s" .status }}{{ end }}
8+
{{ if not (index hugo.Data.jdk.status .status) }}{{ errorf "Unknown Status %s" .status }}{{ end }}
99
<li>{{ .version }} / {{ .status }} &check;</li>
1010
{{ end }}
1111
</ul>
1212

1313
<li>All products of all vendors have valid JDK version references.</li>
1414
<ul>
15-
{{ range $.Page.Site.Data.jdk.vendors }}
15+
{{ range hugo.Data.jdk.vendors }}
1616
{{ $vendorname := .name }}
1717
{{ range .products }}
1818
{{ range .versions }}
@@ -27,7 +27,7 @@
2727
<ul>
2828
{{ range $jdkversions }}
2929
{{ range .features }}
30-
{{ if not (index $.Page.Site.Data.jdk.featurecategories .category) }}{{ errorf "Unknown category %s" .category }}{{ end }}
30+
{{ if not (index hugo.Data.jdk.featurecategories .category) }}{{ errorf "Unknown category %s" .category }}{{ end }}
3131
<li>{{ .title }} &check;</li>
3232
{{ end }}
3333
{{ end }}
@@ -73,8 +73,8 @@
7373

7474
<li>All bytecode opcodes have valid categories.</li>
7575
<ul>
76-
{{ range $.Page.Site.Data.bytecode.opcodes }}
77-
{{ if not (index $.Page.Site.Data.bytecode.categories .category) }}{{ errorf "Unknown category %s" .category }}{{ end }}
76+
{{ range hugo.Data.bytecode.opcodes }}
77+
{{ if not (index hugo.Data.bytecode.categories .category) }}{{ errorf "Unknown category %s" .category }}{{ end }}
7878
<li>{{ .mnemonic }} is {{ .category }} &check;</li>
7979
{{ end }}
8080
</ul>

0 commit comments

Comments
 (0)