shithub: werc

Download patch

ref: feb9792cb10cf3e5c1c12bf0edc7b20ddbfc5ffb
parent: 51ad1dad502c4dee7e26d98d3c3aafe2fcb05f1b
author: uriel <uriel@engel.se.cat-v.org>
date: Thu Aug 28 19:33:53 EDT 2008

Minnor fix to filter out blog posts items that don't begin with a date (maybe this will break some 'legacy' posts?)

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -98,7 +98,7 @@
 fn sortedBlogPostList {
     # the /./ is added so we can sort -t. and order only the file name
     if (! ~ $#* 0)
-        ls $*^'/./' | grep '[0-9]+.*\.md$'| sort -r -t. +1
+        ls $*^'/./' | grep '/[0-9]+.*\.md$'| sort -r -t. +1
 }
 
 fn blogTitle {