-
Notifications
You must be signed in to change notification settings - Fork 141
Swap layout override priority #489
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
|
|
||
| <meta charset="utf-8"> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <title>Hello World</title> | ||
| <link rel="stylesheet" href="markbind\css\bootstrap.min.css"> | ||
| <link rel="stylesheet" href="markbind\css\bootstrap-vue.min.css"> | ||
| <link rel="stylesheet" href="markbind\css\font-awesome.min.css" > | ||
| <link rel="stylesheet" href="markbind\css\bootstrap-glyphicons.min.css" > | ||
| <link rel="stylesheet" href="markbind\css\github.min.css"> | ||
| <link rel="stylesheet" href="markbind\css\markbind.css"> | ||
| <link rel="stylesheet" href="markbind\layouts\testLayout\styles.css"> | ||
|
|
||
| <script src="/test_site/headFiles/overwriteLayoutScript.js"></script> | ||
| <link rel="icon" href="/test_site/favicon.png"> | ||
| </head> | ||
| <body> | ||
| <div id="app"> | ||
| <div id="flex-body"> | ||
| <div id="site-nav"> | ||
| <ul style="list-style-type: none; margin-left:-1em"> | ||
| <li style="margin-top: 10px">[Layout Nav]</li> | ||
| </ul> | ||
| </div> | ||
| <div id="site-nav-btn-wrap"> | ||
| <div id="site-nav-btn"> | ||
| <div class="menu-top-bar"></div> | ||
| <div class="menu-middle-bar"></div> | ||
| <div class="menu-bottom-bar"></div> | ||
| </div> | ||
| </div> | ||
| <div id="page-content"> | ||
| <div id="content-wrapper"> | ||
| <h1 id="uses-a-site.json-layout%2C-overriding-front-matter">Uses a site.json layout, overriding front matter<a class="fa fa-anchor" href="#uses-a-site.json-layout%2C-overriding-front-matter"></a></h1> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div id="flex-div"></div> | ||
| <footer> | ||
| <div class="text-center"> | ||
| Layout footer | ||
| </div> | ||
| </footer> | ||
| </div> | ||
| </body> | ||
| <script src="markbind\js\vue.min.js"></script> | ||
| <script src="markbind\js\vue-strap.min.js"></script> | ||
| <script src="markbind\js\polyfill.min.js"></script> | ||
| <script src="markbind\js\bootstrap-vue.min.js"></script> | ||
| <script> | ||
| const baseUrl = '/test_site' | ||
| </script> | ||
| <script src="markbind\js\setup.js"></script> | ||
| <script src="markbind\layouts\testLayout\scripts.js"></script> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| <frontmatter> | ||
| title: Test Layouts | ||
| head: overwriteLayoutHead.md | ||
| layout: testLayout | ||
| </frontmatter> | ||
|
|
||
| # Uses a layout | ||
| # Uses a front matter layout | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <frontmatter> | ||
| title: Test Layouts | ||
| head: overwriteLayoutHead.md | ||
| layout: default | ||
| </frontmatter> | ||
|
|
||
| # Uses a site.json layout, overriding front matter |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
In
site.json, no layout is specified.In the frontmatter,
testLayoutis specified.The final output still uses
defaultinstead oftestLayout.That doesn't seem right. 😕
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.
It feels like the
defaultshould have the lowest priority.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.
My bad, fixed it, there was some issue with the glob layouts