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

5 lines
173 B
HTML
Raw Normal View History

2017-11-02 16:39:45 +01:00
{{$file := .Get "file"}}
{{ $contents := (printf "/snippets/%s" $file) | readFile }}
{{ $commented := add "<!-- snippet -->\r\n" $contents }}
{{ $commented | markdownify }}