To prepare a Hugo site locally:
Open your terminal (you can use git-bash in windows), create, and navigate into your example site:
hugo new site example-site
cd example-siteThis example will use the Restaurant Hugo theme. Use git to clone this theme into your themes folder:
cd themes
git clone https://github.com/themefisher/restaurant-hugo.gitRemove this theme’s git configuration to avoid issues in later steps:
rm -rf restaurant-hugo/.gitMove the sample content for this theme into the project folder:
cd ..
cp -a themes/restaurant-hugo/exampleSite/. .Test the site with the hugo server command and visit localhost:1313:
Success!
Press ctrl+c in the terminal window to close down the Hugo server when done exploring the template.
Now you are ready to set up a git repo and push your site to GitHub: Hosting the site on GitHub.