+ {{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "image" "alt" (.Get "alt")) }} +
diff --git a/layouts/shortcodes/video.html b/layouts/shortcodes/video.html new file mode 100644 index 0000000..1f18685 --- /dev/null +++ b/layouts/shortcodes/video.html @@ -0,0 +1,13 @@ +{{ $border := false }} +{{ if .Get "border" }} +{{ $border = true }} +{{ end }} + +{{ $hidecaption := false }} +{{ if .Get "hidecaption" }} +{{ $hidecaption = true }} +{{ end }} + ++ {{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "video" "alt" (.Get "alt")) }} +