git clone https://github.com/marc0s/oak.git
cd oak
python setup.py install
as3:~/oak# oak-admin.py -i oak-site (在当前目录下,会生成oak-site目录)
as3:~/oak# cd oak-site
as3:~/oak/oak-site# ls
content manage.py settings.py settings.pyc site static
as3:~/oak/oak-site#
as3:~/oak/oak-site# python manage.py -g (这个就是生成/更新静态网站的命令)
as3:~/oak/oak-site# cd site
as3:~/oak/oak-site/site# ls
2013 atom.xml authors.html static tags.html
archive.html author index.html tag
as3:~/oak/oak-site/site#
(可见~/oak/oak-site/site/就是静态网站的根目录)
发贴方法:
as3:~/oak/oak-site/site# cd ..
as3:~/oak/oak-site# ls
content manage.py settings.py settings.py.bak settings.pyc site static
as3:~/oak/oak-site# cd content
as3:~/oak/oak-site/content#
在~/oak/oak-site/content/下新建帖子2013-12-test1.md,格式如下:
---
title: test1
author: ym
pub_date: 2010-07-22 21:20:00
tags: ['oak', 'test']
---
这是测试1.
然后:
as3:~/oak/oak-site/content# cd ~/oak/oak-site/
as3:~/oak/oak-site# python manage.py -g
演示站点:http://oak.brite.biz/
项目地址:https://github.com/marc0s/oak/
cd oak
python setup.py install
as3:~/oak# oak-admin.py -i oak-site (在当前目录下,会生成oak-site目录)
as3:~/oak# cd oak-site
as3:~/oak/oak-site# ls
content manage.py settings.py settings.pyc site static
as3:~/oak/oak-site#
as3:~/oak/oak-site# python manage.py -g (这个就是生成/更新静态网站的命令)
as3:~/oak/oak-site# cd site
as3:~/oak/oak-site/site# ls
2013 atom.xml authors.html static tags.html
archive.html author index.html tag
as3:~/oak/oak-site/site#
(可见~/oak/oak-site/site/就是静态网站的根目录)
发贴方法:
as3:~/oak/oak-site/site# cd ..
as3:~/oak/oak-site# ls
content manage.py settings.py settings.py.bak settings.pyc site static
as3:~/oak/oak-site# cd content
as3:~/oak/oak-site/content#
在~/oak/oak-site/content/下新建帖子2013-12-test1.md,格式如下:
---
title: test1
author: ym
pub_date: 2010-07-22 21:20:00
tags: ['oak', 'test']
---
这是测试1.
然后:
as3:~/oak/oak-site/content# cd ~/oak/oak-site/
as3:~/oak/oak-site# python manage.py -g
演示站点:http://oak.brite.biz/
项目地址:https://github.com/marc0s/oak/