V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Jekyll
http://jekyllrb.com/
Jekyll on GitHub
https://github.com/mojombo/jekyll
Jekyll-bootstrap
http://jekyllbootstrap.com/
Octopress
http://octopress.org/
nuc093
V2EX  ›  Jekyll

Jekyll 静态页面 md 格式怎么没有解析

  •  
  •   nuc093 · 2016-05-10 00:00:35 +08:00 · 5486 次点击
    这是一个创建于 2880 天前的主题,其中的信息可能已经有所发展或是发生改变。

    http://qinkun1234.github.io/git-manual/

    fork 了minimal-mistakes 3.0

    按照 manual https://jekyllrb.com/docs/posts/ 在 _posts 目录下新加了 2016-05-09-git-manual.md 文件后 push 。 预览效果如上怎么跟纯文本一样而不是预期的 markdown 解析格式呢。

    3 条回复    2016-05-10 21:01:37 +08:00
    junbaor
        1
    junbaor  
       2016-05-10 09:48:05 +08:00
    加这个头了吗?

    ```
    ---
    layout: post
    title: Git manual
    ---
    ```
    Andor_Chen
        2
    Andor_Chen  
       2016-05-10 12:50:43 +08:00
    原因是 post 这个 layout 不存在。

    我看你的提交历史,发现你创建了 _layouts/post.html ,然后又把它删了。你可能发现问题所在了,但是 post.html 里面的内容写的不对。
    nuc093
        3
    nuc093  
    OP
       2016-05-10 21:01:37 +08:00
    @junbaor @Andor_Chen
    初步解决了我先加了如下的头:
    ---
    layout: single
    title: Git manual
    ---
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3086 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 00:35 · PVG 08:35 · LAX 17:35 · JFK 20:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.