hugo installlation
brew install hugo
hugo create site
hugo new site leijingwei # a folder leijingwei will be created with a config.toml file
hugo new site leijingwei -f yml # a folder leijingwei will be created with a config.yml file
add a theme to your site
Go to the https://themes.gohugo.io/ , find your favourite theme.
hugo create post
You will use this command to create a new post.
hugo new posts/new-post.md
And you will use the following contents to edit your post.
title: "A New Start"
draft: true
author: "Jingwei Lei"
date: 2022-10-07T01:45:59+08:00
description: "This is description"
tags: ["markdown", "css", "html", "themes"]
categories: ["themes", "syntax"]
series: ["Themes Guide"]
aliases: ["migrate-from-jekyl"]
ShowToc: true
TocOpen: true
hugo generate static files
hugo -D
other hugo commands
hugo server -D