diff options
author | Adam Carpenter <53hornet@gmail.com> | 2019-05-03 18:54:32 -0400 |
---|---|---|
committer | Adam Carpenter <53hornet@gmail.com> | 2019-05-03 18:54:32 -0400 |
commit | 689e85e78c106cefb6c83bcdbeae565d021d2e96 (patch) | |
tree | 2f96878c867040192f2722d94b9fe65aace1d1f1 /_includes/post-list.liquid | |
parent | 77458c3f87eafc1d17f9ef47f9926e0a5a98ceac (diff) | |
download | cobalt-site-689e85e78c106cefb6c83bcdbeae565d021d2e96.tar.xz cobalt-site-689e85e78c106cefb6c83bcdbeae565d021d2e96.zip |
Broke apart journal page elements, restored favicon.
Diffstat (limited to '_includes/post-list.liquid')
-rw-r--r-- | _includes/post-list.liquid | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/_includes/post-list.liquid b/_includes/post-list.liquid new file mode 100644 index 0000000..7f6d55d --- /dev/null +++ b/_includes/post-list.liquid @@ -0,0 +1,36 @@ +<div class="columns is-centered is-multiline"> + {% for post in collections.posts.pages %} + <div class="column is-full"> + <div class="card"> + <header class="card-header"> + <p class="card-header-title"> + {% if post.published_date %} + {{ post.published_date | date: "%A, %b %e, %Y" }} + {% endif %} + </p> + </header> + <div class="card-content"> + <p class="subtitle"> + {{ post.title }} + </p> + <div class="content"> + {{ post.content | truncatewords: 50 }} + </div> + </div> + <footer class="card-footer"> + <a class="card-footer-item" + href="{{ post.permalink }}" + > + Read more... + </a> + <a class="card-footer-item" + href="{{ post.permalink }}" + target="_blank" + > + Open in new tab... + </a> + </footer> + </div> + </div> + {% endfor %} +</div> |