diff --git a/layouts/partials/plugin/image.html b/layouts/partials/plugin/image.html
index b0beed78c..6660db841 100644
--- a/layouts/partials/plugin/image.html
+++ b/layouts/partials/plugin/image.html
@@ -31,6 +31,7 @@
{{- if .Linked -}}
+{{- end -}}
+{{- if .Linked -}}
-{{- else -}}
-
{{- end -}}