Jekyll搭建Blog
看过很多jekyll模板,借鉴Pure
我做了一个自己的模板,不定期更新,连接跳转到: haoxiqiang-template
in your _posts
directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve
, which launches a web server and auto-regenerates your site when a file is updated.
To add new posts, simply add a file in the _posts
directory that follows the convention YYYY-MM-DD-name-of-post.ext
and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. 下面的分割线,预览与全文的分割线 Jekyll also offers powerful support for code snippets:
支持代码高亮
1
2
3
4
5
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi,STDOUT.
支持letax,只需要在页面中声明letex: true
\(a^2 + b^2 = c^2\) When $a \ne 0$, there are two solutions to $ (ax^2 + bx + c = 0) $ and they are
涉及技术的链接:
Jekyll | 静态博客 | Version 2.5.2 |
MathJax | Letex | Version 2.4.0 |
Duoshuo | 多说评论 | Version 1.0.0 |
Disqus | Disqus | Version 1.0.0 |
haoxiqiang-template | 博客模板 | Version 1.0.0 |