ningg / ningg.github.com

Ning Guo's blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

动手搭建自己的博客

我写了一篇博客GitHub上搭建个人网站, 需要的可以读一下。

ChangeLog

  • 2019年3月,进行网站域名备案。
  • 2019年2月,post 页面,增加 同类文章 模块。
  • 2014年5月,基于BeiYuu & Havee 的博客模版,改进出此博客
  • 2013年8月,基于BeiYuu 博客模版,在GitHub上建立个人网站
  • 2012年9月,在内网使用Wordpress搭建个人博客

Mac 下, 搭建开发调试环境

搭建开发环境, 参考 Blogging with Jekyll.

详细细节:

# 1.安装最新版 ruby
$ brew install ruby

# 2.安装 bundle 和 jekyll
$ gem install --user-install bundler

$ gem install --user-install jekyll

# 3. 退出 iterm 终端, 重新打开, 并安装 bundle
$ bundle install

Could not locate Gemfile

$ vim Gemfile
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins

$ bundle install


# 4. 前往 jekyll blog 的目录下
$ cd /Users/guoning/ningg/github/ningg.github.com

# 5. 启动 jekyll 服务
$ bundle exec jekyll serve

# 下述方式, 只处理增量变更
$ bundle exec jekyll serve --incremental

# 6. 浏览器访问效果
http://127.0.0.1:4000

About

Ning Guo's blog


Languages

Language:CSS 58.0%Language:HTML 22.4%Language:JavaScript 18.4%Language:Batchfile 1.0%Language:Ruby 0.1%Language:Shell 0.1%