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

tag/index.md makes pagers disappear for certain folders #61

Open
isacdaavid opened this issue Oct 21, 2016 · 3 comments
Open

tag/index.md makes pagers disappear for certain folders #61

isacdaavid opened this issue Oct 21, 2016 · 3 comments

Comments

@isacdaavid
Copy link

I faced this problem while configuring a custom Urubu website, but here is how you reproduce it using the default project:

  1. Create a top-level folder called log ---I wanted to use that name instead of blog--- and put an index and some posts inside; or just copy from blog
  2. Enable pagers in those posts, add some tags to their front-matters.
  3. Create a top-level tag directory to enable tags, and make sure to drop an index.md in there. I'm simply using:

---
title: Tags
layout: index
order: title

---

Then Urubu (1.2.0) will stop generating pagers for pages inside log

@jandecaluwe
Copy link
Owner

I followed the scenario but I cannot reproduce this issue. I still see pagers as expected.

On a sidenote, ordering directives in the tag folder are ignored; content is ordered according to the content of tag objects.

@isacdaavid
Copy link
Author

I think I managed to debug my way through this issue:

The make_pager() function is returning as soon as it finds a content-less directory in the project navlist object. This could be the /tag/ directory or any other; and ensuing directories won't get processed no matter their contents.

Does that make sense to you? I'll share my trivial fix in a moment...

@isacdaavid
Copy link
Author

I apologize for any potential disturbances. The previous identical request was closed by accident.

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

No branches or pull requests

2 participants