cupper-hugo-theme/themes/infusion/layouts/shortcodes/snippet.html

5 lines
173 B
HTML
Raw Normal View History

2017-08-15 18:47:49 +02:00
{{$file := .Get "file"}}
{{ $contents := (printf "/snippets/%s" $file) | readFile }}
{{ $commented := add "<!-- snippet -->\r\n" $contents }}
{{ $commented | markdownify }}