diff --git a/layouts/shortcodes/attachedFigure.html b/layouts/shortcodes/attachedFigure.html new file mode 100644 index 0000000..a02f8fa --- /dev/null +++ b/layouts/shortcodes/attachedFigure.html @@ -0,0 +1,11 @@ + +{{ $filename := .Get "src" }} +{{ $image := .Page.Resources.GetMatch (printf "%s" $filename) }} +
+ + {{ with .Get "title" }} +
+ {{ . }} +
+ {{ end }} +
\ No newline at end of file diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html new file mode 100644 index 0000000..8c2ea6d --- /dev/null +++ b/layouts/shortcodes/figure.html @@ -0,0 +1,10 @@ + +{{ $url := .Get "src" }} +
+ + {{ with .Get "title" }} +
+ {{ . }} +
+ {{ end }} +
\ No newline at end of file