From 2fd986166e139a7795d49535c5276c0fe633dbe9 Mon Sep 17 00:00:00 2001 From: will wade Date: Wed, 14 Mar 2018 00:28:37 +0000 Subject: [PATCH] adding .Site.Params.disableBreadcrumb NB: Still shows heading of page. Otherwise looks a bit ugly --- layouts/partials/header.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index de16c932e8..503e196d1a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -62,11 +62,15 @@ - {{ if $toc }} - - {{ end }} + {{ if $toc }} + + {{ end }} - {{ template "breadcrumb" dict "page" . "value" .Title }} + {{if ne .Site.Params.disableBreadcrumb true}} + {{ template "breadcrumb" dict "page" . "value" .Title }} + {{ else }} + {{ .Title }} + {{ end }} {{ if $toc }}