Replace deprecated Page.Dir with Page.File.Dir (#988)
This commit is contained in:
parent
46f98796b6
commit
5a54ca66d1
4 changed files with 6 additions and 6 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -119,7 +119,7 @@ jobs:
|
||||||
- name: "➕ Setup Hugo"
|
- name: "➕ Setup Hugo"
|
||||||
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
|
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
|
||||||
with:
|
with:
|
||||||
hugo-version: '0.85.0'
|
hugo-version: '0.93.3'
|
||||||
extended: true
|
extended: true
|
||||||
- name: "📥 Source checkout"
|
- name: "📥 Source checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -165,7 +165,7 @@ jobs:
|
||||||
- name: "➕ Setup Hugo"
|
- name: "➕ Setup Hugo"
|
||||||
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
|
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
|
||||||
with:
|
with:
|
||||||
hugo-version: '0.85.0'
|
hugo-version: '0.93.3'
|
||||||
extended: true
|
extended: true
|
||||||
- name: "📥 Source checkout"
|
- name: "📥 Source checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -60,7 +60,7 @@ place after an MSC has been accepted, not as part of a proposal itself.
|
||||||
|
|
||||||
1. Install the extended version (often the OS default) of Hugo:
|
1. Install the extended version (often the OS default) of Hugo:
|
||||||
<https://gohugo.io/getting-started/installing>. Note that at least Hugo
|
<https://gohugo.io/getting-started/installing>. Note that at least Hugo
|
||||||
v0.74 is required.
|
v0.93.0 is required.
|
||||||
|
|
||||||
Alternatively, use the Docker image at
|
Alternatively, use the Docker image at
|
||||||
https://hub.docker.com/r/klakegg/hugo/. (The "extended edition" is required
|
https://hub.docker.com/r/klakegg/hugo/. (The "extended edition" is required
|
||||||
|
|
|
@ -9,5 +9,5 @@
|
||||||
|
|
||||||
{{ $name := .Params.name }}
|
{{ $name := .Params.name }}
|
||||||
|
|
||||||
{{ $page := .Site.GetPage (path.Join .Page.Dir "modules" (printf "%s%s" $name ".md"))}}
|
{{ $page := .Site.GetPage (path.Join .Page.File.Dir "modules" (printf "%s%s" $name ".md"))}}
|
||||||
{{ $page.Content }}
|
{{ $page.Content }}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
{{ $name := .Params.name }}
|
{{ $name := .Params.name }}
|
||||||
{{ $withVersioning := .Params.withVersioning }}
|
{{ $withVersioning := .Params.withVersioning }}
|
||||||
|
|
||||||
{{ $page := .Site.GetPage (path.Join .Page.Dir "fragments" (printf "%s%s" $name ".md"))}}
|
{{ $page := .Site.GetPage (path.Join .Page.File.Dir "fragments" (printf "%s%s" $name ".md"))}}
|
||||||
{{ $content := $page.Content }}
|
{{ $content := $page.Content }}
|
||||||
{{ if not $withVersioning }}
|
{{ if not $withVersioning }}
|
||||||
{{ $content = (replace $content "[New in this version]" "") }}
|
{{ $content = (replace $content "[New in this version]" "") }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue