diff --git a/layouts/partials/nextprev.html b/layouts/partials/nextprev.html
index 8514b9b..3cf66b0 100644
--- a/layouts/partials/nextprev.html
+++ b/layouts/partials/nextprev.html
@@ -1,9 +1,10 @@
- {{ if or .Next .Prev }}
- {{- with .Prev }}
- Previous:
{{.Title}}
- {{ end }}
- {{- with .Next }}
- Next:
{{.Title}}
- {{ end }}
-
- {{ end }}
+{{ if or .Next .Prev -}}
+
+{{- with .Prev }}
+Previous:
{{.Title}}
+{{ end -}}
+{{- with .Next -}}
+Next:
{{.Title}}
+{{ end -}}
+
+{{ end -}}