Skip to content

Commit 5772f48

Browse files
Fix 2 potencial bugs in docs (#1878)
1 parent c8978b3 commit 5772f48

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

linkerd.io/layouts/docs/_docs-nav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<a href="{{ .RelPermalink }}">
5555
{{ .LinkTitle }}
5656
</a>
57-
{{ if and .IsSection .RegularPages }}
57+
{{ if and .IsSection .Pages }}
5858
<input class="toggle__input" type="checkbox" id="toggle-{{ .File.UniqueID }}" {{ if $selected }}checked="checked"{{ end }}>
5959
<label class="toggle__label" for="toggle-{{ .File.UniqueID }}">
6060
{{ partial "components/icon" (dict "name" "chevron-right" "variant" "secondary") }}

linkerd.io/layouts/shortcodes/docs/section-toc.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{- with .Page.Pages }}
1+
{{- $pages := where .Page.Pages "Params.unlisted" "ne" true }}
2+
{{- with $pages }}
23
<ul>
34
{{- range . }}
45
<li>

0 commit comments

Comments
 (0)