git clone https://github.com/borismus/lightning.git
cd lightning
as3:~/lightning# ls
content LICENSE lightning.yaml README.md scripts
implementation.md lightning link requirements.txt template
as3:~/lightning# pip install -r requirements.txt
as3:~/lightning# ./lightning build (这就是生成/更新静态网站的命令)
as3:~/lightning# ls
content LICENSE lightning.yaml README.md scripts www
implementation.md lightning link requirements.txt template
(新出现了www目录)
as3:~/lightning# ls www
about about-lightning archive atom.xml drafts index.html lightning static
as3:~/lightning#
可见~/lightning/www/就是静态网站的根目录。
as3:~/lightning# cd www
as3:~/lightning/www# ls
about about-lightning archive atom.xml drafts index.html lightning static
as3:~/lightning/www# Rwebserver 45128 &
访问http://as3.brite.biz:45128/,即可看到网站效果。
发贴方法:
as3:~/lightning/www# cd ~/lightning/content/posts/2012
as3:~/lightning/content/posts/2012# ls
about-lightning.txt lightning
as3:~/lightning/content/posts/2012#
按about-lightning.txt的格式,新建帖子test1.txt,格式如下:
test1
===
posted: 2013-11-24
这是测试1.
然后:
as3:~/lightning/content/posts/2012# cd ~/lightning/
as3:~/lightning# ./lightning build
演示站点:http://ln.brite.biz,http://as3.brite.biz:45128/
项目地址:https://github.com/borismus/lightning
cd lightning
as3:~/lightning# ls
content LICENSE lightning.yaml README.md scripts
implementation.md lightning link requirements.txt template
as3:~/lightning# pip install -r requirements.txt
as3:~/lightning# ./lightning build (这就是生成/更新静态网站的命令)
as3:~/lightning# ls
content LICENSE lightning.yaml README.md scripts www
implementation.md lightning link requirements.txt template
(新出现了www目录)
as3:~/lightning# ls www
about about-lightning archive atom.xml drafts index.html lightning static
as3:~/lightning#
可见~/lightning/www/就是静态网站的根目录。
as3:~/lightning# cd www
as3:~/lightning/www# ls
about about-lightning archive atom.xml drafts index.html lightning static
as3:~/lightning/www# Rwebserver 45128 &
访问http://as3.brite.biz:45128/,即可看到网站效果。
发贴方法:
as3:~/lightning/www# cd ~/lightning/content/posts/2012
as3:~/lightning/content/posts/2012# ls
about-lightning.txt lightning
as3:~/lightning/content/posts/2012#
按about-lightning.txt的格式,新建帖子test1.txt,格式如下:
test1
===
posted: 2013-11-24
这是测试1.
然后:
as3:~/lightning/content/posts/2012# cd ~/lightning/
as3:~/lightning# ./lightning build
演示站点:http://ln.brite.biz,http://as3.brite.biz:45128/
项目地址:https://github.com/borismus/lightning