Skip to content

Commit 938b66f

Browse files
0.1.0 development
1 parent 2486f24 commit 938b66f

File tree

2 files changed

+29
-22
lines changed

2 files changed

+29
-22
lines changed

.gitignore

-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
# This .gitignore is appropriate for repositories deployed to GitHub Pages and using
2-
# a Gemfile as specified at https://github.com/github/pages-gem#conventional
3-
4-
# Basic Jekyll gitignores (synchronize to Jekyll.gitignore)
5-
_site/
6-
.sass-cache/
7-
.jekyll-cache/
8-
.jekyll-metadata
9-
10-
# Additional Ruby/bundler ignore for when you run: bundle install
11-
/vendor
12-
13-
# Specific ignore for GitHub Pages
14-
# GitHub Pages will always use its own deployed version of pages-gem
15-
# This means GitHub Pages will NOT use your Gemfile.lock and therefore it is
16-
# counterproductive to check this file into the repository.
17-
# Details at https://github.com/github/pages-gem/issues/768
18-
Gemfile.lock
19-
201
# Hugo gitignores
212
/site/resources/
223
/site/public/
+29-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
+++
2-
title = "Building your own hugo site"
2+
title = "Building your own Hugo site on github"
33
date = "2025-03-12"
4-
description = "Quick guide to building and hosting a basic blog on your personal github"
4+
description = "A modern guide to building and hosting a basic blog using Hugo on your personal github account"
55
tags = [
66
"hugo",
7+
"blog",
78
"github",
89
"github-pages",
910
]
@@ -14,8 +15,33 @@ series = ["Hugo"]
1415
aliases = ["/building"]
1516
+++
1617

17-
# Test
18+
## Introduction
1819

1920
Test
2021

2122
Test in codespaces number 2
23+
24+
## TLDR
25+
26+
Just clone my basic-hugo-github-blog and modify to your own personal preferences
27+
28+
## Step by Step guide
29+
30+
### Github
31+
32+
To start, you'll of course need your own [Github account](https://github.com/signup). To utilize your accounts own .github.io domain to host and display your Hugo site you will need to create a new public repository called **username**.github.io
33+
34+
For example on my commitconfirmed username, I needed to use [commitconfirmed.github.io](https://github.com/commitconfirmed/commitconfirmed.github.io)
35+
36+
### Initial Setup
37+
38+
Now, using your development environment of choice clone your newly created repository and create a "site" directory, which is where we will be building our Hugo site. Also create a .gitignore file with the below content (which will be used later on to ignore some of the files that are automatically created from going into your repo)
39+
40+
```bash
41+
# Hugo gitignores
42+
/site/resources/
43+
/site/public/
44+
/site/themes/
45+
.hugo_build.lock
46+
```
47+

0 commit comments

Comments
 (0)