From 402decfde5390d1c84a0a5dd74635de3d7c634c2 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Sat, 15 Jun 2019 21:10:45 -0400 Subject: Broke out single post card; updated index with latest post. --- _includes/post-card.liquid | 30 ++++++++++++++++++++++++++++++ _includes/post-list.liquid | 41 ----------------------------------------- _includes/recent-posts.liquid | 10 ++++++++++ _layouts/index.liquid | 26 ++++++++++++++++++++++---- _layouts/journal.liquid | 10 +++++----- index.md | 10 +++++----- 6 files changed, 72 insertions(+), 55 deletions(-) create mode 100644 _includes/post-card.liquid delete mode 100644 _includes/post-list.liquid create mode 100644 _includes/recent-posts.liquid diff --git a/_includes/post-card.liquid b/_includes/post-card.liquid new file mode 100644 index 0000000..558b227 --- /dev/null +++ b/_includes/post-card.liquid @@ -0,0 +1,30 @@ +
+
+

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

+
+
+

+ {{ post.title }} +

+
+ {{ post.content | truncatewords: 50 }} +
+
+ +
diff --git a/_includes/post-list.liquid b/_includes/post-list.liquid deleted file mode 100644 index 2edc142..0000000 --- a/_includes/post-list.liquid +++ /dev/null @@ -1,41 +0,0 @@ -
- - - {% assign posts = collections.posts.pages %} - {% for post in posts %} -
-
-
-

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

-
-
-

- {{ post.title }} -

-
- {{ post.content | truncatewords: 50 }} -
-
- -
-
- {% endfor %} -
diff --git a/_includes/recent-posts.liquid b/_includes/recent-posts.liquid new file mode 100644 index 0000000..c93ce63 --- /dev/null +++ b/_includes/recent-posts.liquid @@ -0,0 +1,10 @@ +
+ + + {% assign posts = collections.posts.pages %} + {% for post in posts %} + {% include post-card.liquid %} + {% endfor %} +
diff --git a/_layouts/index.liquid b/_layouts/index.liquid index 39c0084..0c5e8db 100644 --- a/_layouts/index.liquid +++ b/_layouts/index.liquid @@ -8,10 +8,10 @@
+ is-primary + is-fullheight + is-fullheight-with-navbar + ">
{% include "nav.liquid" %} @@ -77,6 +77,24 @@
+ +
+
+

+ Latest Post +

+

+ + See the whole journal here. + +

+ + {% assign post = collections.posts.pages.first %} + {% include post-card.liquid %} +
+
+ +
diff --git a/_layouts/journal.liquid b/_layouts/journal.liquid index 8d8798c..81f6428 100644 --- a/_layouts/journal.liquid +++ b/_layouts/journal.liquid @@ -37,17 +37,17 @@
- +
- {% include post-list.liquid %} + {% include recent-posts.liquid %}
- + - +
{% include all-posts.liquid %}
- +
diff --git a/index.md b/index.md index 0966de8..dd2d9f0 100644 --- a/index.md +++ b/index.md @@ -3,12 +3,12 @@ layout: index.liquid title: Welcome! categories: ["index"] --- -# Welcome! +# Site Index -You've reached the personal and professional pages of Adam Carpenter -(53hornet). Below's a summary of what you'll find on my site. If you want to -search my site or get alerts when new content is added, [subscribe to my RSS -feed](/rss.xml). +Welcome! You've reached the personal and professional pages of Adam +Carpenter (53hornet). Below's a summary of what you'll find on my site. +If you want to search my site or get alerts when new content is added, +[subscribe to my RSS feed](/rss.xml). ## Journal -- cgit v1.2.3