Skip to content

Commit d2cbffa

Browse files
0.1.0 development
1 parent 2c98429 commit d2cbffa

File tree

6 files changed

+78
-14
lines changed

6 files changed

+78
-14
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# commitconfirmed.github.io
2-
Personal Blog using Hugo
32

3+
My own personal blog. Visit https://commitconfirmed.github.io for the page.
44

5-
# Random notes
5+
If you would like to create your own Blog on GitHub pages, see https://commitconfirmed.github.io/posts/hugo-github-pages-starter and the associated starter respository https://github.com/commitconfirmed/hugo-git-pages-starter
66

7-
Added the below to the tailwind theme as I wanted a title (layouts/partials/header.html)
7+
## Random notes
88

9-
``` html
10-
{{ if .Site.Params.header.title }}
11-
<div class="hidden md:flex items-center px-2 text-3xl bold text-slate-800 dark:text-slate-200 ">
12-
{{ .Site.Params.header.title }}
13-
</div>
14-
{{ end }}
9+
Files to update when updating the Hugo version
10+
11+
```bash
12+
Dockerfile
13+
.github/worksflows/hugo.yml
14+
.devcontainer/Dockerfile
1515
```

site/content/about/index.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
+++
22
title = "About"
33
description = "About Me"
4-
date = "2025-03-12"
4+
date = "2025-03-25"
5+
tags = [
6+
"personal",
7+
]
8+
categories = [
9+
"personal",
10+
]
511
+++
612

713
Testing about page
Loading
Loading

site/content/posts/introduction/index.md renamed to site/content/posts/hugo-github-pages-starter/index.md

+42-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags = [
1111
categories = [
1212
"hugo",
1313
]
14-
series = ["Hugo"]
14+
series = ["Hugo Blog"]
1515
+++
1616

1717
## Introduction
@@ -24,12 +24,12 @@ This guide in particular uses a Tailwind CSS theme (ironically called [Tailwind]
2424

2525
- Create a GitHub account
2626
- Create a new public repo called **username**.github.io replacing username your GitHub username
27-
- Clone this repo into your repo
27+
- Clone my [repo](https://github.com/commitconfirmed/hugo-git-pages-starter) into your repo
2828
- Update the `~/site/hugo.toml` file with your own personal details
2929
- Update the `~/site/content/about/index.md` file with your own personal details
3030
- See the `~/site/content/posts/` directory for an example blog bost.
3131
- Create a new folder and `index.md` file to make your own blog post
32-
- Update your repos Settings/Pages to deploy using Github Actions and create a workflow using the `~/.github/workflows/hugo.yml` file
32+
- Update your repos Settings/Pages to deploy using Github Actions and create a workflow using the provided `~/.github/workflows/hugo.yml` file
3333
- See the Hugo [Documentation](https://gohugo.io/host-and-deploy/host-on-github-pages/) for detailed instructions
3434
- Commit some changes and push to Main and your blog should now be available at https://username.github.io
3535

@@ -454,3 +454,42 @@ Commit and push these changes.
454454
455455
### Giscus
456456
457+
Hugo and this theme support comments using giscus. To enable this follow the instructions at https://giscus.app/
458+
459+
When installing the app set it to your username.github.io repository. Once done just enter your repository and it should validate
460+
461+
<img src=./images/hugo-giscus-1.png alt="Giscus Settings #1">
462+
463+
You can ignore the rest of the settings and scroll down to the enable giscus section where you can retrieve your repo, repoID and categoryID
464+
465+
<img src=./images/hugo-giscus-2.png alt="Giscus Settings #1">
466+
467+
Insert the below into your `hugo.toml` params section, replacing the repo, repoID and categoryID with your own
468+
469+
```toml
470+
[params.giscus]
471+
enabled = true
472+
repo = "username/username.github.io"
473+
repoID = "R_#####"
474+
category = "Announcements"
475+
categoryID = "DIC_####"
476+
mapping = "pathname"
477+
strict = "0"
478+
reactionsEnabled = "1"
479+
emitMetadata = "0"
480+
inputPosition = "bottom"
481+
lang = "en"
482+
```
483+
484+
### Google Analytics
485+
486+
Hugo and this theme support Google Analytics. To enable this create an account at https://analytics.google.com/ then set up a tag for your github.io site. Once setup you'll have a G-XXXXXXXXXX tag which you can put into your `hugo.toml` file
487+
488+
<u>hugo.toml</u>
489+
490+
```toml
491+
[services]
492+
[services.googleAnalytics]
493+
ID = "G-XXXXXXXXXX"
494+
```
495+

site/hugo.toml

+20-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ languageCode = "en"
77
theme = "tailwind"
88
enableRobotsTXT = true
99
enableEmoji = true
10+
minify = false
1011

1112
[markup]
1213
_merge = "deep"
@@ -29,6 +30,19 @@ enableEmoji = true
2930
since = 2025
3031
poweredby = true
3132

33+
[params.giscus]
34+
enabled = true
35+
repo = "username/username.github.io"
36+
repoID = "R_kgDOOC1M0Q"
37+
category = "Announcements"
38+
categoryID = "DIC_kwDOOC1M0c4Cnijk"
39+
mapping = "pathname"
40+
strict = "0"
41+
reactionsEnabled = "1"
42+
emitMetadata = "0"
43+
inputPosition = "bottom"
44+
lang = "en"
45+
3246
[[params.social_media.items]]
3347
enabled = true
3448
title = 'Bluesky'
@@ -67,4 +81,9 @@ series = "series"
6781

6882
[caches]
6983
[caches.images]
70-
dir = ':cacheDir/images'
84+
dir = ':cacheDir/images'
85+
86+
[services]
87+
[services.googleAnalytics]
88+
ID = "G-TMR5HQPCWP"
89+

0 commit comments

Comments
 (0)