Jekyll blog posts on non index.html pages

前端 未结 1 1819
耶瑟儿~
耶瑟儿~ 2021-02-08 23:58

I have used the below code snippet from the Jekyll website to paginate Jekyll plog posts on my index.html page:

相关标签:
1条回答
  • 2021-02-09 00:24

    If you want an url that looks like /pages/Blog/ for your posts listings :

    1. activate pagination by setting a paginate: 5 in _config.yml

    2. set paginate_path: pages/Blog/page:num in _config.yml

    3. rename /pages/Blog.html to pages/Blog/index.html

    0 讨论(0)
提交回复
热议问题