【问题标题】:jekyll not generating _postsjekyll 没有生成 _posts
【发布时间】:2013-02-09 09:12:30
【问题描述】:

我无法让 jekyll 将 _posts 目录中的帖子转换为 html。它会正确生成 index.md,但不会为帖子生成任何内容。当我添加“来源:_posts”时,它会转换帖子,但不会转换 index.md。

据我所知,'source' 不应该添加到 _config.yml 以指向 '.'

我的目录结构很标准:

$ 查找 .|fgrep -v 引导程序 . ./index.md ./_config.yml ./_drafts ./_includes ./_includes/footer.html ./_includes/header.html ./_layouts ./_layouts/default.html ./_posts ./_posts/2013--02-25-test-blog.md 。/_地点 ./_site/index.html $猫_config.yml 名称:“开发者博客” 描述: ”” 网址:“http://localhost:4000” 资源: 。 分页:10 降价:rdiscount 固定链接:漂亮 pygments:真 自动:真

即使我关闭自动,我也看不到堆栈跟踪。

$ cat _posts/2013--02-25-test-blog.md --- 布局:默认 标题:测试博客 --- #测试博客 这是一个测验

【问题讨论】:

    标签: ruby jekyll rdiscount


    【解决方案1】:
    _posts/2013--02-25-test-blog.md
    

    这个名字不正确。

    也许用这个

    _posts/2013-02-25-test-blog.md
    

    请注意,年份后只有 1 个连字符。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-13
      • 2020-10-02
      • 2012-08-24
      • 2020-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多