-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edcd124
commit 503bf08
Showing
6 changed files
with
87 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Simple Test Website</title> | ||
</head> | ||
<body> | ||
<h1>Sections</h1> | ||
<div> | ||
<h2>-- TABLE OF CONTENTS --</h2> | ||
<ul> | ||
<li><a href="#h1">H1</a><ul><li> | ||
<a href="#h2">H2</a><ul><li> | ||
<a href="#h3">H3</a></li></ul></li></ul></ul> | ||
</div> | ||
<div> | ||
<h2>-- SECTION BEGIN --</h2> | ||
<div><div id="h1"><h1><a class="" href="#h1">H1</a></h1><p>Lorem Ipsum 1</p></div></div> | ||
<h2>-- SECTION END --</h2> | ||
|
||
<h2>-- SECTION BEGIN --</h2> | ||
<div><div id="h2"><h2><a class="" href="#h2">H2</a></h2><p>Lorem Ipsum 2</p></div></div> | ||
<h2>-- SECTION END --</h2> | ||
|
||
<h2>-- SECTION BEGIN --</h2> | ||
<div><div id="h3"><h3><a class="" href="#h3">H3</a></h3><p>Lorem Ipsum 3</p></div></div> | ||
<h2>-- SECTION END --</h2> | ||
</div> | ||
</body> | ||
</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
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,17 @@ | ||
--- | ||
.title = "Sections", | ||
.date = @date("2020-07-06T00:00:00"), | ||
.author = "Sample Author", | ||
.layout = "sections.shtml", | ||
.draft = false, | ||
--- | ||
|
||
# [H1]($section.id('h1')) | ||
Lorem Ipsum 1 | ||
|
||
## [H2]($section.id('h2')) | ||
Lorem Ipsum 2 | ||
|
||
### [H3]($section.id('h3')) | ||
Lorem Ipsum 3 | ||
|
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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title :text="$site.title"></title> | ||
</head> | ||
<body> | ||
<h1 :text="$page.title"></h1> | ||
<div> | ||
<h2>-- TABLE OF CONTENTS --</h2> | ||
<ctx :html="$page.toc()"></ctx> | ||
</div> | ||
<div :loop="$page.contentSections()"> | ||
<h2>-- SECTION BEGIN --</h2> | ||
<div :html="$loop.it.html()"></div> | ||
<h2>-- SECTION END --</h2> | ||
</div> | ||
</body> | ||
</html> |