-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Build 404 pages from the theme if they exist #194
Conversation
This change involved breaking up the context generation to create a sub context that can be used for rendering pages not based on a specific Markdown file.
canonical_url = None | ||
|
||
global_context = get_global_context(nav, config) | ||
local_context = global_context.copy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than nest these would it be clearer if code using them calls each separately and combines the two dicts?
Maybe cleaner to have that done at the top level, rather than nested in here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I nearly done this but then forgot.
@d0ugal works and lgtm. |
Thanks! Are you happy with it now @tomchristie? |
Yup, fab! |
Build 404 pages from the theme if they exist
No description provided.