diff --git a/docs/layouts/shortcodes/include.html b/docs/layouts/shortcodes/include.html index cd4a45f577..9d05d14011 100644 --- a/docs/layouts/shortcodes/include.html +++ b/docs/layouts/shortcodes/include.html @@ -1,2 +1,2 @@ {{ $file := .Get 0 }} -{{ $file | readFile | replaceRE "^---[\\s\\S]+?---" "" | markdownify }} +{{ with .Site.GetPage $file }}{{ .Content | replaceRE "^---[\\s\\S]+?---" "" | markdownify }}{{ end }}