mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{{ $url := .Get "url" }}
|
{{ $url := .Get "url" }}
|
||||||
{{ $type := .Get "type" }}
|
{{ $type := .Get "type" }}
|
||||||
{{ with resources.GetRemote (printf $url) }}
|
{{ with resources.GetRemote (urls.Parse $url) }}
|
||||||
{{ $codeBlock := printf "```%s\n%s\n```" $type .Content }}
|
{{ $codeBlock := printf "```%s\n%s\n```" $type .Content }}
|
||||||
{{ $codeBlock | markdownify }}
|
{{ $codeBlock | markdownify }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{{ $url := .Get "url"}}
|
{{ $url := .Get "url"}}
|
||||||
{{ with resources.GetRemote (printf $url) }}
|
{{ with resources.GetRemote (urls.Parse $url) }}
|
||||||
{{ .Content | markdownify }}
|
{{ .Content | markdownify }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ errorf "Mardown Importer Shortcode - Unable to get remote resource" . }}
|
{{ errorf "Mardown Importer Shortcode - Unable to get remote resource" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user