-
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
page.name for ArchivePage is documented & used, but not available #50
Comments
I agree it's surprising that the tag archive is created by |
I see that Untangling this might need a refactoring of staticsite, introducing a clear division between populating the interconnected page structure and populating page metadata. Such a refactoring would be a good thing to do, not just for this issue |
Such a refactoring has now been done in the |
In
example/demo/content/tags.taxonomy
the template title & description of the archive usepage.name
and the refdoc documents its existence, but it seems to have disappeared at some point (I am at least reasonably sure it existed last year).Adding to
ArchivePage
instaticsite/features/syndication.py
(I would have kinda expected it to be intaxonomy.py
) ato_dict
method "stolen" from the CategoryPage andself.name = self.created_from.to_dict().get("name")
to the constructor solves this small problem, but I fully expect there to be a better/cleaner way.Related: I see that
lib/blog.html
template usespage.created_from.…
, so perhaps that should be used in the templates instead ofpage.name
, but it isn't documented.The text was updated successfully, but these errors were encountered: