summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorAdam Carpenter <gitlab@53hor.net>2019-06-15 21:10:45 -0400
committerAdam Carpenter <gitlab@53hor.net>2019-06-15 21:10:45 -0400
commit402decfde5390d1c84a0a5dd74635de3d7c634c2 (patch)
tree1732099dfe6f0dd3ab04749cd68bfb29e075d250 /_layouts
parent6e06ad857b8fd93a3921c6f40dd8a8a04ccc4b9e (diff)
downloadcobalt-site-402decfde5390d1c84a0a5dd74635de3d7c634c2.tar.xz
cobalt-site-402decfde5390d1c84a0a5dd74635de3d7c634c2.zip
Broke out single post card; updated index with latest post.
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/index.liquid26
-rw-r--r--_layouts/journal.liquid10
2 files changed, 27 insertions, 9 deletions
diff --git a/_layouts/index.liquid b/_layouts/index.liquid
index 39c0084..0c5e8db 100644
--- a/_layouts/index.liquid
+++ b/_layouts/index.liquid
@@ -8,10 +8,10 @@
<body>
<!-- begin hero -->
<section class="hero
- is-primary
- is-fullheight
- is-fullheight-with-navbar
- ">
+ is-primary
+ is-fullheight
+ is-fullheight-with-navbar
+ ">
<!-- begin hero head -->
<div class="hero-head">
{% include "nav.liquid" %}
@@ -77,6 +77,24 @@
</section>
<!-- end hero -->
+ <!-- begin latest post -->
+ <section class="section">
+ <div class="container">
+ <p class="title">
+ Latest Post
+ </p>
+ <p class="subtitle">
+ <a href="/journal">
+ See the whole journal here.
+ </a>
+ </p>
+
+ {% assign post = collections.posts.pages.first %}
+ {% include post-card.liquid %}
+ </div>
+ </section>
+ <!-- end latest post -->
+
<!-- begin main content -->
<section class="section">
<div class="container">
diff --git a/_layouts/journal.liquid b/_layouts/journal.liquid
index 8d8798c..81f6428 100644
--- a/_layouts/journal.liquid
+++ b/_layouts/journal.liquid
@@ -37,17 +37,17 @@
<div class="container">
<div class="columns">
- <!-- begin long post list -->
+ <!-- begin short post list -->
<div class="column">
- {% include post-list.liquid %}
+ {% include recent-posts.liquid %}
</div>
- <!-- end long post list -->
+ <!-- end short post list -->
- <!-- begin short post list -->
+ <!-- begin long post list -->
<div class="column is-narrow">
{% include all-posts.liquid %}
</div>
- <!-- end short post list -->
+ <!-- end long post list -->
</div>
</div>