npm install -g pop
pop new pop-site(在当前目录下会生成pop-site目录)
cd pop-site
pop post posttitle (新建空帖子)
as3:~/pop-site# ls
_config.json index.jade _layouts _posts stylesheets
_includes javascripts _lib robots.txt tags.jade
as3:~/pop-site# pop post test1
Post created: _posts/2013-11-14-test1.md
as3:~/pop-site# nano _posts/2013-11-14-test1.md
as3:~/pop-site# npm install -g express
as3:~/pop-site# pop server 4537 &
as3:~/pop-site# ls
_config.json index.jade _layouts _posts _site tags.jade
_includes javascripts _lib robots.txt stylesheets
(可以看到新出现了_site目录)
as3:~/pop-site# cd _site
as3:~/pop-site/_site# ls
2013 feed.xml javascripts robots.txt tags.html
feed.rss index.html page2 stylesheets
(可见~/pop-site/_site/就是静态网站的根目录)
立马就可访问http://as3.brite.biz:4537/,查看网站效果。
as3:~/pop-site/_site# cd ..
as3:~/pop-site# pop build (这个就是更新静态网站的命令。我输入pop xx竟然也行)
演示站: http://pop-site.brite.biz/
项目地址:https://github.com/alexyoung/pop,
http://popjs.com/2011/07/27/pop-0.0.7/
pop new pop-site(在当前目录下会生成pop-site目录)
cd pop-site
pop post posttitle (新建空帖子)
as3:~/pop-site# ls
_config.json index.jade _layouts _posts stylesheets
_includes javascripts _lib robots.txt tags.jade
as3:~/pop-site# pop post test1
Post created: _posts/2013-11-14-test1.md
as3:~/pop-site# nano _posts/2013-11-14-test1.md
as3:~/pop-site# npm install -g express
as3:~/pop-site# pop server 4537 &
as3:~/pop-site# ls
_config.json index.jade _layouts _posts _site tags.jade
_includes javascripts _lib robots.txt stylesheets
(可以看到新出现了_site目录)
as3:~/pop-site# cd _site
as3:~/pop-site/_site# ls
2013 feed.xml javascripts robots.txt tags.html
feed.rss index.html page2 stylesheets
(可见~/pop-site/_site/就是静态网站的根目录)
立马就可访问http://as3.brite.biz:4537/,查看网站效果。
as3:~/pop-site/_site# cd ..
as3:~/pop-site# pop build (这个就是更新静态网站的命令。我输入pop xx竟然也行)
演示站: http://pop-site.brite.biz/
项目地址:https://github.com/alexyoung/pop,
http://popjs.com/2011/07/27/pop-0.0.7/