From 9e1704c71f6c9d2bd4ea5170e5edae9b21917161 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Thu, 20 Jan 2022 21:37:57 +0000 Subject: [PATCH] feat: add breadcrumb to all pages With `show_breadcrumb: true` in front matter --- wowchemy/layouts/_default/baseof.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wowchemy/layouts/_default/baseof.html b/wowchemy/layouts/_default/baseof.html index 7f66c05f..501ad5bd 100644 --- a/wowchemy/layouts/_default/baseof.html +++ b/wowchemy/layouts/_default/baseof.html @@ -35,6 +35,16 @@
+ {{/* Breadcrumb */}} + {{/* Don't apply to Book layout as that has different breadcrumb placement. */}} + {{ if .Params.show_breadcrumb | and (ne .Type "book") }} + + {{ $class := cond .IsSection "universal-wrapper" "article-container" }} +
+ {{ partial "components/breadcrumb" . }} +
+ {{ end }} + {{ block "main" . }}{{ end }}