2014-02-18 4 views
0

나는 지킬을 사용 중이며 페이지 매김을 사용하려고합니다. 내가 읽은 페이지 매김은 html 파일에서만 작동합니다 (for 목록처럼). 나는 그것을 impliment 갔을 때 그래서 난 그냥 단순히 레이아웃 blogIndex지킬 - 페이지 매김 문제

<!DOCTYPE HTML> 
<html> 
    <head> 
     <title>Blog</title> 
    </head> 
    <body onload="init();" onresize="setSize();"> 
     {% include header.html %} 
     <div id="page"> 
      <div id="content" class="{{ page.title }}"> 
      {% for post in paginator.posts %} 
       <div class="post"> 
        <a class="bTitle" href="{{post.url}}">{{post.title}}</a> 
        <div class="date"> 
         {{post.date | date: "%B %-d, %Y" }} 
        </div> 
        <div class="pContent"> 
         {{post.excerpt}} 
        </div> 
       </div> 
      {% endfor %} 
      </div> 
     </div> 
     {% include footer.html %} 
    </body> 
</html> 
을 포함

--- 
layout: blogIndex 
--- 

index.html을 추가 내 config.yml에 가서 Blog/

pageinate: 5 
paginate_path: "Blog/page:num" 

및 추가

내 사이트를 생성하고/블로그로 이동하여 작동하지 않습니다. 12 개의 게시물을 만들었지 만 0123을 바꿀 때 게시물이 표시되지 않습니다.을 site으로 지정하면 내 모든 게시물이 나열됩니다. (그래서 도전적이지 않은 페이지 매거진이 작동하지 않습니다.) 내가 여기서 잘못하고있는 일이 있습니까?

답변

2

paginate의 맞춤법이 잘못되었습니다. pageinateconfig.yml입니다. 다음과 같아야합니다.

paginate: 5 
paginate_path: "Blog/page:num"