[Groonga-mysql-commit] mroonga/mroonga.github.com at 53c8aab [master] blog: use site.posts limit:10 instead of paginator.posts

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 18 20:04:49 JST 2013


Kouhei Sutou	2013-06-18 20:04:49 +0900 (Tue, 18 Jun 2013)

  New Revision: 53c8aabd2acbe9c8036981d2050f926583af4951
  https://github.com/mroonga/mroonga.github.com/commit/53c8aabd2acbe9c8036981d2050f926583af4951

  Message:
    blog: use site.posts limit:10 instead of paginator.posts
    
    Because Jekyll's paginator is available only the top index.html... We
    can't use pagiantor in blog/ and ja/blog/...

  Modified files:
    blog/index.html
    ja/blog/index.html

  Modified: blog/index.html (+1 -1)
===================================================================
--- blog/index.html    2013-06-18 12:51:46 +0900 (10ba7b0)
+++ blog/index.html    2013-06-18 20:04:49 +0900 (b9cb348)
@@ -4,7 +4,7 @@ title: mroonga blog
 relative_path: blog/
 ---
 <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>

  Modified: ja/blog/index.html (+1 -1)
===================================================================
--- ja/blog/index.html    2013-06-18 12:51:46 +0900 (704bac3)
+++ ja/blog/index.html    2013-06-18 20:04:49 +0900 (0d7358b)
@@ -3,7 +3,7 @@ layout: ja
 title: mroongaブログ
 ---
 <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>
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index