Getting Started with Hugo
Step 1. Install Hugo
Go to Hugo releases and download the appropriate version for your OS and architecture.
Save it somewhere specific as we will be using it in the next step.
More complete instructions are available at Install Hugo
Step 2. Build the Docs
Hugo has its own example site which happens to also be the documentation site you are reading right now.
For macOS you can use Homebrew:
brew install hugo
Follow the following steps:
git clone https://github.com/spf13/hugo
cd hugo
/path/to/where/you/installed/hugo server --source=./docs
open http://localhost:1313
- Clone the Hugo repository
- Go into the repo
- Run hugo in server mode and build the docs
- Open your browser to http://localhost:1313
Corresponding pseudo commands:
Once you’ve gotten here, follow along the rest of this page on your local build.
Step 3. Change the docs site
Stop the Hugo process by hitting Ctrl+C.
Now we are going to run hugo again, but this time with hugo in watch mode. content pages. How about changing this very file to fix the typo. How about changing this very file to fix the typo.
Content files are found in docs/content/. Unless otherwise specified, files
are located at the same relative location as the url, in our case
docs/content/overview/quickstart.md.
Change and save this file.. Notice what happened in your terminal.
Comments powered by Talkyard.