-
Notifications
You must be signed in to change notification settings - Fork 6
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
Pages are not processed recursively #14
Comments
To do this you need to set these: parent = /
url_path = {{ this.parent.url_path }}{{ tag }} and then reference that tag pages as just This will allow you to tag all children of the root page, and have tag pages generated as their siblings. A caution: I'm not sure what will happen if names conflict, but it is surely something to watch out for. The default |
In the example you gave, the links are correctly produced (although I would prefer Pages Tested using Lektor 3.1.2. |
And I have to dig a little further (I will keep you updated), but on my website, using the same configuration as your example, not a single tag page is created (and no error is displayed or raised). |
Four years later… Did I procrastinate? With your advice, no tag page is generated… I set up a repository with a very simple lektor website : https://github.com/paternal/lektor-tags-mwe
Other bugs (or behavior I don't understand):
Everything is done on a debian testing, in a virtualenv, with python 3.10.5 and lektor 3.3.4. |
🎉 I GOT THE CULPRIT ! 🎉 The issue is that with I have witnessed this behavior in your demo project, in my minimum working example, as well as in my real project. |
parent = /
parent = /
, tags are created for pages, but not for sub pages
parent = /
, tags are created for pages, but not for sub pages
🎉 I GOT THE CULPRIT ! (AGAIN) 🎉 Since the beginning, I assumed that pages were processed recursively, while only the children of the parent page (defined with option
|
@paternal Good finds. I think you should check out the discussion on lektor/lektor#445 and see what you think. |
The README says that in the config file,
parent = /
is allowed. However, if I set so (I would like my tags to be located at http://example.com/tag instead of http://example.com/blog/tag):{{ ('/@tag/' ~ t.lower())|url }}
produce the error(KeyError: '/@tag/foo/')
(and page does not build, and tag pages are not created);{{ ('/blog@tag/' ~ t.lower())|url }}
, tag pages are not created either, but blog posts are created, although tag URLs are http://example.com/blog@tag/foo, which are dead link.How can I make lektor-tags work with
parent = /
?The text was updated successfully, but these errors were encountered: