- Requires hugo, install using homebrew if you don't have it already:
brew install hugo
- Requires yarn:
brew install yarn
- Install gulp-cli globally:
yarn global add -g gulp-cli
- Clone project locally
- Grab dependencies normally:
yarn install
- Default
gulp
task serves and starts listening for changes
- Push your Hugo project to Github
- Get a Netlify account
- Choose your Github repository and branch, use build command
gulp build
and set public/ as your Public Folder.
-
Remember to keep hugo updated! Homebrew won't let you install a specific version, so if you install a more recent version than is specified in netlify.toml, make sure to update that file accordingly. That way, your local builds will be in sync with Netlify builds.
-
To update hugo locally to the latest version, run
brew update && brew upgrade hugo
.
- Set the correct repo and branch on the provided static/admin/config.yml
- Create a new Github application following Netlify's instructions - don't forget the
https://api.netlify.com/auth/done
callback URL. - Go to your Netlify dashboard, select your site, navigate to Access > Authentication Providers > Install Provider > Github and use the Client ID and Secret generated in step 2.
- Start using the CMS on http://[your-website-url]/admin