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. --- _includes/footer.liquid | 66 +++++++++++------------ _includes/nav.liquid | 135 ++++++++++++++++++++++++------------------------ _layouts/index.liquid | 2 +- _layouts/journal.liquid | 51 +++++++++++++++--- _layouts/page.liquid | 4 +- _layouts/post.liquid | 4 +- 6 files changed, 151 insertions(+), 111 deletions(-) diff --git a/_includes/footer.liquid b/_includes/footer.liquid index 8feaa9c..a84d4f0 100644 --- a/_includes/footer.liquid +++ b/_includes/footer.liquid @@ -1,33 +1,35 @@ -
-

- Site last updated {{ "now" | date: "%A, %b %e, %Y" }} -

-

- See a problem? - - Tell me so I can fix it - - or - - fix it yourself! - -

-

- Built using - - Cobalt.rs - - , - - Bulma.io - - , - - Animate.css - - , and self-hosted with - - NGINX - -

+
+
+

+ Site last updated {{ "now" | date: "%A, %b %e, %Y" }} +

+

+ See a problem? + + Tell me so I can fix it + + or + + fix it yourself! + +

+

+ Built using + + Cobalt.rs + + , + + Bulma.io + + , + + Animate.css + + , and self-hosted with + + NGINX + +

+
diff --git a/_includes/nav.liquid b/_includes/nav.liquid index 3a1fa0c..4ade8b6 100644 --- a/_includes/nav.liquid +++ b/_includes/nav.liquid @@ -1,80 +1,81 @@ - +
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