cupper-hugo-theme/layouts/shortcodes/snippet.html
2019-01-31 18:19:20 -06:00

5 lines
173 B
HTML

{{$file := .Get "file"}}
{{ $contents := (printf "/snippets/%s" $file) | readFile }}
{{ $commented := add "<!-- snippet -->\r\n" $contents }}
{{ $commented | markdownify }}