forked from asciidoctor/jekyll-asciidoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolves asciidoctor#193 allow page layout to be soft set in site config
- Loading branch information
1 parent
ca7b86b
commit 80d0cfd
Showing
11 changed files
with
125 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,5 @@ | ||
gems: | ||
- jekyll-asciidoc | ||
asciidoctor: | ||
attributes: | ||
- page-layout=default@ |
15 changes: 15 additions & 0 deletions
15
spec/fixtures/site_wide_fallback_layout/_layouts/default.html
This file contains 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,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{{ page.title }}</title> | ||
</head> | ||
<body> | ||
<div class="page-content"> | ||
{{ content }} | ||
</div> | ||
<footer> | ||
<p>Footer for default layout.</p> | ||
</footer> | ||
</body> | ||
</html> |
15 changes: 15 additions & 0 deletions
15
spec/fixtures/site_wide_fallback_layout/_layouts/simple.html
This file contains 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,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{{ page.title }}</title> | ||
</head> | ||
<body> | ||
<div class="page-content"> | ||
{{ content }} | ||
</div> | ||
<footer> | ||
<p>Footer for simple layout.</p> | ||
</footer> | ||
</body> | ||
</html> |
4 changes: 4 additions & 0 deletions
4
spec/fixtures/site_wide_fallback_layout/in-asciidoc-header.adoc
This file contains 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,4 @@ | ||
= Page Title | ||
:page-layout: simple | ||
|
||
Lorem ipsum. |
This file contains 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,6 @@ | ||
--- | ||
layout: simple | ||
--- | ||
= Page Title | ||
|
||
Lorem ipsum. |
This file contains 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,3 @@ | ||
= Page Title | ||
|
||
Lorem ipsum. |
This file contains 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,4 +1,8 @@ | ||
// only standalone if page-layout=false is set in site config | ||
--- | ||
layout: overridden | ||
--- | ||
// standalone because page-layout=false is set in site config | ||
= Standalone Page | ||
:page-layout: also-overridden | ||
|
||
Lorem ipsum. |
This file contains 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