关于建立这个博客的一点小记录
gem install jekyll bundler
jekyll -v
jekyll new [Project Name]
# 切换到项目目录的根目录,运行Jekyll生成 _Site
cd [Project Name]
http://localhost:4000jekyll serve --watch
# 启动方法2
bundle exec jekyll serve
# Windows
gem install jekyll-paginate
# Unixlike
sudo gem install jekyll-paginate
bundle install
_config.yaml
index.html(首页)
About.html
“查看元素”所有需要修改的项目
[Username].github.io 为名---
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">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>
port: 5000 (其他端口也可)。注意冒号和5000之间有空格cd [Project Root]
bundle install