【问题标题】:Blog posts are not showing in Jekyll?Jekyll 中没有显示博客文章?
【发布时间】:2016-08-29 04:34:54
【问题描述】:
【问题讨论】:
标签:
ruby
github
jekyll
github-pages
【解决方案1】:
您必须发布添加_post目录,并且帖子名称必须是年-口-日-post_name.md格式
在博客主目录上运行命令 bundle exec jekyll build 或 jekyll build 并推送远程 repo。
【解决方案2】:
在我的情况下,博客发布时间是未来的日期(由于时区不匹配),因此虽然 _posts 文件夹中有我的降价文件,但它没有发布
执行 'jekyll build' 会给出相同的信息
sachinms@MS:/my-new-blog/my-personal-blog$ jekyll build
Configuration file: /my-new-blog/my-personal-blog/_config.yml
Theme Config file: /home/sachinms/gems/gems/jekyll-theme-chirpy-4.0.1/_config.yml
Source: /my-new-blog/my-personal-blog
Destination: /my-new-blog/my-personal-blog/_site
Incremental build: disabled. Enable with --incremental
Generating...
Skipping: _posts/2021-07-17-Minimal-API-ASPNET-6.md has a future date
done in 0.38 seconds.
Auto-regeneration: disabled. Use --watch to enable.