diff options
author | Adam Carpenter <53hornet@gmail.com> | 2019-05-01 20:55:05 -0400 |
---|---|---|
committer | Adam Carpenter <53hornet@gmail.com> | 2019-05-01 20:55:05 -0400 |
commit | 77458c3f87eafc1d17f9ef47f9926e0a5a98ceac (patch) | |
tree | 2b35ebc113195b30d9910c4092b74991b48bcd28 /_layouts | |
parent | 48951dee9900f50e940c4e30d173eab92aa89be3 (diff) | |
download | cobalt-site-77458c3f87eafc1d17f9ef47f9926e0a5a98ceac.tar.xz cobalt-site-77458c3f87eafc1d17f9ef47f9926e0a5a98ceac.zip |
Added TOC and cards to journal page.
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 }} |