Permalink
Browse files

Add navigation snippet, non-default layout, subdir partial to examples.

  • Loading branch information...
1 parent 5a68408 commit 1a661a14eb9fd606a6e084ad4ea85d86b8a6615d @cliffano committed Dec 9, 2011
@@ -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>
@@ -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>
@@ -0,0 +1,3 @@
+<div id="team">
+Team Page
+</div>
@@ -1,3 +1,3 @@
-<div id="content">
-Home
-</div>
+<div id="home">
+Home Page
+</div>
View
@@ -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' }
}
};
@@ -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>

0 comments on commit 1a661a1

Please sign in to comment.