My personal website
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
archetypes
content
layouts
src
.gitignore
README.md
config.toml
gulpfile.js
package.json
todo.md

README.md

hc

This is the source code for my personal website :)

Getting started

If you want to grab a copy to learn from follow the setup below.

Install pre-requisites

  • Xcode command line utilities xcode-select --install
  • Homebrew
  • Node.js brew install node
  • Gulp npm install -g gulp
  • Hugo brew install hugo

Usage

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 the baseurl in config.toml)

Adding content

  • hugo new articles/ARTICLE-NAME.md

Compile the site to public folder

  • run hugo --verbose

Start the server

  • run hugo server --watch --verbose or hugo server -wv to start the server, then navigate to http://localhost:1313/

Compile assets

  • open a second tab on the CL and run gulp

production ready build for deployment

rm -rf public
hugo
gulp

Props to Dan Bahrami for getting me started with a great Hugo-gulp workflow