summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorAdam Carpenter <gitlab@53hor.net>2019-06-12 19:44:53 -0400
committerAdam Carpenter <gitlab@53hor.net>2019-06-12 19:44:53 -0400
commit9caf57c3b642391325e9e70e03cead529f02516f (patch)
tree075cb63b607994edee1231a819186c945ca8358e /_includes
parent775a6ea8ed0665bcb2a3de432aca80da57184424 (diff)
downloadcobalt-site-9caf57c3b642391325e9e70e03cead529f02516f.tar.xz
cobalt-site-9caf57c3b642391325e9e70e03cead529f02516f.zip
Updated posts, removed lunr, fixed similar/all post list layout bug.
Diffstat (limited to '_includes')
-rw-r--r--_includes/all-posts.liquid4
-rw-r--r--_includes/post-list.liquid6
-rw-r--r--_includes/similar-posts.liquid1
3 files changed, 8 insertions, 3 deletions
diff --git a/_includes/all-posts.liquid b/_includes/all-posts.liquid
index ef05295..a681bfb 100644
--- a/_includes/all-posts.liquid
+++ b/_includes/all-posts.liquid
@@ -1,10 +1,10 @@
<aside class="menu">
- <p class="menu-label">
+ <p class="menu-label has-text-centered">
All Posts
</p>
<ul class="menu-list">
- {% assign posts = collections.posts.pages | reverse %}
+ {% assign posts = collections.posts.pages %}
{% for post in posts %}
<li>
<a href="/{{ post.permalink }}">
diff --git a/_includes/post-list.liquid b/_includes/post-list.liquid
index e62fd63..542d902 100644
--- a/_includes/post-list.liquid
+++ b/_includes/post-list.liquid
@@ -1,5 +1,9 @@
<div class="columns is-centered is-multiline">
- {% assign posts = collections.posts.pages | reverse %}
+ <p class="menu-label">
+ Recent Posts
+ </p>
+
+ {% assign posts = collections.posts.pages %}
{% for post in posts %}
<div class="column is-full">
<div class="card">
diff --git a/_includes/similar-posts.liquid b/_includes/similar-posts.liquid
index 0dddca2..9a7e33a 100644
--- a/_includes/similar-posts.liquid
+++ b/_includes/similar-posts.liquid
@@ -9,6 +9,7 @@
if post.categories
and page.categories
and page.title != post.title
+ and page.categories.first
and post.categories contains page.categories.first
%}
<li>