Blog template

This is my first blog in the website. Below is about how to write a blog. You need be familiar with Markdown. Markdown is a lightweight markup language with plain text formatting syntax. It has many advantages such as simple writing rule, fenced code blocks and supporting mathjax, etc.

Front matter

Front-matter is at the beginning of the file that is used to configure settings for your writings. Doc sees here.

1
2
3
4
5
6
7
8
9
10
11
---
title: Blog template
date: 2017/12/01
updated: 2019/01/19
categories:
- Tutorial
tags:
- Template
- Markdown
mathjax: true
---

Introduction

Before writing a blog, you need give a paragraph to describe what this blog is about. It is optional to explain why you write this blog. Below is an example. The prefix > means the sentence is quoted (just for looking beautiful in typesetting ).

1
> This is my first blog in the website. Below is about how to write a blog. You need be familiar with Markdown.  Markdown is a lightweight markup language with plain text formatting syntax. It has many advantages such as simple writing rule, fenced code blocks and supporting mathjax, etc.

Heading

The blog need a clear structure that is divided by headings. In my website, each blog uses up to two level headings.

1
2
## heading 1
### heading 1.1

Listing

1
2
3
- List 1
- List 2
- List 3
  • List 1
  • List 2
  • List 3

Code

Here is a piece of C + + Code:

1
2
3
4
5
6
7
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World!"; //This is an annotation.
return 0;
}

Equation

Display equations:

1
2
3
$$
f(x)=ax^2+bx+c
$$

\[ f(x)=ax^2+bx+c \]