On a mac:
brew install hugo
- Download from the releases page: https://github.com/gohugoio/hugo/releases/tag/v0.46
- Extract and save the executable to
Clone this repo:
From wherever you checkout repos:
git clone email@example.com:githubmg/sagemaker-workshop.git (or your fork)
Clone the theme submodule:
git submodule init ;
git submodule update
Install Node.js and npm:
You can follow instructions from npm website: https://www.npmjs.com/get-npm
Install node packages:
Run Hugo locally:
npm run server
npm run drafts to see stubbed in draft pages.
npm run build will build your content locally and output to
npm run test will test the built content for bad links
View Hugo locally:
Visit http://localhost:8080/ to see the site.
As you save edits to a page, the site will live-reload to show your changes.
Any commits to master will auto build and deploy in a couple of minutes. You can see the currently deployed hash at the bottom of the menu panel.
note: shift-reload may be necessary in your browser to reflect the latest changes.