On macOS
Cloning the Repository
- Create a Github account.
- Open a terminal.
- Make sure that you have installed ‘brew’ by following the installation instructions.
- Install git by running
brew install git. - Install hugo by running
brew install hugo. - We’re going to duplicate a repository by using the steps described
here.
Follow the steps below:
- On github.com, create a new repository with your desired
newname. - Open a terminal.
- Navigate to a suitable directory to clone into by making use of the
cdcommand. - Type
git clone --bare https://github.com/peterdieleman/papermod.git && cd papermod. - Type
git push --mirror https://github.com/yourusername/newname.git, whereyourusernameis your github username, and wherenewnameis the repository name above. - Type
cd .. && rm -rf papermodto remove the original repository. - Type
git clone https://github.com/yourusername/newname.gitto clone your copy of this repository. - Type
cd newnameto move into your newly cloned repo. - Type
git submodule update --init --recursiveto make sure the submodules are cloned correctly.
- On github.com, create a new repository with your desired
- Make sure you are on the ‘master’ branch by running
git checkout master. - Within this folder, run
hugo server -Dand navigate to http://localhost:1313/ to look at the website.
Deploying to Netlify
- Sign up for a netlify account.
- Navigate to the main settings page.
- Click on
New site from Git. - Select ‘Github’.
- Select the repository that you want to build the site from.
- Navigate to the bottom and hit ‘Deploy site’.
Your site should now be deployed to a randomly generated *.netlify.com address.
To view the configuration of your site,
navigate to
app.netlify.com
and click on ‘Sites’.