Skip to content

Commit 8df2ab6

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

File tree

5 files changed

+8
-38
lines changed

5 files changed

+8
-38
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<nav aria-label="breadcrumb" class="breadcrumb" data-grid="wide">
22
<ol class="breadcrumb">
3-
<button class="sidebar__mobile__toggle" aria-label="sidebar__mobile__toggle" aria-expanded="false">{{ partial "lucide" (dict "context" . "icon" "align-justify") }}</button>
43
<li><a href="/" alt="NGINX Docs Home">Home</a></li>
54
{{- define "breadcrumb" -}}
65
{{- with .Parent -}}
@@ -10,7 +9,7 @@
109
{{- end -}}
1110
{{- if not .IsHome -}}
1211
{{- template "breadcrumb" . -}}
13-
{{- .Title -}}
12+
{{- .LinkTitle -}}
13+
{{- end -}}
1414
</ol>
1515
</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)