Skip to content

Commit

Permalink
fix(shortcode): include read file i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Nov 20, 2023
1 parent e544e83 commit d892a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/layouts/shortcodes/include.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{ $file := .Get 0 }}
{{ $file | readFile | replaceRE "^---[\\s\\S]+?---" "" | markdownify }}
{{ with .Site.GetPage $file }}{{ .Content | replaceRE "^---[\\s\\S]+?---" "" | markdownify }}{{ end }}

0 comments on commit d892a37

Please sign in to comment.