From 77458c3f87eafc1d17f9ef47f9926e0a5a98ceac Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Wed, 1 May 2019 20:55:05 -0400 Subject: Added TOC and cards to journal page. --- _layouts/index.liquid | 2 +- _layouts/journal.liquid | 51 ++++++++++++++++++++++++++++++++++++++++++------- _layouts/page.liquid | 4 ++-- _layouts/post.liquid | 4 ++-- 4 files changed, 49 insertions(+), 12 deletions(-) (limited to '_layouts') diff --git a/_layouts/index.liquid b/_layouts/index.liquid index 1bea078..1b124c3 100644 --- a/_layouts/index.liquid +++ b/_layouts/index.liquid @@ -21,7 +21,7 @@
-
+
diff --git a/_layouts/journal.liquid b/_layouts/journal.liquid index 19891bf..01d0fd1 100644 --- a/_layouts/journal.liquid +++ b/_layouts/journal.liquid @@ -54,14 +54,17 @@

@@ -70,6 +73,40 @@
+ {% for i in (1..20) %} + {% for post in collections.posts.pages %} +
+
+

+ {% if post.published_date %} + {{ post.published_date | date: "%A, %b %e, %Y" }} + {% endif %} +

+
+
+

+ {{ post.title }} +

+
+ {{ post.content | truncatewords: 50 }} +
+
+ +
+ {% endfor %} + {%endfor%}
diff --git a/_layouts/page.liquid b/_layouts/page.liquid index 9a728d1..1c5cd99 100644 --- a/_layouts/page.liquid +++ b/_layouts/page.liquid @@ -18,7 +18,7 @@
-
+

{{ page.title }}

@@ -31,7 +31,7 @@
-
+
diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 777f455..50fb240 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -18,7 +18,7 @@
-
+

{{ page.title }} @@ -66,7 +66,7 @@
-
+
{{ page.content }} -- cgit v1.2.3