【问题标题】:Jekyll categories will not work if they have spacesJekyll 类别如果有空格将不起作用
【发布时间】:2014-10-25 07:49:49
【问题描述】:

这是我第一次使用 jekyll,我遇到了一些分类问题

以下工作正常:

categories:
  - test
  - test1

但如果我尝试用两个词来分类,例如

categories:
- test test
- test1

然后网站中断,我收到以下错误:

Not Found
`/test/test1/2014/10/24/paper-prototype-the-anti-coding-usability-test.html' not found.

我已经尝试了所有不同的前页格式,但都无法正常工作。不过,它与标签配合得很好。

任何帮助将不胜感激!

谢谢。

【问题讨论】:

    标签: jekyll


    【解决方案1】:

    我没有意识到 jekyll 正在将类别添加到 URL,我更新了我的 _config 以包含 permalink: /:title/ 这样它就不再这样了。现在它的工作:)

    【讨论】:

      猜你喜欢
      • 2018-08-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-09
      • 2019-01-20
      • 1970-01-01
      相关资源
      最近更新 更多