From 2a4576bed7945d9439832328b3757334258bc582 Mon Sep 17 00:00:00 2001 From: Holger Reinhardt Date: Mon, 4 Jan 2016 21:04:16 +0100 Subject: [PATCH] Changing layout of category and tags --- _layouts/post.html | 12 ++++++------ index.html | 4 +--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index fb75435..4aedddd 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -8,10 +8,6 @@ layout: default

{{page.title}}

- {{page.date | date: "%B %d, %Y" }} - / - by {{page.author}} - {% if post.category %} {% for site_category in site.data.categories %} {% if site_category.slug == post.category %} @@ -26,7 +22,7 @@ layout: default {% endif %} {% if post.tags.size > 0 %} - {% capture tags_content %} with {% if post.tags.size == 1 %}{% else %}{% endif %}: {% endcapture %} + {% capture tags_content %} with tags: {% endcapture %} {% for post_tag in post.tags %} {% for data_tag in site.data.tags %} {% if data_tag.slug == post_tag %} @@ -42,7 +38,11 @@ layout: default {% assign tags_content = '' %} {% endif %} -

Posted {{ category_content }}{{ tags_content }}

+ {{page.date | date: "%B %d, %Y" }} + / + by {{page.author}} + / + Posted {{ category_content }}{{ tags_content }}


diff --git a/index.html b/index.html index 410716c..9c35f0e 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ layout: default ---
- {% for post in site.posts limit: 6 %} + {% for post in site.posts %} {% endfor %} - - more