git clone https://github.com/jandecaluwe/urubu urubu-site
cd urubu-site
python setup.py install (这样就装好了urubu.当然你也可以用更省事的做法:运行pip install urubu来安装它)
as3:~/urubu-site# ls
build doc MANIFEST.in setup.py urubu.egg-info
dist LICENSE.txt README.md urubu
as3:~/urubu-site# git clone https://github.com/jandecaluwe/urubu-quickstart urubu-quickstart-demo-site
as3:~/urubu-site# cd urubu-quickstart-demo-site
as3:~/urubu-site/urubu-quickstart-demo-site# ls
blog concepts.md deploy.md Makefile _site.yml
_build css index.md manual start.md
customize.md js organize.md UNLICENSE
CNAME demo _layouts _python
as3:~/urubu-site/urubu-quickstart-demo-site# mv _build _build-bak
as3:~/urubu-site/urubu-quickstart-demo-site# urubu build (这个就是生成/更新静态网站的根目录的命令)
as3:~/urubu-site/urubu-quickstart-demo-site# ls
blog concepts.md deploy.md Makefile _site.yml
_build css index.md manual start.md
_build-bak customize.md js organize.md UNLICENSE
CNAME demo _layouts _python
(出现了新的_build目录)
as3:~/urubu-site/urubu-quickstart-demo-site# cd _build
as3:~/urubu-site/urubu-quickstart-demo-site/_build# ls
blog css deploy.html manual UNLICENSE
CNAME customize.html index.html organize.html
concepts.html demo js start.html
(可见~/urubu-site/urubu-quickstart-demo-site/_build/就是静态网站的根目录)
as3:~/urubu-site/urubu-quickstart-demo-site/_build# nohup Rwebserver 54201 >
/dev/null &
访问http://as3.brite.biz:54201/,http://as3.brite.biz:54201/blog/即可看到网站效果。
发贴方法:
as3:~/urubu-site/urubu-quickstart-demo-site/_build# cd ../blog
as3:~/urubu-site/urubu-quickstart-demo-site/blog# ls
index.md latest_post.md oldest_post.md
as3:~/urubu-site/urubu-quickstart-demo-site/blog# nano test1.md
按 latest_post.md的格式,新建帖子test1.md,格式如下:
---
title: test1
layout: simple_page
date: 2014-06-10
---
这是测试1.
然后,
as3:~/urubu-site/urubu-quickstart-demo-site/blog# cd ..
as3:~/urubu-site/urubu-quickstart-demo-site# urubu build
演示站点:http://urb.bright.biz.st/blog
项目地址:https://github.com/jandecaluwe/urubu
https://github.com/jandecaluwe/urubu-quickstart
cd urubu-site
python setup.py install (这样就装好了urubu.当然你也可以用更省事的做法:运行pip install urubu来安装它)
as3:~/urubu-site# ls
build doc MANIFEST.in setup.py urubu.egg-info
dist LICENSE.txt README.md urubu
as3:~/urubu-site# git clone https://github.com/jandecaluwe/urubu-quickstart urubu-quickstart-demo-site
as3:~/urubu-site# cd urubu-quickstart-demo-site
as3:~/urubu-site/urubu-quickstart-demo-site# ls
blog concepts.md deploy.md Makefile _site.yml
_build css index.md manual start.md
customize.md js organize.md UNLICENSE
CNAME demo _layouts _python
as3:~/urubu-site/urubu-quickstart-demo-site# mv _build _build-bak
as3:~/urubu-site/urubu-quickstart-demo-site# urubu build (这个就是生成/更新静态网站的根目录的命令)
as3:~/urubu-site/urubu-quickstart-demo-site# ls
blog concepts.md deploy.md Makefile _site.yml
_build css index.md manual start.md
_build-bak customize.md js organize.md UNLICENSE
CNAME demo _layouts _python
(出现了新的_build目录)
as3:~/urubu-site/urubu-quickstart-demo-site# cd _build
as3:~/urubu-site/urubu-quickstart-demo-site/_build# ls
blog css deploy.html manual UNLICENSE
CNAME customize.html index.html organize.html
concepts.html demo js start.html
(可见~/urubu-site/urubu-quickstart-demo-site/_build/就是静态网站的根目录)
as3:~/urubu-site/urubu-quickstart-demo-site/_build# nohup Rwebserver 54201 >
/dev/null &
访问http://as3.brite.biz:54201/,http://as3.brite.biz:54201/blog/即可看到网站效果。
发贴方法:
as3:~/urubu-site/urubu-quickstart-demo-site/_build# cd ../blog
as3:~/urubu-site/urubu-quickstart-demo-site/blog# ls
index.md latest_post.md oldest_post.md
as3:~/urubu-site/urubu-quickstart-demo-site/blog# nano test1.md
按 latest_post.md的格式,新建帖子test1.md,格式如下:
---
title: test1
layout: simple_page
date: 2014-06-10
---
这是测试1.
然后,
as3:~/urubu-site/urubu-quickstart-demo-site/blog# cd ..
as3:~/urubu-site/urubu-quickstart-demo-site# urubu build
演示站点:http://urb.bright.biz.st/blog
项目地址:https://github.com/jandecaluwe/urubu
https://github.com/jandecaluwe/urubu-quickstart