Pages

Sunday, 16 June 2013

在linux vps 上搭建基于python的静态博客程序-liquidluck

Installation

# pip install liquidluck或
# easy_install liquidluck 就装好了
# cd ~
# mkdir liquidluck-website-files
# cd liquidluck-website-files
# liquidluck init (你将被询问一些问题。如果问题有默认答案,回车即可。)
# ls
content     settings.yml
 
创建帖子:
# nano content/hello-world.md
 帖子的内容如下:
#Hello World (这是标题)
- date: 2012-12-12 (注意短划线和冒号后面都要空格)
- tags: misc (注意短划线和冒号后面都要空格)
---
你好,世界!

# liquidluck build -v (创建网站)
# ls
content     deploy      settings.yml (这里新出现的deploy目录就是网站的根目录,你可绑定一个
域名到此目录) 
 

示例: http://ll.brite.biz/
 
参考:
http://liquidluck.readthedocs.org/en/latest/
http://liquidluck.readthedocs.org/en/latest/install.html
http://liquidluck.readthedocs.org/en/latest/start.html
http://lab.lepture.com/liquidluck/ 
项目地址;https://github.com/avelino/liquidluck