Uh oh!
There was an error while loading. Please reload this page.
Swap layout override priority - #489
Conversation
5fbec2e to
0ad4a44Compareacjh
commented
Dec 22, 2018
I believe that was done to customize the layout for a page. The change still has to support that. |
jamos-tay
commented
Dec 22, 2018
How should it be specified though? I'm worried while this change might be more 'correct' but we end up lose some functionality. If the user wants to customize the page then he should probably not use globs in the site.json |
acjh
commented
Dec 22, 2018
Oh, it's already customizable in |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jamos-tay
commented
Dec 27, 2018
Updated |
| </frontmatter> | ||
| # Uses a layout No newline at end of file | ||
| # Uses a front matter layout No newline at end of file |
There was a problem hiding this comment.
In site.json, no layout is specified.
In the frontmatter, testLayout is specified.
The final output still uses default instead of testLayout.
That doesn't seem right. 😕
There was a problem hiding this comment.
It feels like the default should have the lowest priority.
There was a problem hiding this comment.
My bad, fixed it, there was some issue with the glob layouts
d13ca59 to
e041dc6Comparejamos-tay
commented
Dec 31, 2018
Updated and Rebased |
yamgent
commented
Jan 3, 2019
@jamos-tay The documentation needs to be updated. |
e041dc6 to
eb260bfComparejamos-tay
commented
Jan 8, 2019
Updated and rebased on master |
eb260bf to
77d6483Comparejamos-tay
commented
Jan 14, 2019
Squashed and rebased |
Uh oh!
There was an error while loading. Please reload this page.
jamos-tay
commented
Jan 18, 2019
Updated |
I have a diff when doing file compare for {
"headings": {
- "uses-a-site.json-layout%2C-overriding-front-matter": "Uses a site.json layout, overriding front matter"+ "uses-a-site-json-layout-overriding-front-matter": "Uses a site.json layout, overriding front matter"
},
"title": "Hello World",
"head": "overwriteLayoutHead.md",
"layout": "testLayout",
"src": "testLayoutsOverride.md"
},Want to clarify if the line in the expected file is correct. |
acjh
commented
Jan 21, 2019
I believe expected needs to be updated for #578. |
yamgent
commented
Jan 21, 2019
@nicholaschuayunzhi thanks for spotting the error, my apologies for the error, I didn't re-run the tests when merging this PR. The fix is now available on the master branch, in commit f02c338. |
What is the purpose of this pull request? (put "X" next to an item, remove the rest)
• [X] Other, please explain: Changing behavior of existing feature
Follow up from #467
What is the rationale for this request?
Swap the priority of loading layouts,
site.jsontakes precedence over front matter instead of the other way around.Added test to match.