diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html new file mode 100644 index 0000000..4f8dbfd --- /dev/null +++ b/layouts/shortcodes/figure.html @@ -0,0 +1,16 @@ +
+{{ with .Get "link" }}{{ end -}} + +{{- if .Get "link" }}{{ end }} +{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} +
{{ if isset .Params "title" }} +

{{ .Get "title" }}

{{ end }} +{{ if or (.Get "caption") (.Get "attr") -}} +

+{{- .Get "caption" -}} +{{ with .Get "attrlink" }} {{ end }}{{ .Get "attr" }}{{ if .Get "attrlink"}}{{ end -}} +

+{{ end -}} +
+{{ end -}} +