|------------------
|----...
|----_posts(The article is placed in this directory)
|----...
To create a post, add a file to your _posts
directory with the following format:
YEAR-MONTH-DAY-title.md
The beginning of the contents of the .md
file need to be as follows:
---
layout: post
title: "The name of your article"
date: "2019-05-07 14:50:10 +0800"
author: "your name"
categories: cyclone
cover: /assets/images/f1.png
summary: "As far as the design of the current page is concerned, the content here cannot be empty."
---
And cover is the article cover picture, you can consider the following two forms:
- Put the picture in the
assets/images/
directory, which means that the cover needs to be written as/assets/images/XXX
- Use URL directly
-
Environment installation :https://jekyllrb.com/docs/installation/
-
Run command: jekyll server
-
More: jekyll、jekyll-guide