Initial commit.
This commit is contained in:
6
themes/blowfish/layouts/shortcodes/mdimporter.html
Normal file
6
themes/blowfish/layouts/shortcodes/mdimporter.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{ $url := .Get "url"}}
|
||||
{{ with resources.GetRemote (urls.Parse $url) }}
|
||||
{{ .Content | markdownify }}
|
||||
{{ else }}
|
||||
{{ errorf "Mardown Importer Shortcode - Unable to get remote resource" . }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user