How to create a post markdown file

Configuration

In the very begining of the markdown file, you will need to specify some configurations in a block wrapped by +++:

+++
title = "How to create a post markdown file"
date = ""
authors = []
draft = false
# To Enable LaTex math rendering
math = true
tags = []
categories = []

[header]
  # The image will display above title
  image = ""

+++

Content

The content part works the same as regular markdown file, I will show some commonly used syntax here and you can google for more fancy functionalities.

Text

Emphasis, aka italics, with *asterisks* or _underscores_.

Strong emphasis, aka bold, with **asterisks** or __underscores__.

Combined emphasis with **asterisks and _underscores_**.

Strikethrough uses two tildes. ~~Scratch this.~~

To create a link, [put the text in square parenthesis and url in regular parenthesis](http://c3sr.com)

# Title 1
## Title 2
### Title 3
#### Title 4
##### Title 5

Emphasis, aka italics, with asterisks or underscores.

Strong emphasis, aka bold, with asterisks or underscores.

Combined emphasis with asterisks and underscores.

Strikethrough uses two tildes. Scratch this.

To create a link, put the text in square parenthesis and url in regular parenthesis

Title 1

Title 2

Title 3

Title 4

Title 5

Line Breaks

To start a new line, hit \<Enter\> once and add a backslash \
To Start a new paragraph, hit \<Enter\> twice

You can see the difference now.

To start a new line, hit <Enter> once and add a backslash
To Start a new paragraph, hit <Enter> twice

You can see the difference now.

Image

You can simply display an image by:

![Logo](/img/c3sr2.png "Logo")

Logo

But if you want the image to be wrapped by text, you will need to use html tag and specify the style:

  <img alt="" src="/img/uploads/McCredie%20Visit.jpg"
    style="margin: 5px; width: 450px; height: 320px; padding-right: 10px; float: left;"/>
  Brad McCredie, IBM Fellow, Vice President of IBM Power Systems Development, and President of the
  [OpenPOWER Foundation](https://openpowerfoundation.org/) came to visit C<sup>3</sup>SR and reviewed 
  the cognitive systems research agenda with C<sup>3</sup>SR faculty and students. Shown in the picture 
  re C<sup>3</sup>SR students, Xiaofan Zhang and Chuanhao Zhuge (on the left), demoing the FPGA accelerated 
  LRCN (Long-term Recurrent Convolutional Networks) for visual recognition and description, 
  to Dr. McCredie (front) and Ben Kreuz (back).

Brad McCredie, IBM Fellow, Vice President of IBM Power Systems Development, and President of the OpenPOWER Foundation came to visit C3SR and reviewed the cognitive systems research agenda with C3SR faculty and students. Shown in the picture are C3SR students, Xiaofan Zhang and Chuanhao Zhuge (on the left), demoing the FPGA accelerated LRCN (Long-term Recurrent Convolutional Networks) for visual recognition and description, to Dr. McCredie (front) and Ben Kreuz (back).

First, you need to create the albums in the configuration area:

[[gallery_item]]
album = "1"
image = "0.jpg"
caption = "Write your image caption here"

[[gallery_item]]
album = "1"
image = "1.jpg"
caption = "Write your image caption here"

And then, display the gallery somewhere within your page content by using :

\{\{<gallery album="1">\}\} #You don't need those backslashes

YouTube Videos

You just need to get the video id and do:

\{\{< youtube hWH3djDnmQk >\}\} # You don't need the backslashes

Or if you need to specify the style like width and height, you can use iframe. You just need to open the video on youtube and click share -> embed -> copy&paste the code it provides.

<iframe width="560" height="315"
src="https://www.youtube.com/embed/hWH3djDnmQk"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>

}

Mathematical Formulae

In order to use LaTex, you will first need to add math=true to the configuration part of the markdown file. And the syntax is the same as regular LaTex:

$$\left [ – \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$
This is inline: $$\mathbf{y} = \mathbf{X}\boldsymbol\beta + \boldsymbol\varepsilon$$

$$\left [ – \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$ This is inline: $\mathbf{y} = \mathbf{X}\boldsymbol\beta + \boldsymbol\varepsilon$