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 ++++++++++ 3 files changed, 40 insertions(+), 41 deletions(-) create mode 100644 _includes/post-card.liquid delete mode 100644 _includes/post-list.liquid create mode 100644 _includes/recent-posts.liquid (limited to '_includes') 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 %} +
-- cgit v1.2.3