From 351012d57a9b05c7dbfd1b1865ed4d10ac9818df Mon Sep 17 00:00:00 2001 From: Nicolas Kuttler Date: Wed, 11 Feb 2015 23:46:15 +0100 Subject: Add responsive sidebar and basic footer --- _layouts/default.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '_layouts') diff --git a/_layouts/default.html b/_layouts/default.html index 1ab31f9..887ef16 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,7 +7,17 @@
- {{ content }} +
+ {{ content }} +
+
+

What's this?

+

+ You are visiting the official website for the IRC + client Irssi, for more information see the about + section. +

+
-- cgit v1.2.3 From 27c911c3ea5bc5c1a0db37003c72dbea3801319c Mon Sep 17 00:00:00 2001 From: Nicolas Kuttler Date: Thu, 12 Feb 2015 01:29:15 +0100 Subject: Display meta information about posts The date will be displayed with an ordinal indicator when available. --- _layouts/home.html | 2 ++ _layouts/post.html | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to '_layouts') diff --git a/_layouts/home.html b/_layouts/home.html index 9a2976a..e0e2187 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -6,6 +6,8 @@ layout: default {% for post in paginator.posts %}

{{ post.title }}

+ {% assign node=post %} + {% include postmeta.html %} {{ post.content | markdownify }} {% endfor %} diff --git a/_layouts/post.html b/_layouts/post.html index aa390ea..d6b9678 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -3,4 +3,6 @@ layout: default ---

{{ page.title }}

-{{ page.content|markdownify }} +{% assign node=page %} +{% include postmeta.html %} +{{ page.content | markdownify }} -- cgit v1.2.3 From c59344a2ac4c3aa6e53f1d4299e1a29f0568f3a3 Mon Sep 17 00:00:00 2001 From: Nicolas Kuttler Date: Thu, 12 Feb 2015 17:24:03 +0100 Subject: Refactor includes Includes can pass variables after all. The template language is beginning to feel clumsy. --- _layouts/home.html | 3 +-- _layouts/post.html | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to '_layouts') diff --git a/_layouts/home.html b/_layouts/home.html index e0e2187..81451b6 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -6,8 +6,7 @@ layout: default {% for post in paginator.posts %}

{{ post.title }}

- {% assign node=post %} - {% include postmeta.html %} + {% include postmeta.html node=post %} {{ post.content | markdownify }} {% endfor %} diff --git a/_layouts/post.html b/_layouts/post.html index d6b9678..5cf11df 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -3,6 +3,5 @@ layout: default ---

{{ page.title }}

-{% assign node=page %} -{% include postmeta.html %} +{% include postmeta.html node=page %} {{ page.content | markdownify }} -- cgit v1.2.3 From 23d0b1ebd65f423ba8a78ace70cdb150d7be8efe Mon Sep 17 00:00:00 2001 From: Nicolas Kuttler Date: Thu, 12 Feb 2015 18:15:17 +0100 Subject: Add articles collection Display optional web address instead of email as article contributors might not want to see their email address on the www. Also add an article index page. --- _layouts/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_layouts') diff --git a/_layouts/post.html b/_layouts/post.html index 5cf11df..8e1bfd0 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,6 +2,6 @@ layout: default --- -

{{ page.title }}

+

{{ page.title }}

{% include postmeta.html node=page %} {{ page.content | markdownify }} -- cgit v1.2.3