diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6b353cbdcb..920c2718aa 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -40,12 +40,15 @@ {{ end }} - {{with ($.Scratch.Get "prevPage")}} - - {{end}} - {{with ($.Scratch.Get "nextPage")}} - - {{end}} + {{$showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev))}} + {{if $showPrevNext}} + {{with ($.Scratch.Get "prevPage")}} + + {{end}} + {{with ($.Scratch.Get "nextPage")}} + + {{end}} + {{end}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 79f6247d94..ef92973605 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -66,7 +66,12 @@ {{ end }} - {{ template "breadcrumb" dict "page" . "value" .Title }} + {{$showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb))}} + {{if $showBreadcrumb}} + {{ template "breadcrumb" dict "page" . "value" .Title }} + {{ else }} + {{ .Title }} + {{ end }} {{ if $toc }}