diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html
index 907d2cb..956e8ad 100644
--- a/layouts/shortcodes/figure.html
+++ b/layouts/shortcodes/figure.html
@@ -1,5 +1,6 @@
-{{ $type := .Get "type" }}
+{{ $type := .Get "type" | default "normal" }}
+
{{ if not (eq $type "margin") }}
{{ if eq $type "full" }}
{{ end }}