Create a Hugo Site

To prepare a Hugo site locally:

  1. Open your terminal (you can use git-bash in windows), create, and navigate into your example site:

    hugo new site example-site 
    cd example-site
  2. This 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.git

    Remove this theme’s git configuration to avoid issues in later steps:

    rm -rf restaurant-hugo/.git
  3. Move the sample content for this theme into the project folder:

    cd ..
    cp -a themes/restaurant-hugo/exampleSite/. .
  4. Test the site with the hugo server command and visit localhost:1313: Picture of localhost:1313

    Success!

  5. 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.