Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add navigation snippet, non-default layout, subdir partial to examples.
- Loading branch information
Showing
6 changed files
with
32 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<html> | ||
<head> | ||
<title>{title()} w/ Alternative Layout</title> | ||
<link rel="stylesheet" href="{relative('styles/global.css')}?{__genId}" type="text/css"/> | ||
<script type="text/javascript" src="{relative('scripts/global.js')}?{__genId}"></script> | ||
</head> | ||
<body> | ||
{include('header.html')} | ||
{include('common/nav.html')} | ||
{content} | ||
{include('footer.html')} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<html> | ||
<head> | ||
<title>{title()}</title> | ||
<title>{title()} w/ Default Layout</title> | ||
<link rel="stylesheet" href="{relative('styles/global.css')}?{__genId}" type="text/css"/> | ||
<script type="text/javascript" src="{relative('scripts/global.js')}?{__genId}"></script> | ||
</head> | ||
<body> | ||
{include('header.html')} | ||
{include('common/nav.html')} | ||
{content} | ||
{include('footer.html')} | ||
</body> | ||
</html> | ||
</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,3 @@ | ||
<div id="team"> | ||
Team Page | ||
</div> |
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,3 @@ | ||
<div id="content"> | ||
Home | ||
</div> | ||
<div id="home"> | ||
Home Page | ||
</div> |
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,9 +1,10 @@ | ||
exports.params = { | ||
site: { | ||
name: 'Example Inc.', | ||
name: 'Examples', | ||
url: 'http://localhost:3000' | ||
}, | ||
sitemap: { | ||
'index.html': { title: 'Home' } | ||
'index.html': { title: 'Home Page' }, | ||
'about/team.html': { title: 'About - Team Page', layouts: 'alternative.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,7 @@ | ||
<div id="nav"> | ||
<ul> | ||
{foreach page in sitemap} | ||
<li><a href="{relative(page.key)}">{page.value.title}</a></li> | ||
{end} | ||
</ul> | ||
</div> |