git clone https://github.com/inky/pilcrow.git
cd pilcrow
as3:~/pilcrow# ls
example-site LICENSE pilcrow pilcrow.py README
as3:~/pilcrow# cd example-site
as3:~/pilcrow/example-site# ls
content deploy files site.yml templates
as3:~/pilcrow/example-site# cd deploy
as3:~/pilcrow/example-site/deploy# ls
2008 2009.html index.html robots.txt wikipedia.html
2008.html about.html loremipsum.html style.css wtf.html
2009 feed.rss python.html typography.html
as3:~/pilcrow/example-site/deploy#
可见~/pilcrow/example-site/deploy/就是静态网站的根目录,可绑定域名到该目录。
as3:~/pilcrow/example-site/deploy# Rwebserver 4537 > /dev/null &
as3:~/pilcrow/example-site/deploy# cd ..
as3:~/pilcrow/example-site# nano site.yml (把root: /pilcrow/改为root: / )
as3:~/pilcrow/example-site# cd content
as3:~/pilcrow/example-site/content#
按as3:~/pilcrow/example-site/content/里的whats-new.text的格式新建帖子test1.txt,格式如下:
title: 测试1
date: November 3 2013
tags: misc
这是测试1.
然后:
as3:~/pilcrow/example-site/content# cd ~/pilcrow/
as3:~/pilcrow# ls
example-site LICENSE pilcrow pilcrow.py README
as3:~/pilcrow# ./pilcrow.py ~/pilcrow/example-site (这个就是更新静态网站的命令)
演示站点: http://as3.brite.biz:4537/
项目地址:https://github.com/inky/pilcrow
这个程序有问题,发表的帖子无法显示。
cd pilcrow
as3:~/pilcrow# ls
example-site LICENSE pilcrow pilcrow.py README
as3:~/pilcrow# cd example-site
as3:~/pilcrow/example-site# ls
content deploy files site.yml templates
as3:~/pilcrow/example-site# cd deploy
as3:~/pilcrow/example-site/deploy# ls
2008 2009.html index.html robots.txt wikipedia.html
2008.html about.html loremipsum.html style.css wtf.html
2009 feed.rss python.html typography.html
as3:~/pilcrow/example-site/deploy#
可见~/pilcrow/example-site/deploy/就是静态网站的根目录,可绑定域名到该目录。
as3:~/pilcrow/example-site/deploy# Rwebserver 4537 > /dev/null &
as3:~/pilcrow/example-site/deploy# cd ..
as3:~/pilcrow/example-site# nano site.yml (把root: /pilcrow/改为root: / )
as3:~/pilcrow/example-site# cd content
as3:~/pilcrow/example-site/content#
按as3:~/pilcrow/example-site/content/里的whats-new.text的格式新建帖子test1.txt,格式如下:
title: 测试1
date: November 3 2013
tags: misc
这是测试1.
然后:
as3:~/pilcrow/example-site/content# cd ~/pilcrow/
as3:~/pilcrow# ls
example-site LICENSE pilcrow pilcrow.py README
as3:~/pilcrow# ./pilcrow.py ~/pilcrow/example-site (这个就是更新静态网站的命令)
演示站点: http://as3.brite.biz:4537/
项目地址:https://github.com/inky/pilcrow
这个程序有问题,发表的帖子无法显示。