git clone https://github.com/algernon/madness madness-site
cd madness-site
root@as3:~/madness-site# ls
project.clj README.md resources settings.clj src
root@as3:~/madness-site# lein madness (这个就是生成/更新静态网站的命令)
root@as3:~/madness-site# ls
project.clj public README.md resources settings.clj src target
(生成了public目录)
root@as3:~/madness-site# cd public
root@as3:~/madness-site/public# ls
blog index.html
(可见~/madness-site/public/就是静态网站的根目录)
root@as3:~/madness-site/public# nohup python -m SimpleHTTPServer 24385 > /dev/null &
访问http://as3.brite.biz:24385/即可看到网站效果。
发贴方法:
root@as3:~/madness-site/public# cd ../resources/posts
root@as3:~/madness-site/resources/posts# nano 2014-06-28-test1.markdown
格式为:
---
title: 测试1
date: 2014-06-28 19:43
tags: [misc1, misc2]
---
这是测试1.
root@as3:~/madness-site/resources/posts# cd ../..
root@as3:~/madness-site# lein madness
演示站点:http://as3.brite.biz:24385/,http://as3.brite.biz:24385/blog/archives/,
http://mn.brite.biz.st,http://mn.brite.biz.st/blog/archives/
程序作者用此程序搭建的博客:http://asylum.madhouse-project.org/
项目地址:https://github.com/algernon/madness
类似的程序http://briteming.blogspot.co.uk/2014/06/linux-vpsstasisblog-genaugustl.html,不过这个madness比blog-gen和augustl要好,madness的帖子是按时间顺序排列的。
cd madness-site
root@as3:~/madness-site# ls
project.clj README.md resources settings.clj src
root@as3:~/madness-site# lein madness (这个就是生成/更新静态网站的命令)
root@as3:~/madness-site# ls
project.clj public README.md resources settings.clj src target
(生成了public目录)
root@as3:~/madness-site# cd public
root@as3:~/madness-site/public# ls
blog index.html
(可见~/madness-site/public/就是静态网站的根目录)
root@as3:~/madness-site/public# nohup python -m SimpleHTTPServer 24385 > /dev/null &
访问http://as3.brite.biz:24385/即可看到网站效果。
发贴方法:
root@as3:~/madness-site/public# cd ../resources/posts
root@as3:~/madness-site/resources/posts# nano 2014-06-28-test1.markdown
格式为:
---
title: 测试1
date: 2014-06-28 19:43
tags: [misc1, misc2]
---
这是测试1.
root@as3:~/madness-site/resources/posts# cd ../..
root@as3:~/madness-site# lein madness
演示站点:http://as3.brite.biz:24385/,http://as3.brite.biz:24385/blog/archives/,
http://mn.brite.biz.st,http://mn.brite.biz.st/blog/archives/
程序作者用此程序搭建的博客:http://asylum.madhouse-project.org/
项目地址:https://github.com/algernon/madness
类似的程序http://briteming.blogspot.co.uk/2014/06/linux-vpsstasisblog-genaugustl.html,不过这个madness比blog-gen和augustl要好,madness的帖子是按时间顺序排列的。