Posts on tag: hugo

Table of contents

Managing hugo with git and ssh on android

So I wanted to be able to maintain my hugo site on my phone, just in case. It works but it was kinda annoying to setup.

You’ll need to install the apps Termux and Acode from Fdroid.

Then start Termux and execute termux-setup-storage and allow access to shared folders.

Next, install git: pkg install git.

Use your favourite file manager and create a working directory somewhere. I use Downloads/git. Then symlink to this dir in Termux:

ln -s /storage/emulated/0/git .

Now, generate a new SSH key pair:

ssh-keygen -t ed25519

Install the public key to your repository. I am using Gitolite, so I added it to the keydir in the gitolite-admin dir.

That’s basically it. Clone your repo, open the folder with Acode, edit or add files and commit and push them to your git repo.

screenshot

screenshot

I’ll not describe, how to setup gitolite and the hugo repo, maybe in a follow-up post.

↷ 17.04.2025 🠶 #hugo #git #android

Relaunch

I got finally rid of jekyll. It was a good system and served me well over the past years. But it has its quirks, has too many dependencies for my liking and it requires me to have a ruby interpreter to be installed in the jail.

Hugo on the other hand is written in Golang, it’s a self contained binary. Easy to use and to deploy. Although I had some trouble with templating, I got it to work with the help of the nice people on their forums. And it’s really fast.

Only the tags page is still missing, I’ll build it later.

While I was at it, I repaired the blog posts, mosts of them contained images with invalid uri’s.

So, I’m happy as it is now.

↷ 15.04.2025 🠶 #hugo