summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorAdam Carpenter <53hornet@gmail.com>2019-04-28 19:28:14 -0400
committerAdam Carpenter <53hornet@gmail.com>2019-04-28 19:28:14 -0400
commit47b4026485c89a23c48a9012593cff84f75e7b55 (patch)
treeaefb1b4ff65ed68319a3553004ac929b82478cb1 /_layouts
parentb293b709cba60ee827697928595e1b65ce96f1e3 (diff)
downloadcobalt-site-47b4026485c89a23c48a9012593cff84f75e7b55.tar.xz
cobalt-site-47b4026485c89a23c48a9012593cff84f75e7b55.zip
More sensible post organization and TOC.
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/page.liquid4
-rw-r--r--_layouts/post.liquid38
2 files changed, 28 insertions, 14 deletions
diff --git a/_layouts/page.liquid b/_layouts/page.liquid
index 101ebc2..9a728d1 100644
--- a/_layouts/page.liquid
+++ b/_layouts/page.liquid
@@ -35,7 +35,9 @@
<div class="columns">
<div class="column">
- {{ page.content }}
+ <div class="content">
+ {{ page.content }}
+ </div>
</div>
<div class="column is-narrow">
diff --git a/_layouts/post.liquid b/_layouts/post.liquid
index 382f17d..777f455 100644
--- a/_layouts/post.liquid
+++ b/_layouts/post.liquid
@@ -25,25 +25,35 @@
</h1>
<h2 class="subtitle">
- {{ page.published_date | date: "%A, %b %e, %Y" }}
+ {% if page.published_date %}
+ {{ page.published_date | date: "%A, %b %e, %Y" }}
+ {% else %}
+ Unpublished!
+ {% endif %}
</h2>
<!-- end title and date -->
<!-- begin categories and tags -->
{% if page.categories %}
- {% for category in page.categories %}
- <span class="tag">
- {{ category | downcase }}
- </span>
- {% endfor %}
+ <p>
+ Categories:
+ {% for category in page.categories %}
+ <span class="tag">
+ {{ category | downcase }}
+ </span>
+ {% endfor %}
+ </p>
{% endif %}
{% if page.tags %}
- {% for tag in page.tags %}
- <span class="tag">
- {{ tag | downcase }}
- </span>
- {% endfor %}
+ <p>
+ Tags:
+ {% for tag in page.tags %}
+ <span class="tag">
+ #{{ tag | downcase }}
+ </span>
+ {% endfor %}
+ </p>
{% endif %}
<!-- end categories and tags -->
@@ -57,8 +67,10 @@
<!-- begin main content -->
<section class="section">
<div class="container is-fluid">
- <div class="content">
- {{ page.content }}
+ <div class="columns">
+ <div class="content">
+ {{ page.content }}
+ </div>
</div>
</div>
</section>