From a531e836fa7f40bcbc9f94c86765659226b5b053 Mon Sep 17 00:00:00 2001 From: "I'M YourOnly.One" <1079205+techmagus@users.noreply.github.com> Date: Sun, 26 Sep 2021 10:51:09 +0800 Subject: [PATCH] fix: breadcrumb not turning-off when in term list When breadcrumb is turned-off in config file, it remains available in `/categories/{term}/` and `/tags/{term}/ ` list view. --- layouts/_default/taxonomy.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 583e7eb..84d241f 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -2,7 +2,9 @@
- {{ partial "body/breadcrumb" . }} + {{ if $.Param "enableBreadcrumb" }} + {{ partial "body/breadcrumb" . }} + {{ end }}
{{ .Title }}
@@ -29,4 +31,4 @@ {{ partial "script/sidebar-script" . }} {{ partial "script/taxo-script" . }} -{{ end }} \ No newline at end of file +{{ end }}