Jekyll 不阅读新帖子

Jekyll is not reading new posts

我正在尝试向我的 jekyll 站点添加新的 post。但是当我执行 "jekyll serve --verbose" 时,我发现我的新 post 没有被 jekyll 读取。我已经查看了所有与我的问题类似的问题,但它们对我的情况不起作用。

我的新 post 名字是 2018-04-18-first.markdown2019-04-17-second.markdown 但 jekyll 尝试读取默认 post 即 2020-04-18-welcome-to-jekyll.markdown

将详细日志放在下面。

Logging at level: debug
Configuration file: /home/dozturk/50percent/_config.yml
         Requiring: kramdown
            Source: /home/dozturk/50percent
       Destination: /home/dozturk/50percent/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
           Reading: _posts/2020-04-18-welcome-to-jekyll.markdown
         Rendering: _posts/2020-04-18-welcome-to-jekyll.markdown
  Pre-Render Hooks: _posts/2020-04-18-welcome-to-jekyll.markdown
  Rendering Liquid: _posts/2020-04-18-welcome-to-jekyll.markdown
         Requiring: rouge
  Rendering Markup: _posts/2020-04-18-welcome-to-jekyll.markdown
         Requiring: kramdown
  Rendering Layout: _posts/2020-04-18-welcome-to-jekyll.markdown
         Rendering: _posts/2020-04-18-welcome-to-jekyll.markdown
  Pre-Render Hooks: _posts/2020-04-18-welcome-to-jekyll.markdown
  Rendering Liquid: _posts/2020-04-18-welcome-to-jekyll.markdown
  Rendering Markup: _posts/2020-04-18-welcome-to-jekyll.markdown
         Rendering: about.md
  Pre-Render Hooks: about.md
  Rendering Liquid: about.md
  Rendering Markup: about.md
  Rendering Layout: about.md
         Rendering: feed.xml
  Pre-Render Hooks: feed.xml
  Rendering Liquid: feed.xml
  Rendering Markup: feed.xml
  Rendering Layout: feed.xml
         Rendering: index.html
  Pre-Render Hooks: index.html
  Rendering Liquid: index.html
  Rendering Markup: index.html
  Rendering Layout: index.html
         Rendering: /css/main.scss
  Pre-Render Hooks: /css/main.scss
  Rendering Liquid: /css/main.scss
  Rendering Markup: /css/main.scss
                    done in 0.222 seconds.
         Requiring: jekyll-watch
         Requiring: kramdown
           Watcher: Ignoring (?-mix:_config\.yml)
           Watcher: Ignoring (?-mix:_site)
 Auto-regeneration: enabled for '/home/dozturk/50percent'
  Logging at level: debug
Configuration file: /home/dozturk/50percent/_config.yml
[2020-04-18 22:12:15] INFO  WEBrick 1.4.2
[2020-04-18 22:12:15] INFO  ruby 2.5.1 (2018-03-29) [x86_64-linux-gnu]
[2020-04-18 22:12:15] DEBUG WEBrick::HTTPServlet::FileHandler is mounted on /.
[2020-04-18 22:12:15] DEBUG unmount .
[2020-04-18 22:12:15] DEBUG Jekyll::Commands::Serve::Servlet is mounted on .
    Server address: http://127.0.0.1:4000/
[2020-04-18 22:12:15] INFO  WEBrick::HTTPServer#start: pid=3784 port=4000
  Server running... press ctrl-c to stop.
^C[2020-04-18 22:18:36] DEBUG close TCPSocket(127.0.0.1, 4000)
[2020-04-18 22:18:36] INFO  going to shutdown ...
[2020-04-18 22:18:36] INFO  WEBrick::HTTPServer#start done.

[已解决] 今天我再次尝试构建,它成功构建了我想要的第一个和第二个 posts。我正在从 Windows Explorer 中复制并重命名 posts 以创建新的 posts。今天我意识到 Ubuntu 没有检测到我在 Windows Explorer 中所做的更改,可能问题的核心就在于此。现在一切正常!

确保添加前题标签(两行三横线(“-”))。像这样:

---
---
(Rest of your content)

Frontmatter 告诉 Jekyll 处理和转换页面。 https://jekyllrb.com/docs/front-matter/

今天我再次尝试构建,它成功构建了我想要的第一和第二个帖子。我正在复制和重命名 Windows Explorer 中的帖子以创建新帖子。今天我意识到 Ubuntu 没有检测到我在 Windows Explorer 中所做的更改,可能问题的核心就在于此。现在一切正常!