Last Modified: Monday, Feb 11, 2019

AUTOMATIC:

Git Bash (Windows 10)

cd projects

mkdir $PROJECT_NAME

cd $PROJECT_NAME

git clone https://github.com/StuartStephens/Victor-hugo-Template.git

mv victor-hugo-template dev

cd dev

npm install

While you wait, go ahead and Create the new repository on Github.com github.com/new

Skip to step #3, don’t worry about installing CSS & other stuff.

MANUAL

1. Installing Victor-Hugo

Git Bash (Windows 10)

cd projects

mkdir $PROJECT_NAME

cd $PROJECT_NAME

git clone https://github.com/netlify-templates/victor-hugo.git

mv victor-hugo dev

cd dev

npm install

While you wait, go ahead and Create the new repository on Github.com github.com/new

2. Delete unnessecary files

explorer .

  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • LICENSE
  • README.md
  • renovate.json

3. Setup Git & Github repository

Remove git history

rm -R .git/

Create new repository

git init

git a

git cm "Initial Commit"

Add Github remote

git remote add origin $newRepositoryURL

Push repository & set as default push target

git push -u origin master

4. Connect to Netlify

app.netlify.com/start

Set Deploy Notification to alert your email upon build failure.

Set Environment variable: HUGO_ENV = production

5. Install default layouts

Head to the Default Layouts Section and copy them over.