博客相关小知识

1.修改友情链接直接改模板:

_includes/themes/twitter/index.html
_includes/themes/twitter/post.html

2.代码高亮,添加css,修改:

_includes/themes/twitter/default.html
先不做代码高亮了,以前的代码没办法处理,蛋疼。

cd assets/themes/twitter/css
pygmentize -S manni -f html > pygments.css
_includes/themes/twitter/default.html 引用css文件

参考:http://zyzhang.github.io/blog/2012/08/31/highlight-with-Jekyll-and-Pygments/
      http://jekyllcn.com/docs/templates/
      https://demisx.github.io/jekyll/2014/01/13/improve-code-highlighting-in-jekyll.html

3.百度统计代码,直接改文件:

vim _includes/themes/twitter/default.html

4.python中静态博客pelican很好看的模板:

pelican:  http://oncrashreboot.com/elegant-best-pelican-theme-features

5.不想显示某篇文章,在文章的YAML头信息添加:

published: false

6.评论系统,直接插入代码:

vim _includes/themes/twitter/post.html

参考资料:

Bootstrap中文网翻译整理: http://jekyll.bootcss.com/

jekyll中文文档:http://jekyllcn.com/

jekyllbootstrap:http://jekyllbootstrap.com/