From 47b4026485c89a23c48a9012593cff84f75e7b55 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Sun, 28 Apr 2019 19:28:14 -0400 Subject: More sensible post organization and TOC. --- _layouts/post.liquid | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to '_layouts/post.liquid') diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 382f17d..777f455 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -25,25 +25,35 @@

- {{ page.published_date | date: "%A, %b %e, %Y" }} + {% if page.published_date %} + {{ page.published_date | date: "%A, %b %e, %Y" }} + {% else %} + Unpublished! + {% endif %}

{% if page.categories %} - {% for category in page.categories %} - - {{ category | downcase }} - - {% endfor %} +

+ Categories: + {% for category in page.categories %} + + {{ category | downcase }} + + {% endfor %} +

{% endif %} {% if page.tags %} - {% for tag in page.tags %} - - {{ tag | downcase }} - - {% endfor %} +

+ Tags: + {% for tag in page.tags %} + + #{{ tag | downcase }} + + {% endfor %} +

{% endif %} @@ -57,8 +67,10 @@
-
- {{ page.content }} +
+
+ {{ page.content }} +
-- cgit v1.2.3