This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for multiple content segments in pages.
Optimized access to app configuration (a bit).
- Loading branch information
1 parent
b3ccae2
commit 336b8c5
Showing
15 changed files
with
288 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
this: is | ||
a: | ||
somewhat: | ||
complicated: header | ||
for: a | ||
piecrust: page | ||
but: that | ||
is: not | ||
too: bad | ||
now: | | ||
let's see if | ||
--- | ||
stuff like this | ||
--- | ||
won't break the parsing. | ||
okay: now it should be good. | ||
--- | ||
Yep, I don't think it's really that complicated, but you never know, it could break. | ||
Hopefully it doesn't! |
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,22 @@ | ||
config: | ||
this: is | ||
a: | ||
somewhat: | ||
complicated: header | ||
for: a | ||
piecrust: page | ||
but: that | ||
is: not | ||
too: bad | ||
now: | | ||
let's see if | ||
--- | ||
stuff like this | ||
--- | ||
won't break the parsing. | ||
okay: now it should be good. | ||
|
||
content: | | ||
Yep, I don't think it's really that complicated, but you never know, it could break. | ||
Hopefully it doesn't! | ||
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,3 +1,2 @@ | ||
config: | ||
contents: '.' | ||
end: here. | ||
content: '.' |
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,7 +1,6 @@ | ||
config: | ||
contents: | | ||
content: | | ||
This is a page with stuff in it. | ||
There's not much, but still this is something. | ||
end: here. | ||
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,11 @@ | ||
--- | ||
title: Two segments page | ||
--- | ||
This is the default ('content') segment. | ||
|
||
It should have those 2 paragraphs. | ||
---menu--- | ||
This is the menu segment: | ||
* with | ||
* stuff | ||
* in it |
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,12 @@ | ||
config: | ||
title: Two segments page | ||
content: | | ||
This is the default ('content') segment. | ||
It should have those 2 paragraphs. | ||
menu: | | ||
This is the menu segment: | ||
* with | ||
* stuff | ||
* in it | ||
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
Oops, something went wrong.