working out zod phases

This commit is contained in:
nuex
2011-10-18 01:07:12 -04:00
parent 7448411442
commit f7affcaca7
6 changed files with 124 additions and 74 deletions

View File

@@ -5,9 +5,9 @@ function load_helpers() {
}
function page_title( title) {
if (data["title"]) {
title = data["title"] " - "
if ("title" in data) {
return data["title"] " - " data["site_title"]
} else {
return data["site_title"]
}
title = title data["site_title"]
return title
}

View File

@@ -6,14 +6,10 @@
<title>{{page_title}}</title>
</head>
<body>
<header>
<h1><a href="/">{{site_title}}</a></h1>
</header>
{{>header}}
<article>
{{{yield}}}
</article>
<footer>
<p>powered by static files</p>
</footer>
{{>footer}}
</body>
</html>