This is the source code for my personal website :)
If you want to grab a copy to learn from follow the setup below.
- Xcode command line utilities
xcode-select --install
- Homebrew
- Node.js
brew install node
- Gulp
npm install -g gulp
- Hugo
brew install hugo
git clone https://github.com/harrycresswell/hc.git
cd hc
- Then run
npm install
to install node dependencies - Run
gulp
to start a local server and build_site
in development mode - for a production ready build run
gulp prod
the site is now ready for deployment (make sure you update thebaseurl
inconfig.toml
)
hugo new articles/ARTICLE-NAME.md
- run
hugo --verbose
- run
hugo server --watch --verbose
orhugo server -wv
to start the server, then navigate to http://localhost:1313/
- open a second tab on the CL and run
gulp
rm -rf public
hugo
gulp
Props to Dan Bahrami for getting me started with a great Hugo-gulp workflow