首先fork这个项目https://github.com/zhaoda/spring,我fork后的项目地址为https://github.com/luckypoem/spring,
然后登陆linux vps.
cd /usr/local
git clone https://github.com/luckypoem/spring spring-site
cd spring-site
root@AR:/usr/local/spring-site# ls
Gruntfile.js LICENSE README.md css dev.html dist favicon.ico img index.html js package.json
root@AR:/usr/local/spring-site#
(可见 /usr/local/spring-site就是静态网站的根目录)
修改
...
然后登陆linux vps.
cd /usr/local
git clone https://github.com/luckypoem/spring spring-site
cd spring-site
root@AR:/usr/local/spring-site# ls
Gruntfile.js LICENSE README.md css dev.html dist favicon.ico img index.html js package.json
root@AR:/usr/local/spring-site#
(可见 /usr/local/spring-site就是静态网站的根目录)
修改
index.html
文件如下:...
$.extend(spring.config, {
// my blog title
---
title: 'Your Blog title',
// my blog description
desc: "A blog engine written by github issues [Fork me on GitHub](https://github.com/zhaoda/spring)",
// my github username
owner: 'Your Github username',
// creator's username
creator: 'Your Github username',
// the repository name on github for writting issues
repo: 'spring',
// custom page
...
然后在设置页面(https://github.com/luckypoem/spring/settings)启用issues.
然后到
https://github.com/luckypoem/spring/issues,提交issue即为写文章。
演示网站:http://spr.bright.biz.st
项目地址:https://github.com/zhaoda/spring
使用Github自带的lables
进行标签管理,issues
的评论功能直接可以当做文章的评论区.
No comments:
Post a Comment