How to Publish a Hugo Site on Github Pages
This is a guide on how to use the Hugo static site generator with Github's free hosting solution, Github Pages.

Search for a command to run...
This is a guide on how to use the Hugo static site generator with Github's free hosting solution, Github Pages.

No comments yet. Be the first to comment.
Before we start This guide assumes: You are using a recent version of .NET (.NET 6+) and that you are using JWT authentication with Auth0. You have already followed an Auth0 guide to setup API authentication for ASP.NET but cannot fix the error men...
This post explains the simple process of installing a Windows game manually using Lutris with step-by-step instructions.

In this article you will learn how to initialize a React project using the Vite bundler with TailwindCSS for styling.

This is a simple guide to installing Linux targeted specifically at beginners. This post covers most of the basic principles of Linux and they work.

It is important to define some of the things we are going to be working with today. Let's have a look.
Git is software for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on different systems). Wikipedia
GitHub, Inc. is a provider of Internet hosting for software development and version control using Git. It offers the distributed version control and source code management (SCM) functionality of Git, plus its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, continuous integration and wikis for every project. Headquartered in California, it has been a subsidiary of Microsoft since 2018. Wikepedia
Hugo is the world’s fastest static website engine. It’s written in Go (aka Golang) and developed by bep, spf13 and friends. gohugo.io
Go to your dashboard page on github. The URL should look something like https://github.com/[USERNAME]
Hover over the plus icon on the top right of the page and click New Repository

Create the repository
If you have not installed git yet, search online for a tutorial. To verify it is properly installed, open up a terminal and type in git --version. It should display a version number; if not, then it is not properly installed.
cd command. echo "# My new Hugo Site!" >> README.md
# This creates a file that describes your project!
hugo
# This will build your hugo site in this directory
mv public docs
# Necessary to change name of public folder when using github pages
git init
# This initializes a git repository
git add -A
# This adds all of your files to a commit
git commit -m "Initial commit"
# This commits all of the files you added
git remote add origin https://github.com/[YOUR USERNAME]/[REPOSITORY NAME].git
# This tells git that you want to push your files to this repository
# from now on (make sure you replace your username into the URL)
git push -u origin master
# This pushes the files you just commited to the github servers
Go to your repository's page on github.

docs folder from the dropdown and click save.Today you have learned how to:
Congrats! You just uploaded you files to github. You can view them by going to https://github.com/[YOUR USERNAME]/[REPOSITORY NAME]