diff options
Diffstat (limited to 'themes/blowfish/layouts/shortcodes/mdimporter.html')
-rw-r--r-- | themes/blowfish/layouts/shortcodes/mdimporter.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/blowfish/layouts/shortcodes/mdimporter.html b/themes/blowfish/layouts/shortcodes/mdimporter.html new file mode 100644 index 0000000..28b24fe --- /dev/null +++ b/themes/blowfish/layouts/shortcodes/mdimporter.html @@ -0,0 +1,6 @@ +{{ $url := .Get "url"}} +{{ with resources.GetRemote (printf $url) }} +{{ .Content | markdownify }} +{{ else }} +{{ errorf "Mardown Importer Shortcode - Unable to get remote resource" . }} +{{ end }}
\ No newline at end of file |