2 min read

What You Can Do with Hugo and Markdown

Edit this page on GitHub

You are encouraged to read carefully this Markdown Cheatsheet to get a deeper understanding of how to write in Markdown.

Most of the codes in that Cheatsheet will work with Markdown in Hugo:

Headings

You can have six levels of section headings:

H1

H2

H3

H4

H5
H6

Blockquotes

What I cannot create, I do not understand. Note that you can use Markdown syntax within a blockquote.

Lists

You can create a list, both numbered or not:

Ordered List

  1. Buy a fridge
  2. Go to Kroger
  3. Pay for items

Unordered List

  • Buy a fridge
  • Go to Kroger
  • Pay for items

Nested list

  • Buy a fridge
    1. Go to Kroger
    2. Pay for items

Shortcodes

You should also know that Hugo has many shortcodes that make writing in Markdown more powerful.

For example, you can use the following codes to add figures:

Caption here

Title here

Caption here

Of course you can add figures using the codes in the above cheatsheet, but you cannot add title and caption, and it’s difficult to change width and height of the figure. You can do all of these using Hugo’s built-in shortcodes for figures.

You can also embed Vimeo and YouTube videos:

and

You can also show your Instagram here:

View this post on Instagram

#nofilter #cloudy #ominous #streetlight #phonehdr

A post shared by Navdeep (@navdeepshr) on

You can also embed an external webpage. Click here for an example.