diff options
Diffstat (limited to '_layouts/journal.liquid')
-rw-r--r-- | _layouts/journal.liquid | 51 |
1 files changed, 44 insertions, 7 deletions
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 @@ </p> <ul class="menu-list"> - {% assign title = page.title | downcase %} - {% for post in collections.posts.pages %} - <li> - <a href="{{ post.permalink }}"> - {{ post.title }} - </a> - </li> + <li> + <a href="{{ post.permalink }}"> + {{ post.title }} + {% if post.published_date %} + <span class="has-text-light"> + {{ post.published_date | date: "%e %b %Y" }} + </span> + {% endif %} + </a> + </li> {% endfor %} </ul> </aside> @@ -70,6 +73,40 @@ <!-- begin long post list --> <div class="column"> + {% for i in (1..20) %} + {% for post in collections.posts.pages %} + <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> + {% endfor %} + {%endfor%} </div> <!-- end long post list --> |