✨ External Markdown Importer Shortcode

This commit is contained in:
Nuno Coração committed 2023-12-14 12:37:23 +00:00
1 parent 88731e553b
commit 2fc94cb599
2 files changed
+31

No files matched your search

+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 }}