Getting from 0 to 1 takes ~5 minutes.
1. Install Hugo #
bash
brew install hugoSee Hugo Docs for more options:
2. Create a new site #
s
hugo new site <siteName>3. Install this project #
Open your
<siteName>project directory.Navigate to the
themes/directory.Run the following command:
bashgh repo clone lbliii/milodocs
4. Add theme to config #
s
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:s
git init - Add a comment.
- Push your new site and theme to your remote git repo.
6. Deploy locally #
- Navigate into the
siteNamerepo. - Run the following:s
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.