# Install Hugo by Homebrew
brew install hugo
# Check the Hugo version
hugo version
# Install Go by Homebrew
brew install go
# Check the Go version
go version
# Install npm by Homebrew
brew install npm
# Install npm packages
npm install
The hugo server allows you to develop and write articles locally.
Once you save a file, LiveReload allows you to see the changes immediately in your browser.
hugo server
# Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
# Press Ctrl+C to stop
If you want to include a draft.
hugo server -D
If you want automatic redirection to modified files.
hugo server --navigateToChanged
Create a markdown file in the directory where you want to place it.
Or you can add it with the following command.
hugo new content directory/page-name.md
The artifact is created in the public directory.
hugo
When a GitHub pull request is merged (pushed to the main branch), GitHub Actions automatically deploys it.
.github/workflows/deploy.yml