Skip to content

Commit

Permalink
fix: ancestors cache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 4, 2024
1 parent ea36ca6 commit 493af25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layouts/partials/hb/modules/breadcrumb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<div class="container-fluid px-0 mb-4">
<nav aria-label="breadcrumb">
<ol class="hb-breadcrumb breadcrumb">
{{- partialCached "hb/modules/breadcrumb/ancestors" .Ancestors .Ancestors }}
{{- if .IsPage }}
{{ partial "hb/modules/breadcrumb/ancestors" .Ancestors }}
{{- else }}
{{ partialCached "hb/modules/breadcrumb/ancestors" .Ancestors .CurrentSection }}
{{- end }}
<li class="breadcrumb-item active" aria-current="page">
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
{{- with .Params.nav_icon }}
Expand Down

0 comments on commit 493af25

Please sign in to comment.