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

  1. Generate ssh key pairs and upload the public key to Github using ssh-keygen on your Code App terminal;
  2. Clone your blog repo, git equivalent on Code App is lg2;
    • Github account mail and password or PAT may be required

Writing Blogs

  1. Create your blog entry markdown in repo.git/content/posts
  2. Paste the following template into the editor
    ---
    title: 
    draft: false
    date: 
    ---
    
  3. Generate timestamp using
    date +'%Y-%m-%dT%H:%M:%S%z'
    
    and paste into the template - Copy and paste using the GUI instead of command + C/V.
  4. Save, lg2 add ., lg2 commit, and lg2 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’')