External Markdown Importer Shortcode

This commit is contained in:
Nuno Coração
2023-12-14 12:37:23 +00:00
parent 88731e553b
commit 2fc94cb599
2 changed files with 31 additions and 0 deletions
+6
View File
@@ -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 }}