Stay foolish, stay hungry.

Guide for Posting an Jekyll Article

Posted on By 吴杰

Name of the file

YEAR-MONTH-DAY-title.MARKUP

where:

  • YEAR is a four-digit number
  • MONTH is a two-digit number
  • DAY is a two-digit number
  • MARKUP is the extension, eg. md

Content

---
layout: post
title: A Trip
categories: [blog, travel]
tags: [hot, summer]
---

* content
{:toc}


# Welcome

**Hello world**, this is my first Jekyll blog post.

I hope you like it!

where:

  • layout refers to the files under _layouts. It can be post and default by convention.
  • content {:toc} generates the catalog
  • two blank lines needed between the above things and the markdown content

Run on the server

Before You Begin

  • Install RubyInstaller from https://rubyinstaller.org/
  • Install jekyll by gem install jekyll bundler

Start the server

jekyll serve

or

bundle exec jekyll serve