mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Latest post is chosen first in related posts
This commit is contained in:
@@ -46,7 +46,8 @@ module Jekyll
|
||||
end
|
||||
|
||||
def most_recent_posts
|
||||
(self.site.posts - [self.post])[0..9]
|
||||
recent_posts = self.site.posts.reverse - [self.post]
|
||||
recent_posts.first(10)
|
||||
end
|
||||
|
||||
def display(output)
|
||||
|
||||
Reference in New Issue
Block a user