git clone https://github.com/pyblosxom/pyblosxom.git
cd pyblosxom
python setup.py install
pyblosxom-cmd create pyblosxom-site
cd pyblosxom-site
as3:~/pyblosxom/pyblosxom-site# ls
blog.ini config.py entries flavours plugins pyblosxom.cgi
as3:~/pyblosxom/pyblosxom-site# nano config.py (编辑config.py,指定static_dir的路径,即指定静态网站的根目录,我指定为~/pyblosxom/pyblosxom-site/output/.把py["base_url"]的值改为你的域名地址,我的是http://pblx.brite.biz)
as3:~/pyblosxom/pyblosxom-site# pyblosxom-cmd staticrender (运行此命令后,会在当前目录下生成output目录。)
as3:~/pyblosxom/pyblosxom-site# ls
blog.ini config.pyc flavours plugins
config.py entries output pyblosxom.cgi (可看到,新出现了output目录)
as3:~/pyblosxom/pyblosxom-site# ls output
2013 firstpost.html index.html
as3:~/pyblosxom/pyblosxom-site# cd output
as3:~/pyblosxom/pyblosxom-site/output# ls
2013 firstpost.html index.html
(可见~/pyblosxom/pyblosxom-site/output/果然是静态网站的根目录)
as3:~/pyblosxom/pyblosxom-site/output#
发贴方法:
as3:~/pyblosxom/pyblosxom-site/output# cd ~/pyblosxom/pyblosxom-site/entries/
as3:~/pyblosxom/pyblosxom-site/entries# ls
firstpost.txt
as3:~/pyblosxom/pyblosxom-site/entries#
按firstpost.txt的内容格式,新建帖子test1.txt,格式如下:
test1 (这是标题)
这是测试1. (这是正文)
然后:
as3:~/pyblosxom/pyblosxom-site/entries# cd ..
as3:~/pyblosxom/pyblosxom-site# pyblosxom-cmd staticrender
演示站点:http://pblx.brite.biz/
项目地址:https://github.com/pyblosxom/pyblosxom
使用指南:
cd pyblosxom
python setup.py install
pyblosxom-cmd create pyblosxom-site
cd pyblosxom-site
as3:~/pyblosxom/pyblosxom-site# ls
blog.ini config.py entries flavours plugins pyblosxom.cgi
as3:~/pyblosxom/pyblosxom-site# nano config.py (编辑config.py,指定static_dir的路径,即指定静态网站的根目录,我指定为~/pyblosxom/pyblosxom-site/output/.把py["base_url"]的值改为你的域名地址,我的是http://pblx.brite.biz)
as3:~/pyblosxom/pyblosxom-site# pyblosxom-cmd staticrender (运行此命令后,会在当前目录下生成output目录。)
as3:~/pyblosxom/pyblosxom-site# ls
blog.ini config.pyc flavours plugins
config.py entries output pyblosxom.cgi (可看到,新出现了output目录)
as3:~/pyblosxom/pyblosxom-site# ls output
2013 firstpost.html index.html
as3:~/pyblosxom/pyblosxom-site# cd output
as3:~/pyblosxom/pyblosxom-site/output# ls
2013 firstpost.html index.html
(可见~/pyblosxom/pyblosxom-site/output/果然是静态网站的根目录)
as3:~/pyblosxom/pyblosxom-site/output#
发贴方法:
as3:~/pyblosxom/pyblosxom-site/output# cd ~/pyblosxom/pyblosxom-site/entries/
as3:~/pyblosxom/pyblosxom-site/entries# ls
firstpost.txt
as3:~/pyblosxom/pyblosxom-site/entries#
按firstpost.txt的内容格式,新建帖子test1.txt,格式如下:
test1 (这是标题)
这是测试1. (这是正文)
然后:
as3:~/pyblosxom/pyblosxom-site/entries# cd ..
as3:~/pyblosxom/pyblosxom-site# pyblosxom-cmd staticrender
演示站点:http://pblx.brite.biz/
项目地址:https://github.com/pyblosxom/pyblosxom
使用指南:
http://pyblosxom.github.io/Documentation/1.5/index.html
https://pyblosxom.github.io/Documentation/1.5/install.html
http://pyblosxom.github.io/Documentation/1.5/plugins/paginate.html (创建分页的方法)
http://pyblosxom.github.io/Documentation/1.5/plugins/paginate.html (创建分页的方法)