【问题标题】:Blog posts are not showing in Jekyll?Jekyll 中没有显示博客文章?
【发布时间】:2016-08-29 04:34:54
【问题描述】:

我使用 Jekyll now 主题创建了一个博客。我已经在 github 中创建了 repo 来发布博客。但是这些帖子没有显示在 github 页面中。

回购:https://github.com/mubumbz/blog

博客:http://mubumbz.github.io/blog/

【问题讨论】:

标签: ruby github jekyll github-pages


【解决方案1】:

您必须发布添加_post目录,并且帖子名称必须是年-口-日-post_name.md格式
在博客主目录上运行命令 bundle exec jekyll buildjekyll 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.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-04
      • 1970-01-01
      • 2019-05-17
      • 2021-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多