I have used the below code snippet from the Jekyll website to paginate Jekyll plog posts on my index.html page:
相关标签:
If you want an url that looks like /pages/Blog/ for your posts listings :
/pages/Blog/
activate pagination by setting a paginate: 5 in _config.yml
paginate: 5
_config.yml
set paginate_path: pages/Blog/page:num in _config.yml
paginate_path: pages/Blog/page:num
rename /pages/Blog.html to pages/Blog/index.html
pages/Blog/index.html