changeset 21:d577cff808bc draft

added simple blog-like structure with amber, gcss, markdown
author zaitsev.serge
date Sat, 29 Aug 2015 21:44:20 +0000
parents f8373c23a3ff
children f5627d4212a3
files testdata/blog/.test/about.html testdata/blog/.test/index.html testdata/blog/.test/posts/hello.html testdata/blog/.test/posts/update.html testdata/blog/.test/styles.css testdata/blog/.zs/layout.amber testdata/blog/about.md testdata/blog/index.amber testdata/blog/posts/hello.md testdata/blog/posts/update.md testdata/blog/styles.gcss
diffstat 11 files changed, 93 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/.test/about.html	Sat Aug 29 21:44:20 2015 +0000
@@ -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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/.test/index.html	Sat Aug 29 21:44:20 2015 +0000
@@ -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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/.test/posts/hello.html	Sat Aug 29 21:44:20 2015 +0000
@@ -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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/.test/posts/update.html	Sat Aug 29 21:44:20 2015 +0000
@@ -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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/.test/styles.css	Sat Aug 29 21:44:20 2015 +0000
@@ -0,0 +1,1 @@
+html{margin:0;padding:0;box-sizing:border-box;}body{font-size:16pt;}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/.zs/layout.amber	Sat Aug 29 21:44:20 2015 +0000
@@ -0,0 +1,6 @@
+html
+	head
+		title #{title}
+		link[href="styles.css"][rel="stylesheet"][type="text/css"]
+	body
+		#{unescaped(content)}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/about.md	Sat Aug 29 21:44:20 2015 +0000
@@ -0,0 +1,6 @@
+title: About myself
+date: 28-08-2015
+
+# {{title}}
+
+Hi all. This is a brief description of who I am.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/index.amber	Sat Aug 29 21:44:20 2015 +0000
@@ -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
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/posts/hello.md	Sat Aug 29 21:44:20 2015 +0000
@@ -0,0 +1,7 @@
+title: First post
+date: 28-08-2015
+
+# {{title}}
+
+This is my first post
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/posts/update.md	Sat Aug 29 21:44:20 2015 +0000
@@ -0,0 +1,7 @@
+title: Second post
+date: 29-08-2015
+
+# {{title}}
+
+This is my second post
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/blog/styles.gcss	Sat Aug 29 21:44:20 2015 +0000
@@ -0,0 +1,7 @@
+html
+  margin: 0
+  padding: 0
+  box-sizing: border-box
+
+body
+  font-size: 16pt