first
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
const EleventyNavigationPlugin = require("../");
|
||||
|
||||
module.exports = function(eleventyConfig) {
|
||||
eleventyConfig.addPlugin(EleventyNavigationPlugin);
|
||||
|
||||
return {
|
||||
pathPrefix: "/sdljfkaldsjlfka/"
|
||||
}
|
||||
};
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
eleventyNavigation:
|
||||
key: Bats
|
||||
parent: Mammals
|
||||
---
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
eleventyNavigation:
|
||||
key: Humans
|
||||
parent: Mammals
|
||||
---
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
<h2>Full List</h2>
|
||||
|
||||
{{ collections.all | eleventyNavigation | dump(2) }}
|
||||
|
||||
{{ collections.all | eleventyNavigation | eleventyNavigationToHtml }}
|
||||
|
||||
<h2>Breadcrumb for Bats</h2>
|
||||
|
||||
{{
|
||||
collections.all
|
||||
| eleventyNavigationBreadcrumb: "Bats"
|
||||
| dump(2)
|
||||
}}
|
||||
|
||||
{{
|
||||
collections.all
|
||||
| eleventyNavigationBreadcrumb: "Bats"
|
||||
| eleventyNavigationToHtml
|
||||
}}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
---
|
||||
eleventyNavigation:
|
||||
key: Mammals
|
||||
---
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
---
|
||||
eleventyNavigation:
|
||||
---
|
||||
This page has no key.
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
---
|
||||
---
|
||||
This page has no navigation.
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<h2>Full List</h2>
|
||||
|
||||
{{ collections.all | eleventyNavigation | dump(2) | safe }}
|
||||
|
||||
{{ collections.all | eleventyNavigation | eleventyNavigationToHtml | safe }}
|
||||
|
||||
<h2>Breadcrumb for Bats</h2>
|
||||
|
||||
{{ collections.all | eleventyNavigationBreadcrumb("Bats") | dump(2) | safe }}
|
||||
|
||||
{{ collections.all | eleventyNavigationBreadcrumb("Bats") | eleventyNavigationToHtml | safe }}
|
||||
Reference in New Issue
Block a user