Skip to content

Commit

Permalink
feat: add support for icons (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Dec 9, 2023
1 parent ee3898d commit acdc831
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion layouts/partials/hb/modules/breadcrumb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@
{{- range .Ancestors.Reverse }}
<li class="breadcrumb-item">
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
{{- with .Params.nav_icon }}
{{- partial "icons/icon" (merge . (dict "color" "" "className" "me-1")) }}
{{- end }}
{{- cond .IsHome (i18n "hb_breadcrumb_home") .Title -}}
</a>
</li>
{{- end -}}
<li class="breadcrumb-item active" aria-current="page">
<a href="{{ .RelPermalink }}" title="{{ .Title }}">{{- .Title -}}</a>
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
{{- with .Params.nav_icon }}
{{- partial "icons/icon" (merge . (dict "color" "" "className" "me-1")) }}
{{- end }}
{{- .Title -}}
</a>
</li>
</ol>
</nav>
Expand Down

0 comments on commit acdc831

Please sign in to comment.