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/page.liquid | 4 +++- _layouts/post.liquid | 38 +++++++++++++++++++++++++------------- 2 files changed, 28 insertions(+), 14 deletions(-) (limited to '_layouts') diff --git a/_layouts/page.liquid b/_layouts/page.liquid index 101ebc2..9a728d1 100644 --- a/_layouts/page.liquid +++ b/_layouts/page.liquid @@ -35,7 +35,9 @@
- {{ page.content }} +
+ {{ page.content }} +
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