diff --git a/layouts/shortcodes/fig.html b/layouts/shortcodes/fig.html
index 31a3c6f..5f4d565 100644
--- a/layouts/shortcodes/fig.html
+++ b/layouts/shortcodes/fig.html
@@ -24,7 +24,7 @@
{{ else if .Get "caption" }}alt="{{ .Get "caption" | markdownify | plainify }}"
{{ end }}
{{ with .Get "align" }}align="{{ . }}"{{ end }}
- width="{{ .Get "width" | default "100%"}}"
+ {{ with .Get "width" }}width="{{ . }}"{{ end }}
{{ with .Get "height" }}width="{{ . }}"{{ end }} />
{{ if .Get "link"}}{{ end }}