We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e544e83 commit d892a37Copy full SHA for d892a37
docs/layouts/shortcodes/include.html
@@ -1,2 +1,2 @@
1
{{ $file := .Get 0 }}
2
-{{ $file | readFile | replaceRE "^---[\\s\\S]+?---" "" | markdownify }}
+{{ with .Site.GetPage $file }}{{ .Content | replaceRE "^---[\\s\\S]+?---" "" | markdownify }}{{ end }}
0 commit comments