需要在_post目录下创建标题为[yyyy-mm-dd-title-of-blog.md]格式的md文件, 文件需要头需要包含如下信息
---
layout: markdown
title: "title"
date: 2019-12-18 00:00:00 +0800
categories: react vue js:vue
---
这里针对的是zsh, 如果你是用的是其他sh, 请更改相应的文件 ``
sudo apt-get install ruby-full build-essential zlib1g-dev
cat << EOF > ~/.zshrc
# Install Ruby Gems to ~/gems
export GEM_HOME="\$HOME/gems"
export PATH="\$HOME/gems/bin:\$PATH"
EOF
source ~/.zshrc
gem install jekyll bundler
-> pwd
zwidny.github.
-> npm install
-> bundle install
-> bundle exec jekyll serve
├── assets # 资源文件目录
│ └── css
│ └── styles.scss
├── _authors # 自定义集合, 参见_config.yml collections部分, 名称为集合中的名称
│ ├── jill.md
│ └── ted.md
├── _config.yml # Jekyll 配置文件
├── _data # 数据定语文件, 相当于数据库
│ └── navigation.yml
├── Gemfile
├── _includes # include 文件存放位置 e.g.: {% include navigation.html %}
│ └── navigation.html
├── index.md
├── _layouts # layout模板文件
│ ├── author.html
│ ├── default.html
│ └── post.html # blog文件的元文件
├── blog.html # data/navigation.yml中对应的link文件
├── _posts
│ ├── 2019-01-30-kiwifruit.md
│ ├── 2019-01-31-apples.md
│ ├── 2019-01-31-first-bold.md
│ └── 2019-01-31-welcome-to-jekyll.markdown
├── README.md
├── _sass # assets 中css/*.scss中对应的导入文件
│ └── main.scss
└── staff.html