initial
This commit is contained in:
5
example/site/blog.md
Normal file
5
example/site/blog.md
Normal 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
1
example/site/blog.meta
Normal file
@@ -0,0 +1 @@
|
||||
title: Blog
|
||||
3
example/site/blog/hello.md
Normal file
3
example/site/blog/hello.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Hi
|
||||
|
||||
This is my first blog post
|
||||
1
example/site/blog/hello.meta
Normal file
1
example/site/blog/hello.meta
Normal file
@@ -0,0 +1 @@
|
||||
title: hello
|
||||
1
example/site/global.meta
Normal file
1
example/site/global.meta
Normal file
@@ -0,0 +1 @@
|
||||
site_title: my site
|
||||
13
example/site/helpers.awk
Normal file
13
example/site/helpers.awk
Normal 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
5
example/site/index.md
Normal file
@@ -0,0 +1,5 @@
|
||||
## Introduction
|
||||
|
||||
Welcome to my website
|
||||
|
||||
Check out [my blog](/blog.html)
|
||||
1
example/site/index.meta
Normal file
1
example/site/index.meta
Normal file
@@ -0,0 +1 @@
|
||||
title: home
|
||||
19
example/site/main.layout
Normal file
19
example/site/main.layout
Normal 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
4
example/site/style.css
Normal file
@@ -0,0 +1,4 @@
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
}
|
||||
Reference in New Issue
Block a user