Jekyll paginate blog as subdirectory

前端 未结 2 1115
花落未央
花落未央 2021-01-14 06:50

I\'m using Jekyll for a static site and I\'m trying to generate the blog as a subdirectory/subfolder:

http://example.com/blog

In the direct

2条回答
  •  伪装坚强ぢ
    2021-01-14 07:33

    Use the destination key in your _config.yml file to set the base path where you want the output to be published to. For example,

    paginate: 5
    destination: _site/blog
    

    Note that assuming your site is setup to server its root (e.g. "http://example.com/") from "_site" jekyll won't produce and "index.html" page at that location. Everything that jekyll builds will be under the "blog" directory, but that sounds like what you are after.

提交回复
热议问题