-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed param passing to partials, styled up examples.
- Loading branch information
Showing
15 changed files
with
69 additions
and
33 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 |
---|---|---|
@@ -1,17 +1,14 @@ | ||
<html> | ||
<head> | ||
<title>Default Layout</title> | ||
<title>{title}</title> | ||
<link rel="stylesheet" href="styles/default.css" type="text/css"/> | ||
<script type="text/javascript" src="scripts/default.js"></script> | ||
</head> | ||
<body> | ||
{fn.include('header')} | ||
<div> | ||
{foreach page in params.pages} | ||
<a href="{page}.html">{page}</a> - | ||
{end} | ||
<div id="doc"> | ||
{include('header')} | ||
{body} | ||
{include('footer')} | ||
</div> | ||
{body} | ||
{fn.include('footer')} | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
<link rel="stylesheet" href="styles/cars.css" type="text/css"/> | ||
TODO cars list 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TODO original AE86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TODO contact 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<h1>Home Page</h1> | ||
<h2>Home</h2> | ||
<p> | ||
I'm Home Page. | ||
Hi,<br/> | ||
We're AE86 specialist based in Melbourne, Australia. | ||
</p> | ||
<script type="text/javascript"> | ||
write('OHAI'); | ||
write('Speedstar Racing'); | ||
</script> |
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,5 @@ | ||
exports.params = { | ||
pages: [ 'home', 'books', 'books/list', 'books/reference/encyclopedia' ] | ||
title: 'AE86 Workshop', | ||
pages: [ 'Home', 'Cars', 'Original', 'Contact' ], | ||
pageLinks: [ 'home.html', 'cars/list.html', 'cars/original/original.html', 'contact.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,3 +1,3 @@ | ||
<div id="footer"> | ||
<p>Copyright © 2011 Footer Partial</p> | ||
<p>Copyright © 2010 - 2011 AE86 Workshop</p> | ||
</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,4 +1,8 @@ | ||
<div id="header"> | ||
<h1>Header Partial</h1> | ||
<img src="images/logo.png"/> | ||
<h1><img src="images/logo.png"/> {title}</h1> | ||
</div> | ||
<div id="nav"> | ||
{foreach page in pages} | ||
<a href="{page}.html">{page}</a> - | ||
{end} | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
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,36 @@ | ||
body { | ||
background-color: #666666; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
div#doc { | ||
background-color: #ffffff; | ||
color: #000000; | ||
font-family: serif; | ||
margin: auto; | ||
padding: 20px; | ||
width: 960px; | ||
} | ||
div#header { | ||
border-bottom: 3px solid #000000; | ||
text-align: center; | ||
} | ||
div#nav { | ||
font-weight: bold; | ||
padding: 10px; | ||
text-align: center; | ||
} | ||
div#footer { | ||
border-top: 3px solid #000000; | ||
font-weight: bold; | ||
text-align: right; | ||
} | ||
h1 { | ||
border: 1px solid #0000ff; | ||
font-size: 250%; | ||
} | ||
h2 { | ||
font-style: italic; | ||
} | ||
a { | ||
color: #ff0000; | ||
} |
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