From 6d5efb5fce2e76f39098f8a989669f0d4082065b Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Sat, 29 Aug 2015 23:44:20 +0200 Subject: [PATCH] added simple blog-like structure with amber, gcss, markdown --- testdata/blog/.test/about.html | 10 ++++++++++ testdata/blog/.test/index.html | 17 +++++++++++++++++ testdata/blog/.test/posts/hello.html | 10 ++++++++++ testdata/blog/.test/posts/update.html | 10 ++++++++++ testdata/blog/.test/styles.css | 1 + testdata/blog/.zs/layout.amber | 6 ++++++ testdata/blog/about.md | 6 ++++++ testdata/blog/index.amber | 12 ++++++++++++ testdata/blog/posts/hello.md | 7 +++++++ testdata/blog/posts/update.md | 7 +++++++ testdata/blog/styles.gcss | 7 +++++++ 11 files changed, 93 insertions(+) create mode 100644 testdata/blog/.test/about.html create mode 100644 testdata/blog/.test/index.html create mode 100644 testdata/blog/.test/posts/hello.html create mode 100644 testdata/blog/.test/posts/update.html create mode 100644 testdata/blog/.test/styles.css create mode 100644 testdata/blog/.zs/layout.amber create mode 100644 testdata/blog/about.md create mode 100644 testdata/blog/index.amber create mode 100644 testdata/blog/posts/hello.md create mode 100644 testdata/blog/posts/update.md create mode 100644 testdata/blog/styles.gcss diff --git a/testdata/blog/.test/about.html b/testdata/blog/.test/about.html new file mode 100644 index 0000000..2ad8b67 --- /dev/null +++ b/testdata/blog/.test/about.html @@ -0,0 +1,10 @@ + + + About myself + + +

About myself

+ +

Hi all. This is a brief description of who I am.

+ + diff --git a/testdata/blog/.test/index.html b/testdata/blog/.test/index.html new file mode 100644 index 0000000..30af02e --- /dev/null +++ b/testdata/blog/.test/index.html @@ -0,0 +1,17 @@ + + + My blog + + + +

Here goes list of posts

+ + + diff --git a/testdata/blog/.test/posts/hello.html b/testdata/blog/.test/posts/hello.html new file mode 100644 index 0000000..a3293d4 --- /dev/null +++ b/testdata/blog/.test/posts/hello.html @@ -0,0 +1,10 @@ + + + First post + + +

First post

+ +

This is my first post

+ + diff --git a/testdata/blog/.test/posts/update.html b/testdata/blog/.test/posts/update.html new file mode 100644 index 0000000..58ff440 --- /dev/null +++ b/testdata/blog/.test/posts/update.html @@ -0,0 +1,10 @@ + + + Second post + + +

Second post

+ +

This is my second post

+ + diff --git a/testdata/blog/.test/styles.css b/testdata/blog/.test/styles.css new file mode 100644 index 0000000..25d5b6f --- /dev/null +++ b/testdata/blog/.test/styles.css @@ -0,0 +1 @@ +html{margin:0;padding:0;box-sizing:border-box;}body{font-size:16pt;} \ No newline at end of file diff --git a/testdata/blog/.zs/layout.amber b/testdata/blog/.zs/layout.amber new file mode 100644 index 0000000..5877c65 --- /dev/null +++ b/testdata/blog/.zs/layout.amber @@ -0,0 +1,6 @@ +html + head + title #{title} + link[href="styles.css"][rel="stylesheet"][type="text/css"] + body + #{unescaped(content)} diff --git a/testdata/blog/about.md b/testdata/blog/about.md new file mode 100644 index 0000000..93c2a0d --- /dev/null +++ b/testdata/blog/about.md @@ -0,0 +1,6 @@ +title: About myself +date: 28-08-2015 + +# {{title}} + +Hi all. This is a brief description of who I am. diff --git a/testdata/blog/index.amber b/testdata/blog/index.amber new file mode 100644 index 0000000..ab0f0dd --- /dev/null +++ b/testdata/blog/index.amber @@ -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 + diff --git a/testdata/blog/posts/hello.md b/testdata/blog/posts/hello.md new file mode 100644 index 0000000..99bfa38 --- /dev/null +++ b/testdata/blog/posts/hello.md @@ -0,0 +1,7 @@ +title: First post +date: 28-08-2015 + +# {{title}} + +This is my first post + diff --git a/testdata/blog/posts/update.md b/testdata/blog/posts/update.md new file mode 100644 index 0000000..58b25ea --- /dev/null +++ b/testdata/blog/posts/update.md @@ -0,0 +1,7 @@ +title: Second post +date: 29-08-2015 + +# {{title}} + +This is my second post + diff --git a/testdata/blog/styles.gcss b/testdata/blog/styles.gcss new file mode 100644 index 0000000..5082b95 --- /dev/null +++ b/testdata/blog/styles.gcss @@ -0,0 +1,7 @@ +html + margin: 0 + padding: 0 + box-sizing: border-box + +body + font-size: 16pt -- 2.43.0