update the theme
This commit is contained in:
parent
b1a7697b03
commit
58e2c9ae87
166 changed files with 326580 additions and 582 deletions
8
themes/blowfish/layouts/shortcodes/codeimporter.html
Normal file
8
themes/blowfish/layouts/shortcodes/codeimporter.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{ $url := .Get "url" }}
|
||||
{{ $type := .Get "type" }}
|
||||
{{ with resources.GetRemote (urls.Parse $url) }}
|
||||
{{ $codeBlock := printf "```%s\n%s\n```" $type .Content }}
|
||||
{{ $codeBlock | markdownify }}
|
||||
{{ else }}
|
||||
{{ errorf "Code Importer Shortcode - Unable to get remote resource" . }}
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue