Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 12, 2023
1 parent dcda21a commit 80783c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/filters/items-from-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ const smart = require('./smart.js')
*/
module.exports = (eleventyNavigation, pageUrl = false, options = {}) => {
const items = []
console.log('=======')
console.log('pageUrl', pageUrl)

eleventyNavigation.forEach(item => {
console.log('item.url', item.url)

const isCurrentPage = pageUrl && item.url === pageUrl
const navItem = {
current: isCurrentPage,
Expand Down

0 comments on commit 80783c5

Please sign in to comment.