cd ~/mygo/
go get github.com/russross/blackfriday
go get launchpad.net/goyaml
go get launchpad.net/goamz/aws
go get launchpad.net/goamz/s3
go get github.com/howeyc/fsnotify
go install github.com/drone/jkl (这样jkl就装好了)
as3:~/mygo# cd ~
as3:~# git clone https://github.com/drone/blog.drone.io blog.drone.io-site
as3:~# cd blog.drone.io-site
as3:~/blog.drone.io-site# ls
atom.xml css img _layouts README.md
_config.yml fancybox index.html _posts
as3:~/blog.drone.io-site# jkl (这个就是生成/更新静态网站的命令)
as3:~/blog.drone.io-site# ls
atom.xml css img _layouts README.md
_config.yml fancybox index.html _posts _site
(新出现了_site目录)
as3:~/blog.drone.io-site# cd _site
as3:~/blog.drone.io-site/_site# ls
2012 atom.xml css fancybox img index.html
as3:~/blog.drone.io-site/_site# nohup Rwebserver 35426 > /dev/null &
可见~/blog.drone.io-site/_site/就是静态网站的根目录。
访问http://as3.brite.biz:35426/就可看到网站效果。
发贴方法:
as3:~/blog.drone.io-site/_site# cd ..
as3:~/blog.drone.io-site# cd _posts
as3:~/blog.drone.io-site/_posts# nano 2014-02-16-test1.markdown
按~/blog.drone.io-site/_posts/里面的某个markdown文件的内容格式,新建帖子
2014-02-16-test1.markdown,格式如下:
---
layout: posts
title: "test1"
date: 2014-02-16 22:30:10
author: ym
---
这是测试1.
然后,
as3:~/blog.drone.io-site/_posts# cd ..
as3:~/blog.drone.io-site# jkl (这个就是生成/更新静态网站的命令)
所发表的帖子的超链在页面右侧的Recent Posts里。
演示站点:http://as3.brite.biz:35426/,http://jkl.brite.biz.st
程序作者的示范站点:http://blog.drone.io/
项目地址:https://github.com/drone/jkl
https://github.com/drone/blog.drone.io
go get github.com/russross/blackfriday
go get launchpad.net/goyaml
go get launchpad.net/goamz/aws
go get launchpad.net/goamz/s3
go get github.com/howeyc/fsnotify
go install github.com/drone/jkl (这样jkl就装好了)
as3:~/mygo# cd ~
as3:~# git clone https://github.com/drone/blog.drone.io blog.drone.io-site
as3:~# cd blog.drone.io-site
as3:~/blog.drone.io-site# ls
atom.xml css img _layouts README.md
_config.yml fancybox index.html _posts
as3:~/blog.drone.io-site# jkl (这个就是生成/更新静态网站的命令)
as3:~/blog.drone.io-site# ls
atom.xml css img _layouts README.md
_config.yml fancybox index.html _posts _site
(新出现了_site目录)
as3:~/blog.drone.io-site# cd _site
as3:~/blog.drone.io-site/_site# ls
2012 atom.xml css fancybox img index.html
as3:~/blog.drone.io-site/_site# nohup Rwebserver 35426 > /dev/null &
可见~/blog.drone.io-site/_site/就是静态网站的根目录。
访问http://as3.brite.biz:35426/就可看到网站效果。
发贴方法:
as3:~/blog.drone.io-site/_site# cd ..
as3:~/blog.drone.io-site# cd _posts
as3:~/blog.drone.io-site/_posts# nano 2014-02-16-test1.markdown
按~/blog.drone.io-site/_posts/里面的某个markdown文件的内容格式,新建帖子
2014-02-16-test1.markdown,格式如下:
---
layout: posts
title: "test1"
date: 2014-02-16 22:30:10
author: ym
---
这是测试1.
然后,
as3:~/blog.drone.io-site/_posts# cd ..
as3:~/blog.drone.io-site# jkl (这个就是生成/更新静态网站的命令)
所发表的帖子的超链在页面右侧的Recent Posts里。
演示站点:http://as3.brite.biz:35426/,http://jkl.brite.biz.st
程序作者的示范站点:http://blog.drone.io/
项目地址:https://github.com/drone/jkl
https://github.com/drone/blog.drone.io