diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index fd785b1c34..bbd9c195a7 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -69,7 +69,7 @@
{{- end }}
{{- if or (ne $outputFormat "html") (not (and $ispublished ($.Scratch.Get "relearnNextPage"))) }}
-
+
{{- else }}
{{- with ($.Scratch.Get "relearnNextPage") }}
@@ -78,7 +78,7 @@
{{- if and (eq .RelPermalink .Site.Home.RelPermalink) (eq $outputFormat "html") }}
-
+
{{- else if or (ne $outputFormat "html") (eq .Page.Kind "taxonomy") (eq .Page.Kind "term") (not (and $ispublished ($.Scratch.Get "relearnPrevPage"))) }}
{{- with .Site.Home }}