Skip to content

Commit d892a37

Browse files
committed
fix(shortcode): include read file i18n
1 parent e544e83 commit d892a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
{{ $file := .Get 0 }}
2-
{{ $file | readFile | replaceRE "^---[\\s\\S]+?---" "" | markdownify }}
2+
{{ with .Site.GetPage $file }}{{ .Content | replaceRE "^---[\\s\\S]+?---" "" | markdownify }}{{ end }}

0 commit comments

Comments
 (0)