我正在尝试向我的jekyll网站添加新帖子。但当我执行"jekyll serve-verbose"时,我发现我的新帖子并没有被jekyll阅读。我看了所有与我的问题相似的问题,但它们对我的情况不起作用。
我的新帖子名称是2018-04-18-第一个。markdown和2019-04-17-第二个。markdown,但jekyll试图读取默认帖子,而c是
将详细日志放在下面。
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.
[已解决]今天我再次尝试构建,它成功地构建了我想要的第一个和第二个帖子。我从Windows资源管理器复制并重命名帖子以创建新帖子。今天我意识到Ubuntu无法检测到我在Windows资源管理器中所做的更改,可能问题的核心是。现在一切似乎都正常了!
确保添加了front-matter标记(两行三个短划线("-"((。像这样:
---
---
(Rest of your content)
Frontmatter命令Jekyll处理并转换页面。https://jekyllrb.com/docs/front-matter/
今天我再次尝试构建,它成功地构建了我想要的第一个和第二个帖子。我从Windows资源管理器复制并重命名帖子以创建新帖子。今天我意识到Ubuntu无法检测到我在Windows资源管理器中所做的更改,可能问题的核心是。现在一切似乎都正常了!