This blog entry is written on an iPad running Code App by thebaselab. I am recording a way to uncomfortably edit or draft something then post to my blog just in case I forget to bring my laptop.
Setting Up Code App
- Generate ssh key pairs and upload the public key to Github using
ssh-keygenon your Code App terminal; - Clone your blog repo,
gitequivalent on Code App islg2;- Github account mail and password or PAT may be required
Writing Blogs
- Create your blog entry markdown in
repo.git/content/posts - Paste the following template into the editor
--- title: draft: false date: --- - Generate timestamp usingand paste into the template - Copy and paste using the GUI instead of command + C/V.
date +'%Y-%m-%dT%H:%M:%S%z' - Save,
lg2 add .,lg2 commit, andlg2 push. Github Action will automatically build and deploy the site.
Remark
You won’t want to write blogs on an iPad.
Code App is extremely buggy and annoying. For example,
- its terminal is based on ios_system “terminal emulator” project
- commands and scripting are almost unusable (if I can run Hugo or write scripts, why have I manually copy the template?)
- poor mouse and keyboard integration
- I am writing this using the keyboard of my MacBook via Sidecar.
- frequent crashes
- maintenance and security aren’t guranteed
- make sure to backup you data, use version control, and set paraphrase to your ssh key.
- no extension ecosystem
- no grammar and spelling checking tools: please forgive these mistakes, if any, in this post
Final Verdict
Maybe a harmony os PC (not AD) has better blogging experience than an iPad.
Your next computer won’t be an iPad. (Edited on iPad Pro M4 13’')