Multiple Blogs In Single Jekyll Website

后端 未结 4 1864
后悔当初
后悔当初 2020-12-30 05:52

Is there a way I can have a single Jekyll website have more than one blog? I currently want to have two blogs in one site.

4条回答
  •  情书的邮戳
    2020-12-30 06:24

    There's a simpler solution than any of the answers so far.

    Folder structure:

    - blog1/ - _posts/ - blog2/ - _posts/

    Then in the index.html for blog1, use site.categories.blog1 instead of site.posts.

    See the documentation for "site.categories" and "page.categories" in https://jekyllrb.com/docs/variables/

提交回复
热议问题