Post

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

\[\begin{aligned} \dot{x} &= \sigma(y-x) \\ \dot{y} &= \rho x - y - xz \\ \dot{z} &= -\beta z + xy \end{aligned}\]

\(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
MathJaxLetexVersion 2.4.0
Duoshuo多说评论Version 1.0.0
DisqusDisqusVersion 1.0.0
haoxiqiang-template博客模板Version 1.0.0
This post is licensed under CC BY 4.0 by the author.