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
request: exclude some files from pagination #10
Comments
Yeah. That's something I want to do. This does not just affect pagination but general items that should not be included by children. This would also be useful for allowing pages to be generated but not appear to be discovered. Right now you can set a page to Need a name for this key. Maybe |
How about this way? [pagination]
include_key = _reachable or [pagination]
exclude_key = _no_paging |
@item4 that would not even be necessary because the pagination would exclude this automatically. The pagination is based on the children and I want to be able to exclude things from children (which is what |
Maybe |
Secondly however, yes, there probably also needs to be a way to let the pagination work on other queries than just the normal children of the page. |
So basically to give this more context I think the problem is that right now lektor assumes a bit that you have something like a blog under a certain path if you also have other pages on the same level that follow a different model. So what you probably want to have is the ability to set the pagination to only consider a certain model. Maybe something like this: [pagination]
items = this.children.filter(F._model == 'blog-post') |
|
|
This is implemented now. |
If I have these(see below) structure and add sitemap with this guide, my list must include
sitemap.xml
.content/contents.lr
models/blog.ini
How can I pop
sitemap.xml
or some files (like keybase proof) from pagination? (Currently I make simple sitemap build package to avoid this problem)The text was updated successfully, but these errors were encountered: