- Fork it
- Create your blog branch (git checkout -b your-blog)
- Write your blog in markdown
- Add your blog to
_post
folder - Add related image to
assets
folder - Commit your changes (git commit -am 'added a blog')
- Push to the branch
- Create new Pull Request
Done!~
All blog should has title, author, date...
Example as follows:
---
title: "'Score Your Face Photo' a ML&Wechaty practice"
date: 2017-09-18 09:00 +0800
author: huyingxi
---
> Author: [@huyingxi](https://github.com/huyingxi/wechaty_selfie) enjoying ML&Wechaty at BUPT
- Keep all filenames & url as lowercase, and use
-
to connect words instead of space. e.g.2017-10-06-wechat-pc-impactor
instead of2017-10-06-WeChat PC Impactor
- Find a good image for the blog to make it more beautiful.
- Embed the photo & video before publishing, save all external file to the blog
/assets/2018
directory.
see more: Do not include Date in URL
Add <!--more-->
section for your abstract part, it will show on the blog homepage, or the blog homepage will show all your blog content.
Please do not commit unrelated files.
Example
<iframe width="560" height="315" src="https://www.youtube.com/embed/3eq8wJfCAWs" frameborder="0" allowfullscreen></iframe>
Install all the Jekyll requirements and run it at localhost for blog preview.
This is the recommended way for new users to easy getting started
make docker
You should not use this way except you are a Ruby expert.
make install
make serve
In order to make sure everything(file name, file size, etc) is ok, you can run the following command to check them before git push
.
npm install
npm test
minima: https://github.com/jekyll/minima
- Code & Docs © 2019 - now Huan LI zixia@zixia.net
- Code released under the Apache-2.0 License
- Docs released under Creative Commons