Getting from 0 to 1 takes ~5 minutes.
1. Install Hugo #
brew install hugo
See Hugo Docs for more options:
2. Create a new site #
hugo new site <siteName>
3. Install this project #
-
Open your
<siteName>
project directory. -
Navigate to the
themes/
directory. -
Run the following command:
gh repo clone lbliii/milodocs
4. Add theme to config #
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = 'milodocs'
5. Init repo #
Time to start saving your progress!
- Run the following:
git init
- Add a comment.
- Push your new site and theme to your remote git repo.
6. Deploy locally #
- Navigate into the
siteName
repo. - Run the following:
hugo server
- Open localhost (typically localhost:1313).
yay! you did it!
You’ve done the hardest part: installing and deploying Hugo with a theme. See the next page to learn how to clear out my default content and start drafting.