Fixing posts order.
This commit is contained in:
parent
61ad5c09b7
commit
19fcb1e75f
@ -31,7 +31,7 @@ sub Retrieve {
|
||||
}
|
||||
$cached_posts_by_category = {};
|
||||
$cached_posts_by_slug = {};
|
||||
for my $post_file ( reverse $POSTS_DIR->children ) {
|
||||
for my $post_file ( sort { $b cmp $a } $POSTS_DIR->children ) {
|
||||
warn "Bad file $post_file, omiting...", next
|
||||
if !-f $post_file || $post_file !~ /\.xml$/;
|
||||
my $dom = Mojo::DOM->new( $post_file->slurp_utf8 );
|
||||
|
Loading…
Reference in New Issue
Block a user