Skip to content

Commit

Permalink
Breadcrumbs now use LinkTitle (#1501)
Browse files Browse the repository at this point in the history
* Breadcrumbs now use LinkTitle instead of Title
  • Loading branch information
rrelledge authored Aug 26, 2021
1 parent 478d0ca commit 4a5bb04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/flex/body-beforecontent.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<section class="page">
<div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
<span class="links">
{{ template "breadcrumb" dict "page" . "value" .Title }}
{{ template "breadcrumb" dict "page" . "value" .LinkTitle }}
</span>
</div>

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/original/body-beforecontent.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h1>{{.Title}}</h1>

{{define "breadcrumb"}}
{{ if .page.Parent}}
{{$value := (printf "<a href='%s'>%s</a> <span>></span> %s" .page.Parent.RelPermalink .page.Parent.Title .value)}}
{{$value := (printf "<a href='%s'>%s</a> <span>></span> %s" .page.Parent.RelPermalink .page.Parent.LinkTitle .value)}}
{{ template "breadcrumb" dict "page" .page.Parent "value" $value }}
{{else}}
{{.value|safeHTML}}
Expand Down

0 comments on commit 4a5bb04

Please sign in to comment.