Use the code shortcode for the breadcrumb example

This commit is contained in:
Bjørn Erik Pedersen
2017-11-22 16:13:21 +01:00
parent 16be43e7d7
commit c8c9601a8c
+2 -2
View File
@@ -47,7 +47,7 @@ It is currently not possible to add a specific layout for one of the sub-section
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:
```html
{{< code file="layouts/partials/breadcrumb.html" download="breadcrumb.html" >}}
<ul>
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
</ul>
@@ -65,7 +65,7 @@ With the available [section variables and methods](#section-page-variables-and-m
{{ end }}
</li>
{{ end }}
```
{{< /code >}}
## Section Page Variables and Methods