Skip to content

Commit 5a54ca6

Browse files
Replace deprecated Page.Dir with Page.File.Dir (#988)
1 parent 46f9879 commit 5a54ca6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
- name: "➕ Setup Hugo"
120120
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
121121
with:
122-
hugo-version: '0.85.0'
122+
hugo-version: '0.93.3'
123123
extended: true
124124
- name: "📥 Source checkout"
125125
uses: actions/checkout@v2
@@ -165,7 +165,7 @@ jobs:
165165
- name: "➕ Setup Hugo"
166166
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
167167
with:
168-
hugo-version: '0.85.0'
168+
hugo-version: '0.93.3'
169169
extended: true
170170
- name: "📥 Source checkout"
171171
uses: actions/checkout@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ place after an MSC has been accepted, not as part of a proposal itself.
6060

6161
1. Install the extended version (often the OS default) of Hugo:
6262
<https://gohugo.io/getting-started/installing>. Note that at least Hugo
63-
v0.74 is required.
63+
v0.93.0 is required.
6464

6565
Alternatively, use the Docker image at
6666
https://hub.docker.com/r/klakegg/hugo/. (The "extended edition" is required

layouts/shortcodes/cs-module.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99

1010
{{ $name := .Params.name }}
1111

12-
{{ $page := .Site.GetPage (path.Join .Page.Dir "modules" (printf "%s%s" $name ".md"))}}
13-
{{ $page.Content }}
12+
{{ $page := .Site.GetPage (path.Join .Page.File.Dir "modules" (printf "%s%s" $name ".md"))}}
13+
{{ $page.Content }}

layouts/shortcodes/rver-fragment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{{ $name := .Params.name }}
1818
{{ $withVersioning := .Params.withVersioning }}
1919

20-
{{ $page := .Site.GetPage (path.Join .Page.Dir "fragments" (printf "%s%s" $name ".md"))}}
20+
{{ $page := .Site.GetPage (path.Join .Page.File.Dir "fragments" (printf "%s%s" $name ".md"))}}
2121
{{ $content := $page.Content }}
2222
{{ if not $withVersioning }}
2323
{{ $content = (replace $content "[New in this version]" "") }}

0 commit comments

Comments
 (0)