V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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 · May 10, 2016 · 6113 views
    This topic created in 3644 days ago, the information mentioned may be changed or developed.

    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 replies    2016-05-10 21:01:37 +08:00
    junbaor
        1
    junbaor  
       May 10, 2016
    加这个头了吗?

    ```
    ---
    layout: post
    title: Git manual
    ---
    ```
    Andor_Chen
        2
    Andor_Chen  
       May 10, 2016
    原因是 post 这个 layout 不存在。

    我看你的提交历史,发现你创建了 _layouts/post.html ,然后又把它删了。你可能发现问题所在了,但是 post.html 里面的内容写的不对。
    nuc093
        3
    nuc093  
    OP
       May 10, 2016
    @junbaor @Andor_Chen
    初步解决了我先加了如下的头:
    ---
    layout: single
    title: Git manual
    ---
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   779 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 20:40 · PVG 04:40 · LAX 13:40 · JFK 16:40
    ♥ Do have faith in what you're doing.