mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
This commit is contained in:
parent
0a91156191
commit
e8dfdfe528
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{{ $url := .Get "url" }}
|
||||
{{ $type := .Get "type" }}
|
||||
{{ with resources.GetRemote (printf $url) }}
|
||||
{{ with resources.GetRemote (urls.Parse $url) }}
|
||||
{{ $codeBlock := printf "```%s\n%s\n```" $type .Content }}
|
||||
{{ $codeBlock | markdownify }}
|
||||
{{ else }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ $url := .Get "url"}}
|
||||
{{ with resources.GetRemote (printf $url) }}
|
||||
{{ with resources.GetRemote (urls.Parse $url) }}
|
||||
{{ .Content | markdownify }}
|
||||
{{ else }}
|
||||
{{ errorf "Mardown Importer Shortcode - Unable to get remote resource" . }}
|
||||
|
|
Loading…
Reference in a new issue