-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
@maul-esel's frontmatter defaults work, rebased #2205
Conversation
This is for example possible for layout defaults to take effect.
The Page#path or Post#path can be overriden by by a frontmatter setting. This causes path-based frontmatter default detection to fail. Add test to demonstrate this and fix it.
Before, the bottom-most default set had highest precedence. Instead, now the set with a longer i.e. more specific path has precedence and sets with a type setting have precedence over those without one. In case of equal precedence the bottom-most still wins.
…yll into maul-esel-frontmatter-defaults * 'frontmatter-defaults' of git://github.com/maul-esel/jekyll: move self.type to convertible oops, fix minor indentation quirk document frontmatter defaults precedence adjust frontmatter defaults precedence handling change cucumber feature to test for precedence too fix frontmatter defaults for custom paths more robust cucumber features fix slash handling for paths move cucumber features to own file fix minor docs quirk improve path checking, now using Pathname instead of regex Add site documentation for the new feature add inline code docs improve validation code fix for Ruby 1.8 Add basic cucumber features for frontmatter defaults Retrieve frontmatter defaults when retrieved internally make frontmatter defaults available to liquid add a class `FrontmatterDefaults` for handling of frontmatter defaults Add a method to retrieve type to post, page and draft Conflicts: lib/jekyll.rb lib/jekyll/convertible.rb lib/jekyll/core_ext.rb lib/jekyll/page.rb lib/jekyll/post.rb
The tests are failing because - and this is just a guess - we stopped allowing |
Use `page.description` in the cucumber feature instead. `page.name` isn't overridable anymore.
I've updated the cucumber scenarios to not use |
Thank you!! Given that |
jekyll/jekyll#2205 probably not in github pages yet?
Rebased version of #1527.
/cc @maul-esel