added simple blog-like structure with amber, gcss, markdown

This commit is contained in:
Serge A. Zaitsev 2015-08-29 23:44:20 +02:00
parent 46f55e19bd
commit 6d5efb5fce
11 changed files with 93 additions and 0 deletions

10
testdata/blog/.test/about.html vendored Normal file
View File

@ -0,0 +1,10 @@
<html>
<head>
<title>About myself</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body><h1>About myself</h1>
<p>Hi all. This is a brief description of who I am.</p>
</body>
</html>

17
testdata/blog/.test/index.html vendored Normal file
View File

@ -0,0 +1,17 @@
<html>
<head>
<title>My blog</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p>Here goes list of posts</p>
<ul>
<li>
<a href="/posts/hello.html">First post</a>
</li>
<li>
<a href="/posts/update.html">Second post</a>
</li>
</ul>
</body>
</html>

10
testdata/blog/.test/posts/hello.html vendored Normal file
View File

@ -0,0 +1,10 @@
<html>
<head>
<title>First post</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body><h1>First post</h1>
<p>This is my first post</p>
</body>
</html>

10
testdata/blog/.test/posts/update.html vendored Normal file
View File

@ -0,0 +1,10 @@
<html>
<head>
<title>Second post</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body><h1>Second post</h1>
<p>This is my second post</p>
</body>
</html>

1
testdata/blog/.test/styles.css vendored Normal file
View File

@ -0,0 +1 @@
html{margin:0;padding:0;box-sizing:border-box;}body{font-size:16pt;}

6
testdata/blog/.zs/layout.amber vendored Normal file
View File

@ -0,0 +1,6 @@
html
head
title #{title}
link[href="styles.css"][rel="stylesheet"][type="text/css"]
body
#{unescaped(content)}

6
testdata/blog/about.md vendored Normal file
View File

@ -0,0 +1,6 @@
title: About myself
date: 28-08-2015
# {{title}}
Hi all. This is a brief description of who I am.

12
testdata/blog/index.amber vendored Normal file
View File

@ -0,0 +1,12 @@
html
head
title My blog
link[href="styles.css"][rel="stylesheet"][type="text/css"]
body
p Here goes list of posts
ul
li
a[href="/posts/hello.html"] First post
li
a[href="/posts/update.html"] Second post

7
testdata/blog/posts/hello.md vendored Normal file
View File

@ -0,0 +1,7 @@
title: First post
date: 28-08-2015
# {{title}}
This is my first post

7
testdata/blog/posts/update.md vendored Normal file
View File

@ -0,0 +1,7 @@
title: Second post
date: 29-08-2015
# {{title}}
This is my second post

7
testdata/blog/styles.gcss vendored Normal file
View File

@ -0,0 +1,7 @@
html
margin: 0
padding: 0
box-sizing: border-box
body
font-size: 16pt