From 6456e50de8a0732ef70c2efdd49e8d688c88f4f6 Mon Sep 17 00:00:00 2001 From: Luke McGregor Date: Fri, 14 Apr 2017 01:32:24 +1200 Subject: [PATCH 1/2] If no tags present, don't show `. On` --- _layouts/post.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index aadd590..ee1b8c4 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,7 +4,10 @@

{{ page.title }}

From 5e064d3072b3157e1b820871b9e6e87e5c4f7c94 Mon Sep 17 00:00:00 2001 From: Luke McGregor Date: Fri, 14 Apr 2017 02:00:58 +1200 Subject: [PATCH 2/2] Also selectively render tags on index --- index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0b14cfc..8e7709b 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,12 @@
  • {{ post.title }}

    {{ post.excerpt | remove: '

    ' | remove: '

    ' }}…

    -
    +
    + + {% if post.tags.size > 0 %} + • + {% endif %} +

  • {% endfor %} @@ -21,4 +26,4 @@