本博客安装简略

阅读用时 ~1 分钟

下载博客项目

git clone https://github.com/yekki/yekki.github.com
cd yekki.github.com

穿越GFW

gem sources --remove https://rubygems.org/

gem sources -a https://ruby.taobao.org/

gem install bundle

bundle config 'mirror.https://rubygems.org' 'https://ruby.taobao.org'

安装博客

gem install jekyll
bundle install

配置域名

在根目录下创建文件CNAME,内容为一行域名,例如:

www.yekki.me

记得修改_config.yml,尤其是记得添加域名配置

url:  http://www.yekki.me

备注

做完升级后想执行 jekyll server 预览效果,结果报如下错:

Configuration file: /Users/gniu/Workbench/blogs/yekki/_config.yml
  Dependency Error: Yikes! It looks like you don't have jekyll-sitemap 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 -- jekyll-sitemap' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
  jekyll 3.1.2 | Error:  jekyll-sitemap

修复办法:

bundle update

如何拼接多个图片到一个大图片

我想把几张图片拼成一个大图片,实现方式如下:安装 imagemagick{% highlight bash %}brew install imagemagick{% endhighlight %}拼接图片,例如:将1.png, 2.png, 3.png并成me.png,命令...… 继续阅读

如何阻止iOS系统升级

发布于 November 05, 2017