Total Pageviews

Friday 30 August 2013

jekyll的神奇命令-jekyll build

在“用jekyll源码在github空间上搭建的静态博客”一文中,我展示了一些在github page上搭建的静态博客,我是在自己的linux vps上运行git命令进行操作的。因为我在自己的vps上安装了jekyll,所以我可以用jekyll build命令来把博客帖子发布到自己的vps上(即更新/生成博客网站到自己的vps上)。

我的示例:
在github上的网站为luckypoem14.github.io
在github上的网站为luckypoem13.github.io
在github上的网站为luckypoem11.github.io
在github上的网站为luckypoem9.github.io
在github上的网站为luckypoem5.github.io
在github上的网站为luckypoem4.github.io
在github上的网站为luckypoem3.github.io
在github上的网站为britebruce.github.io
在github上的网站为briteming.github.io

以luckypoem11.github.com为例:
as3:~/luckypoem11.github.com/_posts# nano 2013-08-30-我回来了.html
as3:~/luckypoem11.github.com/_posts# cd ..
as3:~/luckypoem11.github.com# jekyll build
Configuration file: /root/luckypoem11.github.com/_config.yml
       Deprecation: Auto-regeneration can no longer be set from your configuration file(s). Use the --watch/-w command-line option instead.
            Source: /root/luckypoem11.github.com
       Destination: /root/luckypoem11.github.com/_site
      Generating... done.
as3:~/luckypoem11.github.com#

以上生成的目录 /root/luckypoem11.github.com/_site即为博客网站的根目录。