From d4feb90226b47b0761717ecd6967acc2c928fc88 Mon Sep 17 00:00:00 2001 From: Stefan Schlott Date: Sat, 24 Aug 2013 10:09:30 +0200 Subject: [PATCH] Article layout, dummy articles --- content/articles/0001-first-post/index.md | 10 +++++ .../0002-project-latitude-gestartet/index.md | 10 +++++ layouts/article_body.html | 39 +++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 content/articles/0001-first-post/index.md create mode 100644 content/articles/0002-project-latitude-gestartet/index.md create mode 100644 layouts/article_body.html diff --git a/content/articles/0001-first-post/index.md b/content/articles/0001-first-post/index.md new file mode 100644 index 00000000..fa9b087f --- /dev/null +++ b/content/articles/0001-first-post/index.md @@ -0,0 +1,10 @@ +--- +kind: article +created_at: 2013-08-18 +title: First post! +subtitle: Irgendwas muß ich ja schreiben +--- +Dies ist der erste Dummyartikel für das Blog. + +Mehr Details. Blah. + diff --git a/content/articles/0002-project-latitude-gestartet/index.md b/content/articles/0002-project-latitude-gestartet/index.md new file mode 100644 index 00000000..929d5c9b --- /dev/null +++ b/content/articles/0002-project-latitude-gestartet/index.md @@ -0,0 +1,10 @@ +--- +kind: article +created_at: 2013-08-19 +title: Project Latitude gestartet +refers_to: projects/project-latitude +--- +Jawoll, es geht langsam los! + +Mehr Details. Blah. + diff --git a/layouts/article_body.html b/layouts/article_body.html new file mode 100644 index 00000000..f03d6d7a --- /dev/null +++ b/layouts/article_body.html @@ -0,0 +1,39 @@ +<% +def sanitize_path(path) + result = path + if (!path.start_with?('/')) + result = '/' + result + end + if (!path.end_with?('/')) + result = result + '/' + end + result +end +%> +
+
+
+
+

<%= item[:title]%> + <% if item.attributes.has_key?(:subtitle) then %> +
<%= item[:subtitle] %> + <% end %>

+ +
+
+

+

+ <%= yield %> +
+
+
+
+ + +
+