GitHub搭建博客过程

1.参考html

个人 Github 我的博客是怎样炼成的

http://www.jianshu.com/p/4fd3cb0a11dapython

到了第三节"3、使用 Jekyll 搭建我的博客"时须要安装Jekyllgit

2.安装Jekyll参考github

Jekyll安装教程

http://www.jianshu.com/p/1093b5565918编辑器

到了最后一步"5. Jekyll启动与调试"时遇到了问题post

New jekyll site installed in /Users/myPath.
  Dependency Error: Yikes! It looks like you don't have bundler or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- bundler' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
jekyll 3.3.1 | Error:  bundler

3.此时参考 ui

jekyll安装过程当中可能会遇到的一些错误及解决办法

http://blog.csdn.net/wyc12306/article/details/51504885this

4.再回到第3步,启动与调试atom

在E:\GitHub目录下打开命令行窗口执行spa

jekyll new yadongliang

而后切换到工程目录并启动服务

cd yadongliang
jekyll serve

访问localhost:4000

 

 

 此时已经成功了安装Jekyll,可是回过头看命令行窗口最后一行:

 

参考https://stackoverflow.com/questions/9371378/warning-not-found-favicon-ico

 

Your browser is looking for a favicon that it can display in the Location Bar. Either give it one, or ignore the warning.

 

好像无可厚非?重启服务再访问又没有这问题了...无论了,继续1中的三.使用Jekyll搭建我的博客,效果和上面的localhost:4000效果同样,不过是把默认的index.html换为本身建立的index.html

 

 到了这步,能够参考

傻瓜均可以利用github pages建博客

http://cyzus.github.io/2015/06/21/github-build-blog/

文中有推荐的比较多的theme,供参考.

 

实践成果:www.yadongliang.com

 

其余:

1.下载python,百度python官网再下载,其余小问题貌似不用详述了

2.关于jekyll的介绍http://blog.csdn.net/u012675539/article/details/43734055

3.Markdown语法貌似很关键,之后发表博客都须要用Markdown语法在_post文件夹下写了...

  参考http://www.williamlong.info/archives/4319.html,文章介绍了多款Markdown编辑器,各有千秋

  下载Atom连接https://atom.io/,速度略慢.

 

纸上得来终觉浅,绝知此事要躬行...

相关文章
相关标签/搜索