An Experiment

As I have migrated this site from Ghost to a static site generated by Hugo with GitHub, I wanted to test the theory that I could update the site on my Galaxy Tab S6 in exactly the same way that I do on my laptop. So, armed with Termux and my trusty tablet (with keyboard) I set about seeing whether I could write this post and publish it from a completely cold start.

I’m not going to go into step-by-step detail here, just the basic process. Now, when I said “cold start” earlier, I meant that Git, Hugo, the GitHub repo with the site on… none of that was already on the tablet.

So, a simple:

1
pkg install git gh hugo

… followed by the instructions I posted over at thelovebug/davelee.uk to grab the repo and the theme submodule, and I’m seemingly ready to go.

I even ran:

1
hugo server -D --disableFastRender

… just to see if I could load the site locally for testing purposes, and whaddyaknow, it actually works!

So, I’m typing this post in nano in Termux, and I have already downloaded an image to go with the post. So, as of this moment, this particular experiment has all the hallmark of a potential success.

This is weird, because this next section is fully dependent on whether this next section works or not. I’m writing this in the tone of someone who already assumes that the experiment has been a success. This is essentially Schrödinger’s blog post. (yes, I know that’s not strictly true, but what’s a blog post without a good heavy dose of misrepresentation, huh?)

So, after testing the site works with a hugo server command, and loading up the site locally, and then correcting all of the typos that are undoubtedly present in the post, I have done:

1
2
3
4
git add .
git status
git commit -m "New post 'an-experiment'"
git push

… so a few seconds or minutes later, this post is now live on the site.

See, as I write this - having not yet carried out this bit - I am full of confidence!

EDIT: Ok, so after removing the draft flag from the post, let’s see if that works! 😆


Post image by Image by Photo Mix from Pixabay

Related Content