Add shortcode to read files

This commit is contained in:
Jake Howard 2019-09-21 16:36:37 +01:00
parent 21ee97eebf
commit 1d1010b212
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 9 additions and 1 deletions

View file

@ -1 +1,5 @@
# Snippets
---
title: Snippets
---
{{% read_file "README.md" %}}

View file

@ -0,0 +1,4 @@
{{ $file := resources.Get (.Get 0) }}
{{ $file.Content | safeHTML }}