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

Ensure page.url is defined before dereferncing it #86

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

lancechentw
Copy link
Contributor

When a post has permalink set to false, though no output file is
generated, the file is still processed with the url property set to
false. Thus, the expression in base.njk testing the url property must
ensure page.url is defined in advance.

When a post has `permalink` set to false, though no output file is
generated, the file is still processed with the `url` property set to
false. Thus, the expression in base.njk testing the `url` property must
ensure page.url is defined in advance.
Copy link
Collaborator

@cramforce cramforce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@cramforce cramforce merged commit 0aa0081 into google:main Jun 23, 2021
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

Successfully merging this pull request may close these issues.

2 participants