diff --git a/src/layouts/partials/social.html b/src/layouts/partials/social.html
index 1423d2318..176f6e7bd 100644
--- a/src/layouts/partials/social.html
+++ b/src/layouts/partials/social.html
@@ -17,9 +17,9 @@
{{- /* Manually add `og:image`'s dimensions since Hugo's internal shortcode doesn't do it */ -}}
{{- $socialImage := path.Join "src/static" (index $.Site.Params.images 0) -}}
-{{- with imageConfig $socialImage }}
+{{- with imageConfig $socialImage -}}
{{- end }}
-{{- template "_internal/schema.html" . }}
+{{ template "_internal/schema.html" . -}}