cupper-hugo-theme/themes/infusion/layouts/shortcodes/snippet.html
2017-08-15 17:47:49 +01:00

5 lines
173 B
HTML

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