On a mac:
brew install hugo
On Linux:
- Download from the releases page: https://github.com/gohugoio/hugo/releases/tag/v0.46
- Extract and save the executable to
/usr/local/bin
From wherever you checkout repos:
git clone git@github.com:rnzsgh/fargate-workshop.git
(or your fork)
cd fargate-workshop
git submodule init
;
git submodule update
You can follow instructions from npm website: https://www.npmjs.com/get-npm
npm install
npm run server
or
npm run drafts
to see stubbed in draft pages.
npm run build
will build your content locally and output to ./public/
npm run test
will test the built content for bad links
Visit http://localhost:1313/ to see the site.
As you save edits to a page, the site will live-reload to show your changes.