Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: breadcrumb not turning-off when in term and section list #450

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}">
{{ partial "body/breadcrumb" . }}
{{ if $.Param "enableBreadcrumb" }}
{{ partial "body/breadcrumb" . }}
{{ end }}
<header class="list__header">
<h5 class="list__header--title capitalize h5">{{.Title}}</h5>
</header>
Expand Down Expand Up @@ -30,4 +32,4 @@ <h5 class="list__header--title capitalize h5">{{.Title}}</h5>

{{ partial "script/sidebar-script" . }}
{{ partial "script/list-script" . }}
{{ end }}
{{ end }}
6 changes: 4 additions & 2 deletions layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}">
{{ partial "body/breadcrumb" . }}
{{ if $.Param "enableBreadcrumb" }}
{{ partial "body/breadcrumb" . }}
{{ end }}
<header class="list__header">
<h5 class="list__header--title capitalize h5">{{ .Title }}</h5>
</header>
Expand All @@ -29,4 +31,4 @@ <h5 class="list__header--title capitalize h5">{{ .Title }}</h5>

{{ partial "script/sidebar-script" . }}
{{ partial "script/taxo-script" . }}
{{ end }}
{{ end }}