@11ty/eleventy-navigation
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -69,5 +69,5 @@ const DepGraph = require("dependency-graph").DepGraph; | ||
function getUrlFilter(eleventyConfig) { | ||
// First available in Eleventy 2.0.0-canary.15 | ||
// Short code path if pathPrefix is empty or the default | ||
if(eleventyConfig.pathPrefix !== undefined && (eleventyConfig.pathPrefix === "/" || eleventyConfig.pathPrefix === "")) { | ||
// eleventyConfig.pathPrefix was first available in Eleventy 2.0.0-canary.15 | ||
// And in Eleventy 2.0.0-canary.15 we recommend the a built-in transform for pathPrefix | ||
if(eleventyConfig.pathPrefix !== undefined) { | ||
return function(url) { | ||
@@ -74,0 +74,0 @@ return url; |
{ | ||
"name": "@11ty/eleventy-navigation", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
18445