mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 06:55:43 -06:00
07d1396986
- updated exampleSite.
8 lines
281 B
HTML
8 lines
281 B
HTML
{{ $url := .Get "url" }}
|
|
{{ $type := .Get "type" }}
|
|
{{ with resources.GetRemote (printf $url) }}
|
|
{{ $codeBlock := printf "```%s\n%s\n```" $type .Content }}
|
|
{{ $codeBlock | markdownify }}
|
|
{{ else }}
|
|
{{ errorf "Code Importer Shortcode - Unable to get remote resource" . }}
|
|
{{ end }}
|