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 1/2] 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 }} From f7fa00161769239b5eb4d836077cb66bb7d6aa44 Mon Sep 17 00:00:00 2001 From: "I'M YourOnly.One" <1079205+techmagus@users.noreply.github.com> Date: Sun, 26 Sep 2021 11:04:51 +0800 Subject: [PATCH 2/2] fix: breadcrumb not turning-off when set in config Fixed breadcrumb showing in "Section List" regardless of "false" setting in config params. --- layouts/_default/list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f154fd9..d5bf6e2 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,9 @@
- {{ partial "body/breadcrumb" . }} + {{ if $.Param "enableBreadcrumb" }} + {{ partial "body/breadcrumb" . }} + {{ end }}
{{.Title}}
@@ -30,4 +32,4 @@ {{ partial "script/sidebar-script" . }} {{ partial "script/list-script" . }} -{{ end }} \ No newline at end of file +{{ end }}