如果这篇博客能够帮助到你,点个赞再走吧~
CC BY 4.0 (除特别声明或转载文章外)
使用 Jekyll + GitHub Pages 免费搭建个人博客
:sparkles: My Blog:[无名の辈 | VectorX (vectorxxxx.github.io)](https://vectorxxxx.github.io/) |
Download
- :white*check_mark: Ruby:Downloads (rubyinstaller.org) 【参考:Ruby 安装演示*小蓝枣的博客-CSDN 博客_ruby 安装】
:white_check_mark: RubyGems:[Download RubyGems RubyGems.org Ruby 社区 Gem 托管](https://rubygems.org/pages/download) - :white_check_mark: Git:Git - Downloads (git-scm.com)
:white_large_square: Node.js:[Download Node.js (nodejs.org)](https://nodejs.org/en/download/) :white_large_square: Python:[Download Python Python.org](https://www.python.org/downloads/)
:sparkles: 因为我本地已经有Node.js
和Python
环境了,所以无法验证是否确实需要。不过参考了很多教程,大多数是没有说明需要安装两种环境的。如果你在安装过程中遇到问题,可以再选择安装。
Install
# 1. 安装RubyGems:解压缩RubyGems并cd至其目录下
cd rubygems
ruby setup.rb
# 2. 替换gem源(可选)
gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
gem sources -l
# 3. 安装jekyll
gem install jekyll
# 4. 安装bundler
gem install bundler
:sparkles: 至此,我们的基本环境已经搭建完毕
Clone
:sparkles: Github
上Fork
项目:wu-kan/wu-kan.github.io: my homepage & template for jekyll-theme-WuK
:sparkles: 修改Settings
设置:格式your_username.github.io
# 1. 克隆Github项目,svn和git方式二选一
git clone https://github.com/vectorxxxx/vectorxxxx.github.io
# 快速下载必要的文件,过滤模板中博文和图片
# svn checkout https://github.com/vectorxxxx/vectorxxxx.github.io/trunk/ --depth=files
# 2. 自动下载并部署所有依赖
cd vectorxxxx.github.io
bundle install
Run
# 运行启动命令 s/serve/server is all right!
bundle exec jekyll serve
# 如果出现端口冲突,可以手动指定端口号
bundle exec jekyll serve --port [port]
Themes
- :heart: http://jekyllthemes.org/
- :heart: https://github.com/jekyll/jekyll
- :heart: https://jekyllthemes.dev/
Theme
- :star: wu-kan/wu-kan.github.io: my homepage & template for jekyll-theme-WuK
- :star: Huxpro/huxpro.github.io: My Blog / Jekyll Themes / PWA
- :star: mattvh/jekyllthemes: A directory of the best-looking themes for Jekyll blogs (github.com)
- :star: mmistakes/minimal-mistakes: Jekyll theme for building a personal site, blog, project documentation, or portfolio. (github.com)
Link
:link: [星合の空 wu-kan](https://wu-kan.cn/) - :link: 不安分的猿人 (gitee.io)
:link: [黄玄的博客 Hux Blog (huangxuan.me)](https://huangxuan.me/) - :link: 主页 - 资源库 (leachchen.com)
:link: [LiberXue FullStack 独立开发者 jekyll blog GitHub blog](https://liberxue.github.io/book/?liberxue)
参考手册
:closed_book: [GitHub Pages Websites for you and your projects, hosted directly from your GitHub repository. Just edit, push, and your changes are live.](https://pages.github.com/) - :closed_book: 快速指南 - Jekyll • 简单静态博客网站生成器 (jekyllcn.com)
- :closed_book: 如何快速正确的安装 Ruby, Rails 运行环境 · Ruby China (ruby-china.org)
- :closed_book: Quick-Start Guide - Minimal Mistakes (mmistakes.github.io)
:closed_book: [快速开始 Valine 一款快速、简洁且高效的无后端评论系统。](https://valine.js.org/quickstart.html) - :closed_book: 配置 - Merger (justhx.com)
- :closed_book: Shields.io: Quality metadata badges for open source projects
参考资料
- :book: 基于 Jekyll 搭建个人博客
- :book: Jekyll + Github Pages 搭建个人免费博客
- :book: Jekyll + Github Pages 博客搭建入门
- :book: Github+Jekyll 搭建个人网站详细教程