diff options
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/index.liquid | 2 | ||||
-rw-r--r-- | _layouts/journal.liquid | 51 | ||||
-rw-r--r-- | _layouts/page.liquid | 4 | ||||
-rw-r--r-- | _layouts/post.liquid | 4 |
4 files changed, 49 insertions, 12 deletions
diff --git a/_layouts/index.liquid b/_layouts/index.liquid index 1bea078..1b124c3 100644 --- a/_layouts/index.liquid +++ b/_layouts/index.liquid @@ -21,7 +21,7 @@ <!-- begin hero body --> <div class="hero-body"> - <div class="container is-fluid"> + <div class="container"> <div class="columns"> <div class="column"> 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 --> diff --git a/_layouts/page.liquid b/_layouts/page.liquid index 9a728d1..1c5cd99 100644 --- a/_layouts/page.liquid +++ b/_layouts/page.liquid @@ -18,7 +18,7 @@ <!-- begin hero body --> <div class="hero-body"> - <div class="container is-fluid"> + <div class="container"> <h1 class="title"> {{ page.title }} </h1> @@ -31,7 +31,7 @@ <!-- begin main content --> <section class="section"> - <div class="container is-fluid"> + <div class="container"> <div class="columns"> <div class="column"> diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 777f455..50fb240 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -18,7 +18,7 @@ <!-- begin hero body --> <div class="hero-body"> - <div class="container is-fluid"> + <div class="container"> <!-- begin title and date --> <h1 class="title"> {{ page.title }} @@ -66,7 +66,7 @@ <!-- begin main content --> <section class="section"> - <div class="container is-fluid"> + <div class="container"> <div class="columns"> <div class="content"> {{ page.content }} |