Navigation Menu

Skip to content

Commit

Permalink
blog: use site.posts limit:10 instead of paginator.posts
Browse files Browse the repository at this point in the history
Because Jekyll's paginator is available only the top index.html... We
can't use pagiantor in blog/ and ja/blog/...
  • Loading branch information
kou committed Jun 18, 2013
1 parent 988becc commit a6e1886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blog/index.html
Expand Up @@ -3,7 +3,7 @@
title: blogroonga
---
<div id="posts">
{% for post in paginator.posts %}
{% for post in site.posts limit:10 %}
{% if post.categories contains "en" %}
<div class="post">
<span class="date"><a href="{{ post.url}}" title="{{ post.title | escape }} ({{post.date | date: '%Y-%m-%d' }})">{{ post.date | date: "%Y-%m-%d" }}</a></span>
Expand Down
2 changes: 1 addition & 1 deletion ja/blog/index.html
Expand Up @@ -3,7 +3,7 @@
title: blogroonga
---
<div id="posts">
{% for post in paginator.posts %}
{% for post in site.posts limit:10 %}
{% if post.categories contains "ja" %}
<div class="post">
<span class="date"><a href="{{ post.url}}" title="{{ post.title | escape }} ({{post.date | date: '%Y-%m-%d' }})">{{ post.date | date: "%Y-%m-%d" }}</a></span>
Expand Down

0 comments on commit a6e1886

Please sign in to comment.