1. Preparation#
2. Setting Up the Site#
Create a new Hugo site: hugo new site your-blog-site
The directory structure should look like this:
---archetypes
---assets
---content
---data
---i18n
---layout
---static
---themes
---hugo.toml
3. Change Theme#
-
Drag the theme files into
themes
-
Add the following code to hugo.toml:
baseURL = "https://your-site.com" title = "your-site-name" languageCode = "en-us" theme = "name" # The theme folder name needs to match this
4. Create a Page#
- Create a new
archive.md
in content
title: "archive"
layout: "archives"
url: "/archives/"
summary: archives
5. Create an Article#
Enter in git
hugo new /content/posts/the-first-post.md
6. Deploy the Site Locally#
hugo server -D