搭建博客的写作环境1.0
2015-03-13
本博客的搭建完全参照于minixalpha的.
GitHub Pages
- Create a new repository: xiaofandh12.github.io
Clone the repository
git clone https://github.com/xiaofandh12/xiaofandh12.github.io
Hello World
cd xiaofandh12.github.io echo "Hello World" > index.html
Push it
git add --all git commit -m "Initial commit" git push -u origin master
Use minixalpha.github.io
- Download minixalpha.github.io-source.zip
- Extract minixalpha.github.io-source.zip => minixalpha.github.io-source
- Copy the files in minixalpha.github.io-source to xiaofandh12.github.io
Delete blog-images/*
cd xiaofandh12.github.io/assets/blog-images rm -rf *
在disqus上面注册,并添加一个站点
Modify comments.ext
cd xiaofandh12.github.io/_includes vim comments.ext var disqus_shortname = 'minixalpha'; => var disqus_shortname = 'xiaofandh12';
Modify default.html
cd xiaofandh12.github.io/_layouts vim default.html 潇湘夜雨 => 游戏人生
Modify gen_archives.rb
cd xiaofandh12.github.io/_plugins vim gen_archives.rb deep_merge => merge
Delete all the files in _posts
cd xiaofandh12.github.io/_posts rm -rf *
Delete all the files in _site
cd xiaofandh12.github.io/_site rm -rf *
平常写博客的流程:在_posts/下用Markdown写好博客,保存,退到xiaofandh12.github.io, 然后make即可
以上内容参考自博客使用 GitHub, Jekyll 打造自己的免费独立博客(这篇博客在原理方面的介绍很出色,对于理解Github+Jekyll来建立博客很有好处), GitHub上的源代码, 对应的博客
阮一峰的博客搭建一个免费的,无限流量的Blog----github Pages和Jekyll入门是一个用GitHub, Jekyll搭建博客非常好的入门文章
问:为什么这里会插入一张图片呢?
答:因为我想试一试怎么在博客中插入图片...
comments powered by Disqus