aboutsummaryrefslogtreecommitdiff
path: root/_plugins/filters.rb
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-25 20:31:01 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-25 20:31:01 +0100
commite7596b1b3cb58ad774aa8b7fad66d5f2298baa1a (patch)
tree4277c5abe8e4b72159a6cc07bf58581e9572cf92 /_plugins/filters.rb
parent596cdbdf682ef467bd99cb87dbeeb5ac98153d19 (diff)
add stale indicator + admonition css
Diffstat (limited to '_plugins/filters.rb')
-rw-r--r--_plugins/filters.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/_plugins/filters.rb b/_plugins/filters.rb
index c4ee527..78eb04f 100644
--- a/_plugins/filters.rb
+++ b/_plugins/filters.rb
@@ -15,9 +15,9 @@ module Filters
def post_sort(posts, sort_by)
# date (reverse chronological)
- return posts.sort_by{ |post| -post.date.to_i } if sort_by == "date"
+ return posts.sort_by{ |post| -post.data['date'].to_i } if sort_by == "date"
# title (case insensitive)
- return posts.sort_by{ |post| post.title.downcase } if sort_by == "title"
+ return posts.sort_by{ |post| post.data['title'].downcase } if sort_by == "title"
end
end