简体   繁体   中英

Remove 'blog' section in the Github Jekyll

I am wondering how to use the Github Jekyll website without the 'Blog' section (that includes posts). Could you share your solutions? Thanks in advance.

I'll have to make the assumption that you have a blog page, either blog.html or blog/index.html , and in that page you have a for loop calling site.posts or paginator.posts . You have two options:

  1. Delete the _posts directory.
  2. If you want to keep the posts in _posts but don't want them to display on your site, don't use those for loops mentioned above and you won't see the posts on the frontend.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM