Skip to content

Commit

Permalink
Replace deprecated Page.Dir with Page.File.Dir (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 authored Mar 29, 2022
1 parent 46f9879 commit 5a54ca6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
- name: "➕ Setup Hugo"
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
with:
hugo-version: '0.85.0'
hugo-version: '0.93.3'
extended: true
- name: "📥 Source checkout"
uses: actions/checkout@v2
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
- name: "➕ Setup Hugo"
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
with:
hugo-version: '0.85.0'
hugo-version: '0.93.3'
extended: true
- name: "📥 Source checkout"
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
<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
https://hub.docker.com/r/klakegg/hugo/. (The "extended edition" is required
Expand Down
4 changes: 2 additions & 2 deletions layouts/shortcodes/cs-module.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

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

{{ $page := .Site.GetPage (path.Join .Page.Dir "modules" (printf "%s%s" $name ".md"))}}
{{ $page.Content }}
{{ $page := .Site.GetPage (path.Join .Page.File.Dir "modules" (printf "%s%s" $name ".md"))}}
{{ $page.Content }}
2 changes: 1 addition & 1 deletion layouts/shortcodes/rver-fragment.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{ $name := .Params.name }}
{{ $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 }}
{{ if not $withVersioning }}
{{ $content = (replace $content "[New in this version]" "") }}
Expand Down

0 comments on commit 5a54ca6

Please sign in to comment.