Skip to content.

Hugo: baseURL set in GitHub Actions

Collaborative websites need to be forked, but if you set baseURL the forked website will load resources from the original.. Not ideal. The fix I applied to my GitHub Actions CI to work around this: jobs: deploy: runs-on: ubuntu-latest defaults: run: shell: bash steps: - name: Build 🔨 run: | hugo --baseURL https://${GITHUB_REPOSITORY%%/*}${GITHUB_REPOSITORY#*/} This overrides the configured baseURL at build time with your GitHub account name as the subdomain and the repository as the directory. Read more →

Hosting my Hugo static website on GitHub Pages using Actions and my own domain

In a cost-saving exercise I wanted to try host my personal website on a free platform, since the code repository is hosted on GitHub, I decided to look into GitHub pages. My existing workflow combines three repositories to build the website: Hugs (Repo) - Contains my Hugo configuration and assets Blog (Repo) - Contains the blog posts Hugo-theme (Repo) - Contains the Hugo theme In order to use GitHub Pages I needed a fourth repository named after my GitHub account: joeheaton. Read more →

my Vim

This is my .vimrc, I find it benefitial to use this where I do development to normalise my editor across different operating systems, and to enable some useful untapped features to make Vim feel a bit less prehistoric.

Read more →

SSH port forwarding

The following command connects to our server and forwards a specific port on our local machine to the server. In this case we forward port 5432 which belongs to PostgreSQL, so when we connect to localhost:5432 on the desktop, the connection is forwarded through the secure tunnel to the server.

Read more →

Dynamically load fonts

I’ve added a Dyslexia accessibility feature to my website which loads a Dyslexia-friendly font, woo! This involved creating a small toggle function to turn the feature on and off, but when I reload the page it’s gone, so I had it bake a cookie so the function could trigger automatically on-reload. This still wasn’t enough I didn’t want every visitor to load the font, only users who click the toggle button, so I added a section to dynamically load the font. Read more →

Windows 10 Revamp

My notes on wiping Windows 10, which configuration options to watch out for and a list of useful programs. The whole process of wiping, installing and provisioning with a basic set of programs can be complete in an hour with a fast Solid-State Drive and modern hardware.

Read more →

Windows Terminal - Change default profile

Open the new tab dropdown, found to the right of your tabs: Windows Terminal new tab dropdown Click “Settings”, this will open a JSON file (for now) which looks something like this: { "defaultProfile": "{987-654-321}", "profiles": [ { "guid": "{987-654-321}", "hidden": false, "name": "Debian", "source": "Windows.Terminal.Wsl" }, { "guid": "{123-456-789}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false }, Copy the guid value from whichever flavour of Linux you want to set as default. Read more →
Joe Heaton



Joe’s technology-focused murmurings.