diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 354fbd9de13e3e51be63af429fa6aee2238cc50a..dbedee0d51f2b2d4d471a782bb3d07b585fa8228 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -2,12 +2,12 @@
   <div>
     &copy; {{ $.Site.Params.Copyright }} {{ now.Format "2006"}}
 
-    {{ with $.Site.Params.License }}
+    {{ with $.Site.Params.License -}}
     &middot; <a href="{{ $.Site.Params.licenseURL }}" target="_blank">{{ . | safeHTML }}</a>
-    {{end}}
+    {{- end }}
 
-    {{ with $.Site.Params.BuiltWith }}
+    {{ with $.Site.Params.BuiltWith -}}
     &middot; Build with <a href="https://gohugo.io/" target="_blank">Hugo</a> & <a href="https://themes.gohugo.io/soho/" target="_blank">Soho</a> theme
-    {{end}}
+    {{- end }}
   </div>
 </footer>