My own editor for this website

At first I used Pages CMS for this site. It is a ready-made editor for sites whose content lives on GitHub. Since November 12, I use my own editor instead. I built it with Claude.

The editor at a glance

  • While I write, the text looks like the finished page.
  • It runs on my iPhone and on my computer. Without a connection it still opens, and it sends what I save as soon as I am back online.
  • I edit the German and English versions together. If a version is missing, it creates a draft with the existing text.
  • A style check flags long sentences and words that sound like advertising.
  • Before I publish, it reports missing summaries or image descriptions, leftover placeholders and links to articles that come out later.
  • In the overview I collect ideas, and one tap turns an idea into an article with a template, for example for an experience report or a comparison.
  • Under “Visits” I see the page views from Cloudflare. The public site loads no script for them and sets no cookies of its own, and it does not track visitors either.
  • Only I have access to the editor.

Why not a ready-made CMS

In Pages CMS I write the text into a simple form, and I only see what the article looks like on the site after I publish it. That bothered me.

Then there was the second language. Every article exists twice on my site, in German and in English, and date, status and schedule have to match in both files. Pages CMS has no shared fields for two languages. Over time, the two versions would have drifted apart.

How the editor works

It saves straight to the site’s GitHub repository and has a key for that, which only works for this one repository. After I save, Cloudflare rebuilds the site, and in the bottom left corner the editor shows whether that worked. If the site is not online after about ten minutes, it reports an error.

Headings, images and tables already look the way they will later. At the top I switch between German and English. Date and status apply to both versions, and when I save, both files go into one commit.

Drafts have a preview that looks like the finished page, which only I can open and which does not show up in search engines.

Under “Whole site” I see the home page, projects and articles as they will look after all scheduled dates, and planned items are dashed. The timeline in the overview lists all entries by date and shows what is already online and what is still waiting.

This is the editor on my iPhone. The first picture shows the overview, the second an article I am editing.

The editor on the iPhone: the overview with scheduled articles, a draft awaiting approval and the next automation The editor in dark mode: the overview with scheduled articles, a draft awaiting approval and the next automation An article in the editor, with title, short description, tags and text in the look of the site An article in the editor in dark mode, with title, description, tags and text as on the site

What helps when writing

The style check flags sentences longer than 45 words and five sentences in a row of almost the same length. It also flags dashes, emojis, advertising words and stock phrases. With one button I jump from one flagged spot to the next.

LanguageTool, a free service, checks spelling and grammar. Claude checks commas more thoroughly, and there is a button for that called “Proofread with Claude”.

Claude is not built into the editor. The editor copies a ready-made request to the clipboard, and I paste it into Claude and copy the answer back. Claude replies with a list of changes, which the editor shows in the text as suggestions. I update the other language version the same way after I change something. Claude then gets the old and the new version, and its answer is again a list of changes.

Scheduling

My own articles come out on Tuesdays and Thursdays at 8 a.m. In the editor I only set the date, and a GitHub action does the rest. GitHub sometimes skips scheduled runs, so the Cloudflare worker checks every 15 minutes whether a date has come, and starts the action itself. When a new article is online, the worker emails me.

Images and details

I crop photos in the editor before I upload them. Each image can have a dark version as well, and the site shows the light or dark version that matches the device. I put several images in one paragraph, and on the computer they sit side by side.

Under “Details” I change an article’s address. The editor renames the file, adjusts the English name and sets up a redirect, so old links still work. For links to share, a GitHub action creates the preview image whenever the title, description or project picture changes.

How it came about

The first version came together on November 12, and the next day I added the style check, templates, scheduling, preview and LanguageTool. By now the editor has about 4,200 lines of code. I described what I needed, and Claude wrote the code.

Many changes were small fixes. At first, screenshots did not show up in Safari, and the style check marks were hard to see in dark mode. I only noticed things like that when I used the editor on my iPhone.

Another example is the preview. At first the only way back to the editor was the browser’s back button, and I wrote Claude a short prompt about it.

Can you add a “Close” icon to “Preview. Not published yet. Shows the last saved version.”? Otherwise, the only way back is the browser’s back button, and that is annoying.

Soon after, the preview had a button to close it.

What I take away

I now have an editor that fits my site and the way I write. With a ready-made CMS, I would have had to adapt my site to it, but here it was the other way round. When something bothers me, I describe it to Claude, and soon after it is changed. For a small site, that is a lot of effort. For me it was worth it, and I would do it the same way again.

All posts