<
使用Jekyll建立个人博客的记录
>
上一篇

一些小脚本

没有下一篇咯

关于建立这个博客的一点小记录

Set UP

Create Dev Enviroment :Install Ruby(Gem) & Jekyll

Install Ruby with Windows Installer

Install Jekyll

gem install jekyll bundler
jekyll -v

Create an Empty Jekyll Project

jekyll new [Project Name]
# 切换到项目目录的根目录,运行Jekyll生成 _Site
cd [Project Name]

Launch the Local Server

jekyll serve --watch
# 启动方法2
bundle exec jekyll serve

Themes

# Windows
gem install jekyll-paginate
# Unixlike
sudo gem install jekyll-paginate
bundle install

仓库命名

POST 格式

---
layout: post
title: 'Hello Jekyll'
date: 2017-04-18
author: Jekyll
color: rgb(255,210,32)
cover: 'http://on2171g4d.bkt.clouddn.com/jekyll-banner.png'
tags: jekyll
---
> 首页展示时填写的介绍,没有则需要删除

代码高亮


<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
  <span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
<span class="k">end</span>
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
<span class="c1">#=&gt; prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>

Question

Permission denied - bind(2) for 127.0.0.1:4000

in `block in verify_gemfile_dependencies_are_found!’: Could not find gem ‘tzinfo-data x64-mingw32’ in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)

cd [Project Root]
bundle install

参考资料

  1. 一步步在GitHub上创建博客主页
  2. 使用Github Pages建独立博客
  3. Blog模板
  4. 相关主题
  5. 通过jekyll在Github 搭建个人博客
Top
Foot