npm install -g jekyde
mkdir jekyde-site
cd jekyde-site
jekyde (此命令会在jekyde-site这个空目录内创建jekyde的博客目录结构)
as3:~/jekyde-site# ls
content package.json template website
as3:~/jekyde-site# cd website
as3:~/jekyde-site/website# ls
archive atom.xml category index.html page post static tag
(可见~/jekyde-site/website/就是静态网站的根目录)
as3:~/jekyde-site/website# nohup Rwebserver 3427 > /dev/null &
访问http://as3.brite.biz:3427/,即可看到网站效果。挺不错的博客程序。
发贴方法:
as3:~/jekyde-site/website# cd ..
as3:~/jekyde-site# ls
content package.json template website
as3:~/jekyde-site# cd content
as3:~/jekyde-site/content# ls
page post
as3:~/jekyde-site/content# cd post
as3:~/jekyde-site/content/post# ls
2013-03-10-16-22.md 2013-04-24-09-12.md
按2013-03-10-16-22.md的内容格式,新建帖子2013-12-07-test1.md,格式如下:
---
title: 测试1
date: 2013-12-07 16:13
name: test1 (这行是postslug,用英文写)
---
这是测试1.
然后:
as3:~/jekyde-site/content/post# cd ~/jekyde-site/
as3:~/jekyde-site# jekyde (这个就是生成/更新静态网站的命令)
按esc,退出控制台。
演示站点:http://as3.brite.biz:3427/,http://jekyde.brite.biz/
项目地址:https://github.com/zohooo/jekyde
相关帖子:http://briteming.blogspot.co.uk/2013/10/jekyde-latex.html
mkdir jekyde-site
cd jekyde-site
jekyde (此命令会在jekyde-site这个空目录内创建jekyde的博客目录结构)
as3:~/jekyde-site# ls
content package.json template website
as3:~/jekyde-site# cd website
as3:~/jekyde-site/website# ls
archive atom.xml category index.html page post static tag
(可见~/jekyde-site/website/就是静态网站的根目录)
as3:~/jekyde-site/website# nohup Rwebserver 3427 > /dev/null &
访问http://as3.brite.biz:3427/,即可看到网站效果。挺不错的博客程序。
发贴方法:
as3:~/jekyde-site/website# cd ..
as3:~/jekyde-site# ls
content package.json template website
as3:~/jekyde-site# cd content
as3:~/jekyde-site/content# ls
page post
as3:~/jekyde-site/content# cd post
as3:~/jekyde-site/content/post# ls
2013-03-10-16-22.md 2013-04-24-09-12.md
按2013-03-10-16-22.md的内容格式,新建帖子2013-12-07-test1.md,格式如下:
---
title: 测试1
date: 2013-12-07 16:13
name: test1 (这行是postslug,用英文写)
---
这是测试1.
然后:
as3:~/jekyde-site/content/post# cd ~/jekyde-site/
as3:~/jekyde-site# jekyde (这个就是生成/更新静态网站的命令)
按esc,退出控制台。
演示站点:http://as3.brite.biz:3427/,http://jekyde.brite.biz/
项目地址:https://github.com/zohooo/jekyde
相关帖子:http://briteming.blogspot.co.uk/2013/10/jekyde-latex.html