summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Carpenter <53hornet@gmail.com>2019-05-04 11:28:24 -0400
committerAdam Carpenter <53hornet@gmail.com>2019-05-04 11:28:24 -0400
commit37a224065d3dc16e9ac73884f4d297f88d599f29 (patch)
treece21db592daca388bf668dc6055d341903131423
parent689e85e78c106cefb6c83bcdbeae565d021d2e96 (diff)
downloadcobalt-site-37a224065d3dc16e9ac73884f4d297f88d599f29.tar.xz
cobalt-site-37a224065d3dc16e9ac73884f4d297f88d599f29.zip
Posts on journal page are chronological, with most recent at the top.
-rw-r--r--_defaults/posts.md2
-rw-r--r--_includes/all-posts.liquid5
-rw-r--r--_includes/post-list.liquid3
-rw-r--r--_includes/similar-posts.liquid31
-rw-r--r--posts/2019-04-06-why-have-a-website-in-2019.md12
-rw-r--r--posts/how-to-start-and-drive-a-hudson-hornet.md10
-rw-r--r--posts/my-first-car-is-a-1953-hudson-hornet.md9
-rw-r--r--posts/oh-sh-t-or-the-case-for-safer-classic-cars.md9
-rw-r--r--posts/school-server-closets-are-utopic.md10
-rw-r--r--posts/what-is-a-scripting-language-really.md10
10 files changed, 78 insertions, 23 deletions
diff --git a/_defaults/posts.md b/_defaults/posts.md
index 90973a9..278e5e0 100644
--- a/_defaults/posts.md
+++ b/_defaults/posts.md
@@ -5,6 +5,6 @@ layout: post.liquid
title: New Post
tags: []
categories: []
-permalink: "/posts/{{categories}}/{{slug}}"
+permalink: /posts/{{categories}}/{{slug}}
---
Start writing already...
diff --git a/_includes/all-posts.liquid b/_includes/all-posts.liquid
index f8377b1..ef05295 100644
--- a/_includes/all-posts.liquid
+++ b/_includes/all-posts.liquid
@@ -4,9 +4,10 @@
</p>
<ul class="menu-list">
- {% for post in collections.posts.pages %}
+ {% assign posts = collections.posts.pages | reverse %}
+ {% for post in posts %}
<li>
- <a href="{{ post.permalink }}">
+ <a href="/{{ post.permalink }}">
{% if post.published_date %}
<span class="tag">
{{ post.published_date | date: "%e %b %Y" }}
diff --git a/_includes/post-list.liquid b/_includes/post-list.liquid
index 7f6d55d..e62fd63 100644
--- a/_includes/post-list.liquid
+++ b/_includes/post-list.liquid
@@ -1,5 +1,6 @@
<div class="columns is-centered is-multiline">
- {% for post in collections.posts.pages %}
+ {% assign posts = collections.posts.pages | reverse %}
+ {% for post in posts %}
<div class="column is-full">
<div class="card">
<header class="card-header">
diff --git a/_includes/similar-posts.liquid b/_includes/similar-posts.liquid
index be5ef52..0dddca2 100644
--- a/_includes/similar-posts.liquid
+++ b/_includes/similar-posts.liquid
@@ -5,19 +5,24 @@
<ul class="menu-list">
{% for post in collections.posts.pages %}
- {% if post.categories contains page.categories.first %}
- <li>
- <a href="{{ post.permalink }}">
- {% if post.published_date %}
- <span class="tag is-rounded">
- {{ post.published_date | date: "%e %b %Y" }}
- </span>
- {% endif %}
+ {%
+ if post.categories
+ and page.categories
+ and page.title != post.title
+ and post.categories contains page.categories.first
+ %}
+ <li>
+ <a href="/{{ post.permalink }}">
+ {% if post.published_date %}
+ <span class="tag is-rounded">
+ {{ post.published_date | date: "%e %b %Y" }}
+ </span>
+ {% endif %}
- {{ post.title }}
- </a>
- </li>
- {% endif %}
- {% endfor %}
+ {{ post.title }}
+ </a>
+ </li>
+ {% endif %}
+ {% endfor %}
</ul>
</aside>
diff --git a/posts/2019-04-06-why-have-a-website-in-2019.md b/posts/2019-04-06-why-have-a-website-in-2019.md
index 2892dd4..3c74763 100644
--- a/posts/2019-04-06-why-have-a-website-in-2019.md
+++ b/posts/2019-04-06-why-have-a-website-in-2019.md
@@ -1,13 +1,13 @@
---
-permalink: "/posts/{{categories}}/{{slug}}"
+permalink: /posts/{{categories}}/{{slug}}
title: Why Have a Website in 2019?
categories:
- - technology
+ - technology
tags:
- - website
- - self-hosted
- - blog
- - online presence
+ - website
+ - self-hosted
+ - blog
+ - online presence
published_date: "2019-04-06 20:50:19 +0000"
layout: post.liquid
is_draft: false
diff --git a/posts/how-to-start-and-drive-a-hudson-hornet.md b/posts/how-to-start-and-drive-a-hudson-hornet.md
new file mode 100644
index 0000000..8728fba
--- /dev/null
+++ b/posts/how-to-start-and-drive-a-hudson-hornet.md
@@ -0,0 +1,10 @@
+---
+permalink: /posts/{{categories}}/{{slug}}
+title: How to Start and Drive a Hudson Hornet
+categories:
+ - automotive
+tags: []
+layout: post.liquid
+is_draft: true
+---
+Start writing already...
diff --git a/posts/my-first-car-is-a-1953-hudson-hornet.md b/posts/my-first-car-is-a-1953-hudson-hornet.md
new file mode 100644
index 0000000..50f857d
--- /dev/null
+++ b/posts/my-first-car-is-a-1953-hudson-hornet.md
@@ -0,0 +1,9 @@
+---
+permalink: "/posts/{{categories}}/{{slug}}"
+title: My First Car is a 1953 Hudson Hornet
+categories: ["automotive"]
+tags: []
+layout: post.liquid
+is_draft: true
+---
+Start writing already...
diff --git a/posts/oh-sh-t-or-the-case-for-safer-classic-cars.md b/posts/oh-sh-t-or-the-case-for-safer-classic-cars.md
new file mode 100644
index 0000000..55c93b1
--- /dev/null
+++ b/posts/oh-sh-t-or-the-case-for-safer-classic-cars.md
@@ -0,0 +1,9 @@
+---
+permalink: "/posts/{{categories}}/{{slug}}"
+title: "Oh, Sh*t, or, the Case for Safer Classic Cars"
+categories: ["automotive"]
+tags: []
+layout: post.liquid
+is_draft: true
+---
+Start writing already...
diff --git a/posts/school-server-closets-are-utopic.md b/posts/school-server-closets-are-utopic.md
new file mode 100644
index 0000000..97650c6
--- /dev/null
+++ b/posts/school-server-closets-are-utopic.md
@@ -0,0 +1,10 @@
+---
+permalink: /posts/{{categories}}/{{slug}}
+title: School Server Closets are Utopic
+categories:
+- technology
+tags: []
+layout: post.liquid
+is_draft: true
+---
+Start writing already...
diff --git a/posts/what-is-a-scripting-language-really.md b/posts/what-is-a-scripting-language-really.md
new file mode 100644
index 0000000..dd95ce7
--- /dev/null
+++ b/posts/what-is-a-scripting-language-really.md
@@ -0,0 +1,10 @@
+---
+permalink: /posts/{{categories}}/{{slug}}
+title: What Is a Scripting Language Really?
+categories:
+ - technology
+tags: []
+layout: post.liquid
+is_draft: true
+---
+Start writing already...