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

Simplify Jekyll::Renderer#validate_layout #8064

Merged
merged 1 commit into from Apr 1, 2020

Conversation

ashmaroli
Copy link
Member

Summary

Currently, if a rendering document's layout is valid and not nil, layout_source is computed even if the build is not running on debug log level.

Additionally when building with --verbose, Layout source: ... is output for every rendered document placed into a layout. That can be considered noise because when 10 documents use the same layout, outputting Layout source: ... for each of them is repetition.

Finally, when a layout is not from site.source, it is currently assumed to be from the theme, when in reality, it could be from a plugin (like jekyll-redirect-from).


Therefore, instead of checking if a layout comes from site.source or enhance to test if it comes from a theme or plugin, I propose removing that conditional branch entirely.

@ashmaroli ashmaroli requested a review from a team March 20, 2020 14:12
@ashmaroli
Copy link
Member Author

@jekyllbot: merge +fix

@jekyllbot jekyllbot merged commit 784a689 into jekyll:master Apr 1, 2020
jekyllbot added a commit that referenced this pull request Apr 1, 2020
@ashmaroli ashmaroli deleted the simplify-validate-layout branch April 1, 2020 16:20
@jekyll jekyll locked and limited conversation to collaborators Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants