Skip to content

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

Open
flyinggrizzly wants to merge 1 commit intopoole:masterfrom
flyinggrizzly:master
Open

update liquid in sidebar.html to avoid mutliple entries for paginated resources#179
flyinggrizzly wants to merge 1 commit intopoole:masterfrom
flyinggrizzly:master

Conversation

@flyinggrizzly
Copy link
Copy Markdown

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
Copy Markdown

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