Jekyll Bootstrap

link

Install

gem install jekyll

follow link

$ git clone https://github.com/plusjade/jekyll-bootstrap.git liuminzhao.github.com
$ cd liuminzhao.github.com
$ git remote set-url origin git@github.com:liuminzhao/liuminzhao.github.com.git
$ git push origin master

Post

$ rake post title="helloworld"

or

$ rake post title="hellworld" date="2012/06/17"

Cite

<ul class="posts">

<li><span>01 Jun 2021</span> &raquo; <a href="/2021/06/01/samplesize">Simple Sample Size Calculator</a></li>

<li><span>14 Mar 2021</span> &raquo; <a href="/2021/03/14/rshiny">RShiny</a></li>

<li><span>21 Feb 2021</span> &raquo; <a href="/2021/02/21/chess">chess</a></li>

<li><span>20 Jan 2021</span> &raquo; <a href="/2021/01/20/browser-history">browser history</a></li>

<li><span>14 May 2019</span> &raquo; <a href="/2019/05/14/baby-name-initial">Animated Plots for Baby Name Initial</a></li>

<li><span>09 May 2019</span> &raquo; <a href="/2019/05/09/animated-bar-plot-for-nba-standing">Animated Bar Plot for NBA Standing</a></li>

<li><span>02 May 2014</span> &raquo; <a href="/2014/05/02/sql-notes">sql notes</a></li>

<li><span>03 Apr 2014</span> &raquo; <a href="/2014/04/03/shiny-notes">shiny notes</a></li>

<li><span>18 Feb 2014</span> &raquo; <a href="/2014/02/18/dlm-note">dlm note</a></li>

<li><span>27 Jan 2014</span> &raquo; <a href="/2014/01/27/notes-fpp">notes fpp</a></li>

<li><span>25 Jan 2014</span> &raquo; <a href="/2014/01/25/notes-dplyr">notes dplyr</a></li>

<li><span>07 Jan 2014</span> &raquo; <a href="/2014/01/07/statcomp3-notes">statcomp3 notes</a></li>

<li><span>03 Jan 2014</span> &raquo; <a href="/2014/01/03/notes-machine-learning">notes machine learning</a></li>

<li><span>02 Jan 2014</span> &raquo; <a href="/2014/01/02/notes-python-wrangling">notes python wrangling</a></li>

<li><span>02 Jan 2014</span> &raquo; <a href="/2014/01/02/notes-python-scraping">notes python scraping</a></li>

<li><span>01 Jan 2014</span> &raquo; <a href="/2014/01/01/notes-statistical-graphics">notes statistical graphics</a></li>

<li><span>24 Dec 2013</span> &raquo; <a href="/2013/12/24/notes-hmc">notes hmc</a></li>

<li><span>20 Dec 2013</span> &raquo; <a href="/2013/12/20/android-notes">android notes</a></li>

<li><span>26 Nov 2013</span> &raquo; <a href="/2013/11/26/twitter-notes">twitteR notes</a></li>

<li><span>11 Nov 2013</span> &raquo; <a href="/2013/11/11/stat-notes">stat notes</a></li>

<li><span>23 Oct 2013</span> &raquo; <a href="/2013/10/23/reveal-note">reveal note</a></li>

<li><span>18 Oct 2013</span> &raquo; <a href="/2013/10/18/sublime-text-2-notes">sublime text 2 notes</a></li>

<li><span>08 Sep 2013</span> &raquo; <a href="/2013/09/08/notes-slidify">notes slidify</a></li>

<li><span>05 Sep 2013</span> &raquo; <a href="/2013/09/05/notes-how-to-read-paper">notes how to read paper</a></li>

<li><span>31 Jul 2013</span> &raquo; <a href="/2013/07/31/jit-note">JIT note</a></li>

<li><span>03 Jul 2013</span> &raquo; <a href="/2013/07/03/vimium-note">vimium note</a></li>

<li><span>08 Jun 2013</span> &raquo; <a href="/2013/06/08/ruby-note">ruby note</a></li>

<li><span>01 May 2013</span> &raquo; <a href="/2013/05/01/notes-for-algorithm">notes for algorithm</a></li>

<li><span>14 Apr 2013</span> &raquo; <a href="/2013/04/14/note-for-vi">note for vi</a></li>

<li><span>29 Mar 2013</span> &raquo; <a href="/2013/03/29/ggplot2-notes">ggplot2 notes</a></li>

<li><span>28 Mar 2013</span> &raquo; <a href="/2013/03/28/numerical-root-finding">numerical root finding</a></li>

<li><span>02 Mar 2013</span> &raquo; <a href="/2013/03/02/writing-notes">writing notes</a></li>

<li><span>02 Mar 2013</span> &raquo; <a href="/2013/03/02/scientific-writing-notes">scientific writing notes</a></li>

<li><span>17 Feb 2013</span> &raquo; <a href="/2013/02/17/notes-for-git">notes for git</a></li>

<li><span>12 Feb 2013</span> &raquo; <a href="/2013/02/12/notes-for-mike-book">notes for mike book</a></li>

<li><span>07 Feb 2013</span> &raquo; <a href="/2013/02/07/emacs-elisp-notes">emacs elisp notes</a></li>

<li><span>04 Feb 2013</span> &raquo; <a href="/2013/02/04/notes-for-jags">notes for jags</a></li>

<li><span>15 Jan 2013</span> &raquo; <a href="/2013/01/15/fortran-notes">fortran notes</a></li>

<li><span>12 Jan 2013</span> &raquo; <a href="/2013/01/12/sas-notes">sas notes</a></li>

<li><span>30 Nov 2012</span> &raquo; <a href="/2012/11/30/copula-package-notes">copula package notes</a></li>

<li><span>02 Nov 2012</span> &raquo; <a href="/2012/11/02/linux-notes">linux notes</a></li>

<li><span>29 Oct 2012</span> &raquo; <a href="/2012/10/29/make-your-email-fancy">make your email fancy</a></li>

<li><span>28 Oct 2012</span> &raquo; <a href="/2012/10/28/notes-for-handbook-of-mcmc">Notes for Handbook of MCMC</a></li>

<li><span>28 Oct 2012</span> &raquo; <a href="/2012/10/28/how-to-add-cc-license-into-latex-file-and-how-to-build-latex-package">How to add CC license into LaTeX file and how to build LaTeX package</a></li>

<li><span>28 Oct 2012</span> &raquo; <a href="/2012/10/28/get-bibtex-from-google-scholar">Get BibTeX from Google Scholar</a></li>

<li><span>28 Oct 2012</span> &raquo; <a href="/2012/10/28/excel-to-latex-table">excel to latex table</a></li>

<li><span>24 Oct 2012</span> &raquo; <a href="/2012/10/24/tmux-notes">tmux notes</a></li>

<li><span>19 Oct 2012</span> &raquo; <a href="/2012/10/19/remote-r-package-on-mac">remote r package on mac</a></li>

<li><span>19 Oct 2012</span> &raquo; <a href="/2012/10/19/computing-on-mac">Computing on Mac</a></li>

<li><span>18 Oct 2012</span> &raquo; <a href="/2012/10/18/remote-on-mac">remote on mac</a></li>

<li><span>14 Oct 2012</span> &raquo; <a href="/2012/10/14/c-and-fortran-on-mac">c and fortran on mac</a></li>

<li><span>10 Oct 2012</span> &raquo; <a href="/2012/10/10/iterm2-notes">iterm2 notes</a></li>

<li><span>17 Sep 2012</span> &raquo; <a href="/2012/09/17/octave-notes">Octave Notes</a></li>

<li><span>13 Aug 2012</span> &raquo; <a href="/2012/08/13/python-notes">python notes</a></li>

<li><span>10 Aug 2012</span> &raquo; <a href="/2012/08/10/r-parallel-notes">R Parallel notes</a></li>

<li><span>07 Aug 2012</span> &raquo; <a href="/2012/08/07/java-notes">java notes</a></li>

<li><span>19 Jul 2012</span> &raquo; <a href="/2012/07/19/notes-create-r-package">notes for create R package </a></li>

<li><span>16 Jul 2012</span> &raquo; <a href="/2012/07/16/notes-for-mutt">Notes for Mutt</a></li>

<li><span>30 Jun 2012</span> &raquo; <a href="/2012/06/30/org-to-slidy">Notes with org-slidy</a></li>

<li><span>30 Jun 2012</span> &raquo; <a href="/2012/06/30/org-to-s5">Notes for org mode to S5</a></li>

<li><span>28 Jun 2012</span> &raquo; <a href="/2012/06/28/mushroom-notes">蘑菇语录</a></li>

<li><span>26 Jun 2012</span> &raquo; <a href="/2012/06/26/tofu-fish-fillet">Tofu Fish Fillet</a></li>

<li><span>25 Jun 2012</span> &raquo; <a href="/2012/06/25/emacs-gdb-debug-fortran">Emacs GDB Debug Fortran</a></li>

<li><span>24 Jun 2012</span> &raquo; <a href="/2012/06/24/slides-skill-notes">slides skill notes</a></li>

<li><span>23 Jun 2012</span> &raquo; <a href="/2012/06/23/r-notes">r notes</a></li>

<li><span>22 Jun 2012</span> &raquo; <a href="/2012/06/22/zongzi">作粽子</a></li>

<li><span>21 Jun 2012</span> &raquo; <a href="/2012/06/21/pro-tips-for-grad-students">Pro Tips for Grad students Notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/statcomp2-notes">statcomp2 notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/statcomp-notes">statcomp notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/simulation-notes">simulation notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/programmer-notes">programmer notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/org2html5-notes">org2html5 notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/org-notes">org notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/markdown-notes">markdown notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/latex-notes">latex notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/jekyll-notes">jekyll notes</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/hello-world">Hello World</a></li>

<li><span>17 Jun 2012</span> &raquo; <a href="/2012/06/17/emacs-notes">emacs notes</a></li>

</ul>

Page

$ rake page name="about.md"
$ rake page name="pages/about.md"

Create a page with a “pretty” path:

$ rake page name="pages/about"

this will create the file: ./pages/about/index.html

Publish

$ git add .
$ git commit -m "new"
$ git push origin master

Theme

$ rake theme:install # install theme
$ rake theme:package # package theme
$ rake theme:switch

$ rake theme:install git="git://github.com/jekyllbootstrap/theme-mark-reid.git"

or downlaod zip into ./_theme_packages and

$ rake theme:install name="name"

Post Attributes

layout: page
title :  Hello World
categories : [lessons, beginner] #This defines the category hierarchy lessons/beginner”.
tagline: Supporting tagline
tag: [ ]

Preview

jekyll serve
jekyll serve --watch : to rebuild after every save

localhost

API

JB API

关于域名

在本地代码库里新建名为CNAME的文本文件,把域名地址放进去。假设你的域名是domain.com,可以用命令

echo 'domain.com' > CNAME

然后

git add CNAME
git commit -am "CNAME file added"
git push

在 godaddy.com 里修改 DNS A 指向 207.97.227.245 (github 域名).

Github 不更新问题

清除 cache, 刷新.

中文列表乱

http://yangzetian.github.com/2012/03/28/markdown/

上网查后得知原来是 jeklly 默认 markdown 引擎 maruku 的问题,将引擎改为 rdiscount 即可。做法是修改 _config.yml 文件,在 pygments: true 上面添加一行 markdown: rdiscount

同时, 在默认的 maruku 下, 在 gist 之后的文字有时候会显示不出来. 在改成 rdiscount 后, 就好了.

Math/LaTeX

reference 1

reference 2

reference 3

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

(Those configuration options allow you to use more tex notation to start your math environment, such as \begin{equation}, etc).

Usage:

$\alpha$

or

$$
\alpha
$$

supported : http://docs.mathjax.org/en/latest/tex.html

Update:

seems need one more \ to make it work

Update modified date

In prefix, add

Time-stamp: " "

or

modified: 2013/07/01

then in _includes/themes/hooligan/post.html, update

<h4>Modified</h4>
<div class="date">
<span>liuminzhao 02/06/2014 11:46:49</span>
</div>

With pretty date format:

2 June 2014

for 9 September 2013.

change auto puts when creating new post and page

modify the Rakefile under root directory

post.puts 'Time-stamp: " "'

for task:post

Put page in navigation

layout: page
group: naivgation

Show Latest Posts

... Show the post ...

<h1>Recent Posts</h1>

... Show the next to posts ...

... Show the next to posts ...

use limit and offset.

Second method: https://gist.github.com/nimbupani/1421828



Published

17 June 2012

Modified

2 June 2014

Tags