Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update liquid in sidebar.html to avoid mutliple entries for paginated resources #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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