fix: breadcrumb not turning-off when set in config

Fixed breadcrumb showing in "Section List" regardless of "false" setting in config params.
This commit is contained in:
I'M YourOnly.One 2021-09-26 11:04:51 +08:00 committed by GitHub
parent a531e836fa
commit f7fa001617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,9 @@
<main class="main inner" data-sidebar-position="{{ $.Param "sidebarPosition" }}">
<div class="list__main {{ if $.Param "enableSidebar" }}{{ if eq ($.Param "sidebarPosition") "left" }}mr{{ else }}lm{{ end }}{{ else }}lmr{{ end }}">
{{ if $.Param "enableBreadcrumb" }}
{{ partial "body/breadcrumb" . }}
{{ end }}
<header class="list__header">
<h5 class="list__header--title capitalize h5">{{.Title}}</h5>
</header>