Skip to content

portoio/PWiT

Repository files navigation

MZ Netlify

Install and Run

  1. Requires hugo, install using homebrew if you don't have it already: brew install hugo
  2. Requires yarn: brew install yarn
  3. Install gulp-cli globally: yarn global add -g gulp-cli
  4. Clone project locally
  5. Grab dependencies normally: yarn install
  6. Default gulp task serves and starts listening for changes

Deploy on Netlify

  1. Push your Hugo project to Github
  2. Get a Netlify account
  3. Choose your Github repository and branch, use build command gulp build and set public/ as your Public Folder.

Notes about using hugo

  • 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.

Activate Netlify CMS

  1. Set the correct repo and branch on the provided static/admin/config.yml
  2. Create a new Github application following Netlify's instructions - don't forget the https://api.netlify.com/auth/done callback URL.
  3. 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.
  4. Start using the CMS on http://[your-website-url]/admin