Jekyll 博客更新办法


  • 定位:cd…

  • 查看状态: git status

  • 添加修改:

git add .

git commit -m “description”

或者直接输入git commit -am "Add file"

  • 推送:git push

  • 运行预览:bundle exec jekyll serve 或者 jekyll serve

博客文件放在 _posts当中


To add new posts, simply add a file in the _posts directory that follows the convention YYYY-MM-DD-name-of-post.ext and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.


Jekyll also offers powerful support for code snippets:

def print_hi(name)
  puts "Hi, #{name}"
#=> prints 'Hi, Tom' to STDOUT.

Check out the Jekyll docs for more info on how to get the most out of Jekyll. File all bugs/feature requests at Jekyll’s GitHub repo. If you have questions, you can ask them on Jekyll Talk.