ruby - Jekyll - Pagination issues -


I am using jacail and am trying to use pagination. The page I have read can only work in HTML files (like for list). So when I went to apply it, I just went to my config.yml and added

  PageNet: 5 paginate_path: "blog / page: number"  

and blog / I have added index.html

  --- layout: blogIndex ---  

Layout BlogIndex

  & lt ;! DOCTYPE HTML & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Blogs & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body onload = "init ();" Onresize = "setSize ();" & Gt; {% Include header.html%} & lt; Div id = "page" & gt; & Lt; Div id = "content" class = "{{page.title}}" & gt; For post in {% Paginator.posts%} & lt; Div class = "post" & gt; & Lt; A class = "bTitle" href = "{{post.url}}" & gt; {{Post.title}} & lt; / A & gt; & Lt; Div class = "date" & gt; {{Postdate | | Date: "% B% -d,% Y"}} & lt; / Div & gt; & Lt; Div class = "pContent" & gt; {{Post.excerpt}} & lt; / Div & gt; & Lt; / Div & gt; {% Endfor%} & lt; / Div & gt; & Lt; / Div & gt; {% Include footer.html%} & lt; / Body & gt; & Lt; / Html & gt;  

When I create my site and do not seam to work on / blog, then I have 12 posts created, but when I paginator Site , this will list all my posts (hence its inexplicable punjabinator who is not working). Is there something that I'm doing wrong or missing here?

You entered the wrong paginate paginate Config.yml . It should be:

  Paginated: 5 Page: "Blog / Page: Number"  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -