Skip to content

Conversation

flyinggrizzly
Copy link

Previously the template would generate multiple sidebar links to the same section if that section used layout: page and was paginated (i.e. blogs).

Liquid now checks if the url of the node it is parsing contains 'page*', and if so, skips it. It will now only pick up the index.html files with layout: page

…es using layout: page (i.e. blog now only appears once). Uses node.url to check
@agude
Copy link

agude commented Nov 13, 2016

I just ran into this issue! Thanks for the PR, it let me fix it on my site.

@flyinggrizzly flyinggrizzly changed the title update liquid in sidebar.html update liquid in sidebar.html to avoid mutliple entries for paginated resources Aug 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants