Skip to content

Commit 493af25

Browse files
committed
fix: ancestors cache issue
1 parent ea36ca6 commit 493af25

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

layouts/partials/hb/modules/breadcrumb/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
<div class="container-fluid px-0 mb-4">
33
<nav aria-label="breadcrumb">
44
<ol class="hb-breadcrumb breadcrumb">
5-
{{- partialCached "hb/modules/breadcrumb/ancestors" .Ancestors .Ancestors }}
5+
{{- if .IsPage }}
6+
{{ partial "hb/modules/breadcrumb/ancestors" .Ancestors }}
7+
{{- else }}
8+
{{ partialCached "hb/modules/breadcrumb/ancestors" .Ancestors .CurrentSection }}
9+
{{- end }}
610
<li class="breadcrumb-item active" aria-current="page">
711
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
812
{{- with .Params.nav_icon }}

0 commit comments

Comments
 (0)