1
0
Fork 0

Use reverse order for categories (newest posts first)

This commit is contained in:
Luca Beltrame 2015-05-27 22:47:39 +02:00
parent eeced93dae
commit 11edc5f396

View file

@ -89,7 +89,7 @@ module Jekyll
self.ext = '.html' self.ext = '.html'
self.basename = 'index' self.basename = 'index'
self.content = <<-EOS self.content = <<-EOS
{% for post in page.posts %}<li><a href="{{ post.url | prepend: site.baseurl | replace: '//', '/' }}"><span>{{ post.title }}<span></a></li> {% for post in page.posts reversed %}<li><a href="{{ post.url | prepend: site.baseurl | replace: '//', '/' }}"><span>{{ post.title }}<span></a></li>
{% endfor %} {% endfor %}
EOS EOS
self.data = { self.data = {