Update the breadcrumb navigation example (#2025)

This commit is contained in:
Razon Yang
2023-03-25 21:39:33 +08:00
committed by GitHub
parent 6ebb37b1b2
commit 6148be2dec
+1 -3
View File
@@ -63,8 +63,7 @@ If you need a specific template for a sub-section, you need to adjust either the
With the available [section variables and methods](#section-page-variables-and-methods) you can build powerful navigation. One common example would be a partial to show Breadcrumb navigation:
{{< code file="layouts/partials/breadcrumb.html" download="breadcrumb.html" >}}
<ol class="nav navbar-nav">
<ul>
<ul class="nav navbar-nav">
{{- range .Ancestors.Reverse }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{- end }}
@@ -72,7 +71,6 @@ With the available [section variables and methods](#section-page-variables-and-m
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
</ul>
</ol>
{{< /code >}}
## Section Page Variables and Methods