npm install -g equiprose
equiprose create equiprose-site (在当前目录下,会生成equiprose-site目录)
cd equiprose-site
equiprose build (这个就是生成/更新静态网站的命令)
显示:
Compiling website using config: /root/equiprose-site/config.yml
pages: /root/equiprose-site/_pages
posts: /root/equiprose-site/_posts
assets: /root/equiprose-site/_assets
template: /root/equiprose-site/_template
Compiled website at path: /root/equiprose-site/www
as3:~/equiprose-site# ls
_assets config.yml _pages _posts _template www
(新出现了www目录)
as3:~/equiprose-site# cd www
as3:~/equiprose-site/www# ls
404.html about assets blog index.html
(可见~/equiprose-site/www/就是静态网站的根目录)
as3:~/equiprose-site/www# nohup Rwebserver 31738 > /dev/null &
访问http://as3.brite.biz:31738/就可看到网站效果。
发贴方法:
as3:~/equiprose-site/www# cd ..
as3:~/equiprose-site# ls
_assets config.yml _pages _posts _template www
as3:~/equiprose-site# cd _posts
as3:~/equiprose-site/_posts# ls
2013-11-16_hello-world.md 2013-11-17_equiprose-101.md
as3:~/equiprose-site/_posts# nano 2014-03-13_1412-test1.md
按2013-11-16_hello-world.md 的格式,新建帖子2014-03-13_1412-test1.md,格式如下:
=
layout: post
title: test1
slug: test1
author: ym
date: Thur Mar 13 2014 14:12:00
=
这是测试1.
注意:写源贴的文件名时,最好加上1412(意思是下午2点12分),这样帖子发布后,在博客首页帖子才会按时间顺序排列,最后发表的帖子在首页最上面。(跟grender-
http://briteming.blogspot.co.uk/2014/03/linux-vpsgo-grender.html 的做法类似)
然后,
as3:~/equiprose-site/_posts# cd ..
as3:~/equiprose-site# equiprose build
演示站点:http://as3.brite.biz:31738,http://eqp.brite.biz.st
项目地址:https://github.com/thibaultCha/Equiprose
(https://github.com/thibaultCha/Miranda)
发贴也可这样做:
as3:~/equiprose-site# equiprose new post
equiprose create equiprose-site (在当前目录下,会生成equiprose-site目录)
cd equiprose-site
equiprose build (这个就是生成/更新静态网站的命令)
显示:
Compiling website using config: /root/equiprose-site/config.yml
pages: /root/equiprose-site/_pages
posts: /root/equiprose-site/_posts
assets: /root/equiprose-site/_assets
template: /root/equiprose-site/_template
Compiled website at path: /root/equiprose-site/www
as3:~/equiprose-site# ls
_assets config.yml _pages _posts _template www
(新出现了www目录)
as3:~/equiprose-site# cd www
as3:~/equiprose-site/www# ls
404.html about assets blog index.html
(可见~/equiprose-site/www/就是静态网站的根目录)
as3:~/equiprose-site/www# nohup Rwebserver 31738 > /dev/null &
访问http://as3.brite.biz:31738/就可看到网站效果。
发贴方法:
as3:~/equiprose-site/www# cd ..
as3:~/equiprose-site# ls
_assets config.yml _pages _posts _template www
as3:~/equiprose-site# cd _posts
as3:~/equiprose-site/_posts# ls
2013-11-16_hello-world.md 2013-11-17_equiprose-101.md
as3:~/equiprose-site/_posts# nano 2014-03-13_1412-test1.md
按2013-11-16_hello-world.md 的格式,新建帖子2014-03-13_1412-test1.md,格式如下:
=
layout: post
title: test1
slug: test1
author: ym
date: Thur Mar 13 2014 14:12:00
=
这是测试1.
注意:写源贴的文件名时,最好加上1412(意思是下午2点12分),这样帖子发布后,在博客首页帖子才会按时间顺序排列,最后发表的帖子在首页最上面。(跟grender-
http://briteming.blogspot.co.uk/2014/03/linux-vpsgo-grender.html 的做法类似)
然后,
as3:~/equiprose-site/_posts# cd ..
as3:~/equiprose-site# equiprose build
演示站点:http://as3.brite.biz:31738,http://eqp.brite.biz.st
项目地址:https://github.com/thibaultCha/Equiprose
(https://github.com/thibaultCha/Miranda)
发贴也可这样做:
as3:~/equiprose-site# equiprose new post