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
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue