Sheng Li (gmachine1729) wrote,
Sheng Li
gmachine1729

Setup github.io page with Jekyll

Originally published at 狗和留美者不得入内. You can comment here or there.

Now that I am blogging about programming, I’ve figured that I should start a separate blog just for that, which I can showcase to others without the risk of political incorrectness (which of course requires I keep it strictly technical). I had thought of blogspot, but the pros use github.io. So I naturally looked into that. And I’ve decided that I’m going to document the process as I go.

First, I found that the version of ruby on my mac was not to date, so I used rbenv to install a sufficiently up to date version. However,

ruby -v

did not change though almost certainly, the later version was installed. Annoying, it meant that I had to point the ruby bash command to the newly installed executable either directly or indirectly. I had done this shit quite a while ago, and now it recycles, just like every time you start a new tech job, you have to go through a not terribly fun setup process. Fortunately, switching to rvm did the trick.

See, I had created on my github a repository for my github.io page, selected a theme (kind of like a WordPress theme), and git cloned that to my local machine. But when I, per instructions here, run

bundle exec jekyll serve

it complains

jekyll 3.8.3 | Error:  The jekyll-theme-cayman theme could not be found.

So I decide to start all over with

jekyll new . --force

Now when I ls the directory, I get

404.html	Gemfile		Gemfile.lock	_config.yml	_posts		about.md	index.md

Running again

bundle exec jekyll serve

gives me

Configuration file: cwdir/_config.yml
            Source: cwdir/me.github.io
       Destination: cwdir/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 1.555 seconds.
 Auto-regeneration: enabled for me.github.io'
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

Going there gives me

Screen Shot 2018-06-11 at 6.03.38 PM
And now I git commit and push to GitHub and see it at the actual hosted page!

Tags: git, 编程, 软件安装配置
Subscribe

  • 中国少数民族的语系分类

    汉藏语系 汉族:汉语族,12.2 亿 壮族:壮侗语族,1690 万,主要在广西 彝族:彝语支,870 万,主要在西南 土家族:840 万,主要在湖南,湖北,贵州 藏族:藏缅语族,630 万,主要在西藏 侗族 布衣族 白族 哈尼族 黎族 傣族…

  • 中国那帮英语培训机构基本都是垃圾,他们的创办人及工作者应当被处置

    刚跟朋友说了国庆放假,我在健身房,碰到了一个俄罗斯姑娘和个三十出头的中国女人一起。我跟她用俄语稍微聊了几句,也加了她和她的中国同事微信。然后,我得知她们是在培训班教小学生英语的。俄罗斯姑娘跟我说她在俄罗斯的 Перм 上大学,专业是德语,现在在中国已经待了一年了。…

  • 拼音英语字符比对服务

    我和朋友做了一个汉字转拼音的服务。什么给了我这个启发?是他有一次想让我在微信上用英语,可是我不想,因为觉得中文更快。然后自己做了个 小试验。 >>>…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments