Skip to content

Commit e5e6956

Browse files
committed
Content: Replace usages of article .Title with .LinkTitle
1 parent 3b0f1b5 commit e5e6956

File tree

5 files changed

+8
-37
lines changed

5 files changed

+8
-37
lines changed

exampleSite/content/test-product/commerical/commercial-feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Commercial Feature
3+
linkTitle: Feature
34
description: Commercial Feature
45
nd-commercial: true
56
---

exampleSite/content/test-product/commerical/partial-commercial-feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Partial Commercial Feature
3+
linkTitle: Feature
34
description: Partial Commercial Feature
45
nd-commercial-partial: true
56
---

layouts/partials/breadcrumb.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{- end -}}
1111
{{- if not .IsHome -}}
1212
{{- template "breadcrumb" . -}}
13-
{{- .Title -}}
13+
{{- .LinkTitle -}}
14+
{{- end -}}
1415
</ol>
1516
</nav>
16-
{{ end }}

layouts/partials/sidebar-list-pages.html

Lines changed: 0 additions & 31 deletions
This file was deleted.

layouts/partials/sidebar-list.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
aria-expanded="{{ $shouldExpand }}"
2323
aria-controls="{{ $sectionID }}"
2424
>
25-
<span class="sidebar__toggle-text">{{ $p.Title }}</span>
25+
<span class="sidebar__toggle-text">{{ $p.LinkTitle }}</span>
2626
<span class="sidebar__chevron {{ if $shouldExpand }}sidebar__chevron--open{{ end }}">
2727
{{ partial "lucide" (dict "context" . "icon" "chevron-right") }}
2828
</span>
@@ -50,7 +50,7 @@
5050
"firstSection" $p
5151
"currentUrl" $currentUrl
5252
"currentPage" $currentPage
53-
"idPrefix" (printf "%s%s-" $idPrefix (urlize $p.Title))
53+
"idPrefix" (printf "%s%s-" $idPrefix (urlize $p.LinkTitle))
5454
) }}
5555
</div>
5656
</li>
@@ -66,7 +66,7 @@
6666
aria-controls="{{ $tocID }}"
6767
id="{{ $linkID }}"
6868
>
69-
<span>{{ $p.Title }} {{ partial "commercial-feature.html" $p }}</span>
69+
<span>{{ $p.LinkTitle }} {{ partial "commercial-feature.html" $p }}</span>
7070
<span class="sidebar__chevron sidebar__chevron--open">
7171
{{ partial "lucide" (dict "context" . "icon" "chevron-right") }}
7272
</span>
@@ -87,7 +87,7 @@
8787
class="sidebar__link {{ if $onPage }}sidebar__link--current{{ end }}"
8888
{{ if $onPage }}aria-current="page"{{ end }}
8989
>
90-
<span>{{ $p.Title }} {{ partial "commercial-feature.html" $p }}</span>
90+
<span>{{ $p.LinkTitle }} {{ partial "commercial-feature.html" $p }}</span>
9191
</a>
9292
{{ end }}
9393
</li>

0 commit comments

Comments
 (0)