KCNet Blog created with hugo using the hello-friend-ng theme
  • HTML 55.1%
  • Shell 33.3%
  • Dockerfile 7.7%
  • Batchfile 3.9%
Find a file
2026-07-17 16:47:57 -04:00
archetypes Add files to repo 2025-10-03 14:35:52 -04:00
content/posts feat: Add website links post and add to index 2026-06-16 23:20:08 -04:00
data/nginx/kcnet-blog-nginx refactor: Move cloudflare ips into cloudflare.conf 2026-06-16 11:45:03 -04:00
layouts feat: Add website links post and add to index 2026-06-16 23:20:08 -04:00
Licenses feat: Update copyright info in hugo.toml and in license 2026-01-09 14:44:48 -05:00
static Add GPLv3 header to files, add favicon 2025-10-06 13:04:06 -04:00
themes refactor: Update site to have local and public paths for build-docker-image 2025-10-12 15:21:24 -04:00
.dockerignore Add more scripts for Linux 2025-10-05 14:38:04 -04:00
.gitignore Update blog posts 2025-10-04 14:20:13 -04:00
.gitmodules Add files to repo 2025-10-03 14:35:52 -04:00
build-docker-image.sh feat: Make blog minify build output 2026-06-20 00:46:01 -04:00
build-hugo.bat feat: Make blog minify build output 2026-06-20 00:46:01 -04:00
build-hugo.sh refactor: Update site to have local and public paths for build-docker-image 2025-10-12 15:21:24 -04:00
docker-compose.yml refactor: Update site to have local and public paths for build-docker-image 2025-10-12 15:21:24 -04:00
Dockerfile update: Change hugo version from 0.151.0 to 0.164.0 2026-07-17 16:47:57 -04:00
hugo.toml feat: Make blog minify build output 2026-06-20 00:46:01 -04:00
LICENSE.md Add GPLv3 header to files, add favicon 2025-10-06 13:04:06 -04:00
Readme.md feat: Update readme, update website-changelog.md 2025-10-12 15:04:21 -04:00
run-hugo.bat refactor: Update site to have local and public paths for build-docker-image 2025-10-12 15:21:24 -04:00
run-hugo.sh refactor: Update site to have local and public paths for build-docker-image 2025-10-12 15:21:24 -04:00
run-main-site.sh refactor: Update site to have local and public paths for build-docker-image 2025-10-12 15:21:24 -04:00

KCNet Blog

This is a basic blog for KelsonCraft using Hugo and markdown.

To run this, you will need to download the latest version of Hugo and place it in the same folder as the repo.

This needs some submodules for the theme to work, to obtain those use this command: git clone https://github.com/kelson8/kcnet-blog.git --recurse-submodules --recursive

Modifying the site

To modify the hello-friend-ng theme, I have copied the index.html, and a few other files from the theme into the layouts folder.

Anything that you want to modify from a theme, recreate the file structure, so for example copy themes/hello-friend-ng/layouts/partials/logo.html to layouts/partials/logo.html and modify it.

You can add posts to this by using this command:

  • .\hugo.exe new content content/posts/post_name.md

Launching the site

To launch this hugo site on Windows, I use Windows Terminal

Command: .\hugo.exe server -D

Launch and bind to local ip: \hugo.exe server -D --bind ip-or-url --baseURL ip-or-url

I now have scripts to run this on Windows run-hugo.bat and Linux run-hugo.sh

To use my docker build script (build-docker-image.sh):

  • Change the BLOG_DIR to the path where you have this repo cloned, and setup these NGINX_BLOG_DIR, NGINX_BLOG_DATA_DIR into a spot to place the static files, such as another Nginx server running with Docker.

This site can now be run with docker, use the build-docker-image.sh script to run the build for hugo, and copy the files to the nginx data dir.

TODO For site

  • Update this to add some more blog posts
  • Setup static site build and test with NGINX or another web server.
  • Setup Giscus for comments on the posts with GitHub.

Themes

Theme in use: hello-friend-ng

All themes added as submodules:

Look into these themes later:

License

I have decided to license the content such as the markdown files under the CC BY 4.0 license.

The code and scripts are licensed under the GPLv3 license.