From 0d6e5bcdddbc4e87e1fcaf81279e44c38d110979 Mon Sep 17 00:00:00 2001 From: David Whiting Date: Mon, 17 Apr 2017 16:16:02 +0100 Subject: [PATCH 1/2] Added layout and page for All posts --- _layouts/allposts.html | 39 +++++++++++++++++++++++++++++++++++++++ all_posts.md | 10 ++++++++++ 2 files changed, 49 insertions(+) create mode 100644 _layouts/allposts.html create mode 100644 all_posts.md diff --git a/_layouts/allposts.html b/_layouts/allposts.html new file mode 100644 index 0000000..f0834bb --- /dev/null +++ b/_layouts/allposts.html @@ -0,0 +1,39 @@ + + + + +{% include head.html %} + + + + {% include header.html %} + + + +
+ + +
+
+ {% for post in site.posts %} +
+

{{ post.title }}

+
+ {% if post.image %}{% endif %} +

{{ post.date }}

+

{{ post.content }}

+ {% endfor %} +
+
+ +
+ + {% include footer.html %} + + + + diff --git a/all_posts.md b/all_posts.md new file mode 100644 index 0000000..5ecc154 --- /dev/null +++ b/all_posts.md @@ -0,0 +1,10 @@ +--- +layout: allposts +title: All posts +landing-title: 'All posts' +description: null +image: null +author: null +--- + +

All posts

From b05018909f6ba8164faa4ac8ac992da2c070cf83 Mon Sep 17 00:00:00 2001 From: David Whiting Date: Sat, 22 Apr 2017 12:01:45 +0100 Subject: [PATCH 2/2] Wrapped if statement around post.date --- _layouts/allposts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/allposts.html b/_layouts/allposts.html index f0834bb..b4c570c 100644 --- a/_layouts/allposts.html +++ b/_layouts/allposts.html @@ -24,7 +24,7 @@

{{ post.title }}

{% if post.image %}{% endif %} -

{{ post.date }}

+ {% if post.date %}

{{ post.date }}

{% endif %}

{{ post.content }}

{% endfor %}