diff --git a/layouts/shortcodes/paige/icon.html b/layouts/shortcodes/paige/icon.html
index 94ef254f..8ec7d88a 100644
--- a/layouts/shortcodes/paige/icon.html
+++ b/layouts/shortcodes/paige/icon.html
@@ -11,13 +11,13 @@
{{/* The markup below cannot be indented due to nested shortcodes within Markdown. */}}
-{{ with $url }}
+{{- with $url -}}
-{{ end }}
+{{- end -}}
{{ with $title }}{{ . }}{{ end }}
-{{ if $url }}
+{{- if $url -}}
-{{ end }}
+{{- end -}}