personal-website

source for my personal website regexghost.com
git clone https://git.regexghost.com/personal-website.git
Log | Files | Refs | README

commit 909d381450a1357f3b0f1b293d5eee2743f15785
parent 3b2222c6919fabeb3e23d8193d403b86f4245385
Author: regexghost <regexghost@protonmail.com>
Date:   Thu, 14 May 2026 13:17:31 +0100

added first proper pages, and updated templates

Diffstat:
Aabout.md | 31+++++++++++++++++++++++++++++++
Abuild.sh | 16++++++++++++++++
Mgozer-files/templates/blog-page.html | 12+++++-------
Mgozer-files/templates/blog.html | 26+++++++++++---------------
Agozer-files/templates/bottom.html | 12++++++++++++
Mgozer-files/templates/default.html | 10++++------
Mgozer-files/templates/devlog.html | 25++++++++++---------------
Mgozer-files/templates/top.html | 47+++++++++++++++++++++++------------------------
Aindex.md | 29+++++++++++++++++++++++++++++
9 files changed, 141 insertions(+), 67 deletions(-)

diff --git a/about.md b/about.md @@ -0,0 +1,31 @@ +# About + +## Me + +I'm a 24 year old computer science student from Scotland. Currently studying at the University of St Andrews on a Masters program, hoping to graduate at the end of 2026. My intrests include: +- Coding +- Linux +- Gaming +- Cycling +- Photography +- Public Transport/Infrastructure + +## Contact + +You can contact me on either of my email addresses: dev at regexghost dot com **or** regexghost at protonmail dot com Preferably the former as I can view those emails in the terminal :) +Alternatively you can open an issue on: +[GitHub](https://github.com/regexghost) or +[Codeberg](https://codeberg.org/regexghost) or message me on +[Bluesky](https://bsky.app/profile/regexghost.bsky.social) + +## My Projects + +Available on [GitHub](https://github.com/regexghost), +[Codeberg](https://codeberg.org/regexghost) and my [self-hosted git +server](https://git.randomcoder.com) + +## This Website + +This website is written in markdown, all of the content can be found on [my GitHub](https://github.com/regexghost) (and alternatives). It is compiled into HTML using [gozer](https://github.com/dannyvankooten/gozer) ([my +fork](https://github.com/regexghost/gozer)). The website is hosted on a VPS from [Racknerd](https://www.racknerd.com/), using a domain from [Porkbun](https://porkbun.com/). +I previously used GitHub pages, but I thought it would be fun to have my own domain, and run my own server. Maybe one day I will try self-hosting from my home internet... diff --git a/build.sh b/build.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +[ -d /tmp/mainwebsite ] && rm -rf /tmp/mainwebsite + +mkdir /tmp/mainwebsite +mkdir /tmp/mainwebsite/content + +cp -r gozer-files/templates /tmp/mainwebsite/ +cp -r gozer-files/config.toml /tmp/mainwebsite/ +cp -r index.md about.md /tmp/mainwebsite/content/ +cp -r linux other blog devlog coding /tmp/mainwebsite/content/ +cp -r static /tmp/mainwebsite/public + +cd /tmp/mainwebsite +gozer build +[ "$1" = "serve" ] && gozer serve diff --git a/gozer-files/templates/blog-page.html b/gozer-files/templates/blog-page.html @@ -1,12 +1,10 @@ <!DOCTYPE html> <head> - <title>{{ .Page.Title }}</title> - + <link rel="stylesheet" href="/style.css"> + <title>{{ .Page.Title }}</title> +</head> {{template "top.html"}} - -<h1>{{ .Title }}</h1> -<h2>{{ .Page.DatePublished.Format "2006-01-02" }}</h2> + <h1>{{ .Title }}</h1> + <h2>{{ .Page.DatePublished.Format "2006-01-02" }}</h2> {{ .Content }} - {{template "bottom.html"}} - diff --git a/gozer-files/templates/blog.html b/gozer-files/templates/blog.html @@ -1,21 +1,17 @@ <!DOCTYPE html> <head> - <title>{{ .Page.Title }}</title> - + <title>{{ .Page.Title }}</title> + <link ref="stylesheet" href="/style.css"> +</head> {{template "top.html"}} - -<h1>{{ .Title }}</h1> + <h1>{{ .Title }}</h1> {{ .Content }} - -<h2>Posts</h2> - -</ul> -{{ range .Pages }} - {{ if HasPrefix .Filepath "content/blog" }} - <li>{{ .DatePublished.Format "2006-01-02" }} - <a href="{{ .Permalink }}">{{ .Title }}</a></li> + <h2>Posts</h2> + </ul> + {{ range .Pages }} + {{ if HasPrefix .Filepath "content/blog" }} + <li>{{ .DatePublished.Format "2006-01-02" }} - <a href="{{ .Permalink }}">{{ .Title }}</a></li> {{ end }} -{{ end }} -</ul> - + {{ end }} + </ul> {{template "bottom.html"}} - diff --git a/gozer-files/templates/bottom.html b/gozer-files/templates/bottom.html @@ -0,0 +1,12 @@ + <div class="footer"> + <br><br> + <a href="https://github.com/regexghost/personal-website">source</a> ~ + <a href="https://www.regexghost.com/about#license">license</a> ~ + <a href="https://www.regexghost.com/sitemap">sitemap</a> ~ + <a href="https://github.com/regexghost/personal-website/issues">complaints/corrections</a> ~ + <a href="https://www.regexghost.com/blog.rss">rss (blog)</a> ~ + <a href="https://www.regexghost.com/devlog.rss">rss (devlog)</a> + </div> + </div> + </div> +</body> diff --git a/gozer-files/templates/default.html b/gozer-files/templates/default.html @@ -1,11 +1,9 @@ <!DOCTYPE html> <head> - <title>{{ .Title }}</title> - + <link rel="stylesheet" href="/style.css"> + <title>{{ .Title }}</title> +</head> {{template "top.html"}} - -<h1>{{ .Title }}</h1> + <h1>{{ .Title }}</h1> {{ .Content }} - {{template "bottom.html"}} - diff --git a/gozer-files/templates/devlog.html b/gozer-files/templates/devlog.html @@ -1,20 +1,15 @@ <!DOCTYPE html> <head> - <title>{{ .Page.Title }}</title> - + <title>{{ .Page.Title }}</title> + <link rel="stylesheet" href="/style.css"> +</head> {{template "top.html"}} - -<h1>{{ .Title }}</h1> + <h1>{{ .Title }}</h1> {{ .Content }} - -<h2>Posts</h2> - -{{ range .Pages }} - {{ if HasPrefix .Filepath "content/devlog" }} - <h3>{{ .Title }}</h3> - {{ Content . }} - {{ end }} -{{ end }} - + {{ range .Pages }} + {{ if HasPrefix .Filepath "content/devlog" }} + <h2>{{ .Title }}</h2> + {{ Content . }} + {{ end }} + {{ end }} {{template "bottom.html"}} - diff --git a/gozer-files/templates/top.html b/gozer-files/templates/top.html @@ -1,25 +1,24 @@ - <link rel="stylesheet" href = "/style.css"> - -</head> <body> -<div class="header"> -<div class="root-link"> -<a href="https://www.regexghost.com">regexghost.com</a><br> -</div> -<div class="header-left"> -<a href="https://www.regexghost.com/linux">Linux</a> -<a href="https://www.regexghost.com/coding">Coding</a> -<a href="https://git.regexghost.com">Git</a> -<a href="https://blog.regexghost.com">Blog</a> -<a href="https://www.regexghost.com/coding/devlog">Devlog</a> -<a href="https://photo.regexghost.com">Photos</a> -<a href="https://www.regexghost.com/categories">Other</a> -</div> -<div class="header-right"> -<a href="https://github.com/regexghost"><img src="/images/github.svg" alt="GitHub logo" style="width:26px;height:26px;"></a> -<a href="https://codeberg.org/regexghost"><img src="/images/codeberg.svg" alt="Codeberg logo" style="width:26px;height:26px;"></a> -<a href="https://bsky.app/profile/regexghost"><img src="/images/bluesky.svg" alt="Bluesky logo" style="width:26px;height:26px;"></a> -<a href="https://www.regexghost.com/about#contact"><img src="/images/email.svg" alt="email logo" style="width:26px;height:26px;"></a> -<!-- https://icon-sets.iconify.design/material-icon-theme/ --> -</div> -</div> + <div class="header"> + <div class="header-left"> + <a href="https://www.regexghost.com">regexghost.com</a> --- + </div> + <div class="header-right"> + <a href="https://github.com/regexghost"><img src="/images/github.svg" alt="GitHub logo" style="width:26px;height:26px;"></a> + <a href="https://codeberg.org/regexghost"><img src="/images/codeberg.svg" alt="Codeberg logo" style="width:26px;height:26px;"></a> + <a href="https://bsky.app/profile/regexghost.bsky.social"><img src="/images/bluesky.svg" alt="Bluesky logo" style="width:26px;height:26px;"></a> + <a href="https://www.regexghost.com/about#contact"><img src="/images/email.svg" alt="email logo" style="width:26px;height:26px;"></a> + <!-- https://icon-sets.iconify.design/material-icon-theme/ --> + </div> + </div> + <div class="main-area"> + <div class="sidebar"> + <a href="https://www.regexghost.com/linux">Linux</a><br> + <a href="https://www.regexghost.com/coding">Coding</a><br> + <a href="https://git.regexghost.com">Git</a><br> + <a href="https://www.regexghost.com/blog">Blog</a><br> + <a href="https://www.regexghost.com/devlog">Devlog</a><br> + <a href="https://www.regexghost.com/photo">Photos</a><br> + <a href="https://www.regexghost.com/other">Other</a><br> + </div> + <div class="content"> diff --git a/index.md b/index.md @@ -0,0 +1,29 @@ ++++ title = "regexghost.com" +++ + +## Welcome to regexghost.com! + +### [Linux](/linux) + +Various Linux configs, scripts, and general thoughts on computers + +### [Coding](/coding) + +Programming projects and contributions + +### [Blog](/blog) + +My personal blog + +### [Devlog](/devlog) + +Feed showing progress on my various coding projects + +### [Other](/other) + +Stuff that doesn't fit anywhere else + +## RSS + +I have 2 main RSS feeds, +[my blog](https://www.regexghost.com/blog.rss) and +[devlog](https://www.regexghost.com/devlog.rss)