This commit is contained in:
nuex
2011-09-22 11:28:24 -04:00
commit 5bec8d1abe
20 changed files with 679 additions and 0 deletions

2
example/Makefile Normal file
View File

@@ -0,0 +1,2 @@
all:
zod site www

5
example/site/blog.md Normal file
View File

@@ -0,0 +1,5 @@
# Blog
These are my blog posts
* 2011-04-02 [Hello](/blog/hello.html)

1
example/site/blog.meta Normal file
View File

@@ -0,0 +1 @@
title: Blog

View File

@@ -0,0 +1,3 @@
# Hi
This is my first blog post

View File

@@ -0,0 +1 @@
title: hello

1
example/site/global.meta Normal file
View File

@@ -0,0 +1 @@
site_title: my site

13
example/site/helpers.awk Normal file
View File

@@ -0,0 +1,13 @@
{ helpers = "yes" }
function load_helpers() {
data["page_title"] = page_title()
}
function page_title( title) {
if (data["title"]) {
title = data["title"] " - "
}
title = title data["site_title"]
return title
}

5
example/site/index.md Normal file
View File

@@ -0,0 +1,5 @@
## Introduction
Welcome to my website
Check out [my blog](/blog.html)

1
example/site/index.meta Normal file
View File

@@ -0,0 +1 @@
title: home

19
example/site/main.layout Normal file
View File

@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="/stylesheets/style.css" />
<title>{{page_title}}</title>
</head>
<body>
<header>
<h1><a href="/">{{site_title}}</a></h1>
</header>
<article>
{{{yield}}}
</article>
<footer>
<p>powered by static files</p>
</footer>
</body>
</html>

4
example/site/style.css Normal file
View File

@@ -0,0 +1,4 @@
body {
background-color: #fff;
color: #000;
}

0
example/www/.keep Normal file
View File