玉伯的博客 https://github.com/lifesinger/lifesinger.github.com/issues 让我第一次知道 github issues 还可以这样用 ,作者发了很多干货技术文章,让我不由得感叹 ,文章不在于形式,也不在于写在哪里,只要是好文,总不会被埋没。
即便如此,很多人仍然希望能有一个独立域名、可以自由修改主题的博客。Wordpress 、Typecho 太重,还要买 VPS、部署服务器环境、安装插件、主题,太折腾人,于是我想,完全可以利用 Github 提供的 API 来实现一个只有一个静态页面的博客,具体思路如下:
于是花了几天时间实现了这个设想, 项目地址:https://github.com/wuhaoworld/github-issues-blog,内有部署相关文档。
DEMO:http://wuhaoworld.github.io/
博客的 demo 内容是读取的玉伯博客的 issues。
1
wph95 2015 年 6 月 12 日
已star 棒:)
|
2
IndexXuan 2015 年 6 月 12 日
收了,准备试试。感谢分享
|
3
djyde 2015 年 6 月 12 日
很酷,已 star & watch。持续关注。
另外可以试试 Vue.js |
4
acthtml 2015 年 6 月 12 日
github page 支持很多markdown形式的博客,不用自己写。例如jekylle
|
5
xzl380 2015 年 6 月 12 日
cool!
另外如果可以利用Labels进行分类就更好了。 |
6
stiekel 2015 年 6 月 12 日
这想法真不错。
|
7
marginleft 2015 年 6 月 12 日 via Android
好思路,赞!
|
8
isaced 2015 年 6 月 12 日
速度很快,赞!
|
9
loveminds 2015 年 6 月 12 日
可以搞个“鸡盒歌床”项目,做图床略慢
|
10
skyshy 2015 年 6 月 13 日
我也star
|
11
loading 2015 年 6 月 13 日
这里很多人都是 blogging 而不是 writing。
我? 酒知道么?我把它放一边,然后它会。。。臭掉! |
12
bydgd 2015 年 6 月 13 日
感觉没有必要啊,原来已经很好了*o*
|
13
chaos186 2015 年 6 月 14 日
|
14
mingyun 2015 年 6 月 14 日
赞,star
|
15
wuhaoworld OP @chaos186 在文章列表页调用 issues 列表接口时其实就已经把 issues 的内容都请求下来了,然后把内容直接保存在了一个全局变量中,进入详情页后直接从全局变量中拿内容,就不用再去请求接口了。
|
16
baka 2015 年 6 月 15 日
太酷炫,已经用上了。
|
17
lisposter 2015 年 6 月 15 日
一个问题 access token 暴露在前端了,不够安全
|
18
wuhaoworld OP @lisposter 限制这个 token 只能访问公开 repo 了,所以没什么安全隐患。 因为不用 token 也是可以访问公开 repo 的,只是起到提高配额的作用。
|
19
chaos186 2015 年 6 月 17 日
@wuhaoworld 赞! MD 我怎么没想到....
|
20
ConteMan 2015 年 6 月 18 日
赞一个 nice!
|