Use the code shortcode for the breadcrumb example

This commit is contained in:
Bjørn Erik Pedersen committed 2017-11-22 16:13:21 +01:00
1 parent 16be43e7d7
commit c8c9601a8c
1 file changed
+2 -2
+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: 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> <ul>
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }} {{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
</ul> </ul>
@@ -65,7 +65,7 @@ With the available [section variables and methods](#section-page-variables-and-m
{{ end }} {{ end }}
</li> </li>
{{ end }} {{ end }}
``` {{< /code >}}
## Section Page Variables and Methods ## Section Page Variables and Methods