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