Install Jekyll

参考 如何快速正确的安装 Ruby, Rails 运行环境

Install RVM

curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "ruby_url=https://cache.ruby-china.com/pub/ruby" > ~/.rvm/user/db
rvm -v
# rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]

Install Ruby

rvm requirements
# ruby 3.2.0 jekyll has a bug
rvm install 3.1.3
ruby -v
# ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
gem -v
# 3.3.26 

Install Jekyll

gem install bundler jekyll
jekyll new riscv-linux-2023.github.io
cd riscv-linux-2023.github.io
bundle exec jekyll serve
# tmux
w3m http://127.0.0.1:4000
# => Now browse to http://localhost:4000

Custom domain

dnspod 添加记录

主机记录 记录类型 线路类型 记录值 权重 优先级 TTL 最后操作时间 操作
2023 CNAME 默认 riscv-linux-2023.github.io. - - 600 2023-01-03 18:02:47  
www CNAME 默认 iosdevlog.github.io. - - 600 2019-05-13 14:16:36  

GitHub repo:

Settings -> Pages -> Enforce HTTPS

根目录添加 CNAME 文件。

2023.iosdevlog.com