贵有恒,何必三更起五更睡;最无益,只怕一日曝十日寒。
This is a modified version of Gaurav Chaurasia's Much-Worse Jekyll theme {% include relref_github.html %}.
Source for https://blog.hawkhai.com.
Source for https://sunocean.life/blog.
搭建 Windows Jekyll 环境
https://blog.hawkhai.com/blog/2020/08/29/win-jekyll-install
$ sudo apt-get install nodejs git curl zlib1g-dev build-essential libssl-dev \
libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev \
libcurl4-openssl-dev python3-software-properties libffi-dev ruby-dev
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ exec $SHELL
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
$ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
$ exec $SHELL
$ # mkdir ~/.rbenv/cache/
$ # mv ruby-2.3.1.tar.bz2 ~/.rbenv/cache/
$ rbenv install 2.3.1
$ rbenv global 2.3.1
$ ruby -v
$ gem install bundler
$ rbenv rehash
Troubleshooting: https://gems.ruby-china.com/ bundle update json
Then in the root of the project:
$ bundle install
Host using local server:
$ bundle exec jekyll serve --host 0.0.0.0 --port [port]
参考资料快照