From b9f1e7a0a1142d3060e2a3a020282eb5dca8f86a Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Sat, 15 Jun 2019 21:51:00 -0400 Subject: Broke out post links, organized _includes. --- _includes/all-posts.liquid | 21 --------------------- _includes/post-link.liquid | 11 +++++++++++ _includes/posts-all.liquid | 12 ++++++++++++ _includes/posts-recent.liquid | 15 +++++++++++++++ _includes/posts-similar.liquid | 19 +++++++++++++++++++ _includes/recent-posts.liquid | 10 ---------- _includes/similar-posts.liquid | 29 ----------------------------- _layouts/journal.liquid | 4 ++-- _layouts/post.liquid | 2 +- 9 files changed, 60 insertions(+), 63 deletions(-) delete mode 100644 _includes/all-posts.liquid create mode 100644 _includes/post-link.liquid create mode 100644 _includes/posts-all.liquid create mode 100644 _includes/posts-recent.liquid create mode 100644 _includes/posts-similar.liquid delete mode 100644 _includes/recent-posts.liquid delete mode 100644 _includes/similar-posts.liquid diff --git a/_includes/all-posts.liquid b/_includes/all-posts.liquid deleted file mode 100644 index a681bfb..0000000 --- a/_includes/all-posts.liquid +++ /dev/null @@ -1,21 +0,0 @@ - diff --git a/_includes/post-link.liquid b/_includes/post-link.liquid new file mode 100644 index 0000000..92548cf --- /dev/null +++ b/_includes/post-link.liquid @@ -0,0 +1,11 @@ +
  • + + {% if post.published_date %} + + {{ post.published_date | date: "%e %b %Y" }} + + {% endif %} + + {{ post.title }} + +
  • diff --git a/_includes/posts-all.liquid b/_includes/posts-all.liquid new file mode 100644 index 0000000..8088e82 --- /dev/null +++ b/_includes/posts-all.liquid @@ -0,0 +1,12 @@ + diff --git a/_includes/posts-recent.liquid b/_includes/posts-recent.liquid new file mode 100644 index 0000000..8aae606 --- /dev/null +++ b/_includes/posts-recent.liquid @@ -0,0 +1,15 @@ +
    + + + + {% assign posts = collections.posts.pages %} + {% for post in posts %} +
    + {% include post-card.liquid %} +
    + {% endfor %} +
    diff --git a/_includes/posts-similar.liquid b/_includes/posts-similar.liquid new file mode 100644 index 0000000..6879d3b --- /dev/null +++ b/_includes/posts-similar.liquid @@ -0,0 +1,19 @@ + diff --git a/_includes/recent-posts.liquid b/_includes/recent-posts.liquid deleted file mode 100644 index c93ce63..0000000 --- a/_includes/recent-posts.liquid +++ /dev/null @@ -1,10 +0,0 @@ -
    - - - {% assign posts = collections.posts.pages %} - {% for post in posts %} - {% include post-card.liquid %} - {% endfor %} -
    diff --git a/_includes/similar-posts.liquid b/_includes/similar-posts.liquid deleted file mode 100644 index 9a7e33a..0000000 --- a/_includes/similar-posts.liquid +++ /dev/null @@ -1,29 +0,0 @@ - diff --git a/_layouts/journal.liquid b/_layouts/journal.liquid index 81f6428..4478778 100644 --- a/_layouts/journal.liquid +++ b/_layouts/journal.liquid @@ -39,13 +39,13 @@
    - {% include recent-posts.liquid %} + {% include posts-recent.liquid %}
    - {% include all-posts.liquid %} + {% include posts-all.liquid %}
    diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 80831a2..d945917 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -70,7 +70,7 @@
    - {% include similar-posts.liquid %} + {% include posts-similar.liquid %}
    -- cgit v1.2.3