Skip to content

Commit d79a400

Browse files
authored
Add shortcode for including files as-is (#412)
1 parent 2c5541e commit d79a400

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layouts/shortcodes/include_raw.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{{ $filename := (path.Join .Page.File.Dir (.Get "file")) }}
2+
{{- (readFile $filename) -}}

0 commit comments

Comments
 (0)