./blog.sh

./blog.sh --anywhere is out everywhere

Apple has approved what it could. The developer account is active, and ./blog.sh --anywhere for iPhone, iPad and Mac has passed the review for testing in TestFlight. With that, ./blog.sh --anywhere is out on all three platforms: for Android, for iPhone, iPad and Mac, and for Windows and Linux. It is version 0.10.0 everywhere and does the same everywhere.

In The apps: the terminal's menu, without the terminal I wrote that the version for iPhone, iPad and Mac would come out as soon as Apple approved the account. It took six weeks. Now it is out.

iPhone, iPad and Mac

./blog.sh --anywhere is in TestFlight for now, not in the App Store. TestFlight is Apple's app for test versions: you install it from the App Store, open the link, and ./blog.sh --anywhere installs like any other app. Later versions then arrive by themselves.

Anyone can join, through this link:

testflight.apple.com/join/1hgyXAwa

Read more

A manual that is a blog

The documentation of ./blog.sh lives in the repository: eight files in the docs/ directory, some seventy-seven thousand words between them. On GitHub it can be read, but hardly leafed through. One file has over twenty sections, and a link from another one drops you in the middle of a long page that tells you nothing about where you are. Since 13 October the same text has been at manual.blogsh.app as a manual: the chapters in a menu on the left, the contents of the page on the right, the sections numbered. Since 8 November in Czech too. Today it has 78 pages in eleven chapters and describes 1.12.

It is not a documentation generator. It is ./blog.sh, the same engine this site runs on, with another skin and other content.

Read more

Noviny – Pavel se konečně dostal na titulní stranu

Pavel's blog, pavelchcepsat.cz, now looks like the front page of a newspaper: the banner as an advert, the title as a masthead, the lead story in columns, a grid of the other posts, his latest toots and Pixelfed photos, and a colophon instead of a footer. It is one CSS file over ./blog.sh, written for his site alone, and the write-up is its manual: every colour, size and rule with the reason for it, measured on a copy of his site.

Worth a read if you want to see how far a skin can take the engine without touching a template. In Czech.

#blogsh #css #webdesign

./blog.sh 1.12.1

./blog.sh 1.12.1 is out — release on GitHub.

A small release from the first days on 1.12. Three of its four changes were asked for on GitHub by Pavel, who writes with the engine every day; the fourth turned up on a Debian server after the tag.

Esc goes straight back. Backing out of Post, the Trash, the Archive, an untouched queue or a post's crossroads no longer stops on "Press any key…" with nothing to read. The pause stays where something was done (#85).

Translations in the Archive's preview. On a site in more than one language, l walks a post's preview through its languages and back, and says when a translation is missing or has no text yet (#86).

doctor --online knows about new releases. It reads the release tags, compares them with the engine's own version and says what to run where the clone stands: git pull on main, a checkout of the new tag on a tag (#87).

And nano. On Debian and Ubuntu, GNU nano is installed as pico too; 1.12 took it for the real pico, so on a server with no $EDITOR it lost its long switches. Not any more.

Read more

Everything else in 1.12

The main changes of 1.12 have posts of their own: a first draft in the other language, reply from your own server and the toot comes after the page. This is the rest, in the order whoever runs a site will run into it. A good part of it was reported by Pavel, who writes his site with the engine every day and files what gets in his way.

Read more

The toot comes after the page

On 30 October a post went out on the site this engine grew up on. The toot announcing it left at 11:33:23. The front page with the post reached the server at 11:36:33. For a little over three minutes, the address in the toot led to a 404, and those are exactly the minutes in which followers click. Pavel saw the same on his site and reported it (#83).

The order was the mistake: publish, announce, build, deploy. On a small site the gap is seconds and nobody notices. On a large archive or a cold disk it is minutes. 1.12 turns the order around and tidies up what the announcement itself says.

Page first, then the toot

A post is now announced only once its page is on the server: build, deploy, toot. The toot brings back an address the comment thread is read from, so one more build follows to put it on the page. It is quick, because the cache holds everything but that one post. Publishing by hand keeps the same order, and --no-announce skips the last two steps.

A deploy that fails owes a toot

Read more

Reply from your own server

A post announced on Mastodon has its comments under it: the replies to the toot, read from the network. Above them stands one link, "Reply on Mastodon". It opens the toot on the instance the site announces from, and most readers are not signed in there. They have an account on their own server, and on the author's they can only read. To reply they had to copy the address, go to their server, paste it into search and find the toot again. Pavel asked for a shorter way (#75). 1.12 adds one.

One field

Beside the old link stands a new one, "Reply from another server…". It opens a single field. The reader types the server they are on, and any of the usual ways of writing it will do: mastodon.social, @jana@fosstodon.org, an address copied from the browser's bar.

Read more

A first draft in the other language

Since 1.9 a post can have a text in a second language, and every one of those texts was written by hand. Pavel asked for a machine to write the first one (#68) and sent a script that did it (#69). 1.12 makes that a command of the engine:

./blog.sh translate my-post --lang de --auto

The question it answers is not "can a machine translate my post". It can, more or less. The question is whether it can do so without anything reaching the site that nobody has read. That is what most of this release is about.

Nothing is saved by it

The translation is written to tmp/my-post.de.md and nothing else happens. You read the file, mend what needs mending, and save it:

./blog.sh add tmp/my-post.de.md

That is the same door a text sent from an app comes through. If the post changed while you were reading, the save is refused instead of writing over the change. Without a slug the command takes the newest published post; --force replaces a language that is already written.

Read more

./blog.sh 1.12

./blog.sh 1.12 is out — release on GitHub.

The translation release. ./blog.sh translate <slug> --lang <code> --auto hands a post to a translator you name in env.sh: a program of your own, OpenAI and everything that speaks its API, Anthropic, Gemini, DeepL or LibreTranslate. It leaves a draft for you to read and save, and saves nothing by itself. Before writing the file it compares the translation with the original in addresses, pictures, numbers and the count of headings and paragraphs, and says what differs. ./setup.sh --translator sets it up, and the Android and desktop apps have a button for it since 0.10.0. A first draft in the other language →

Beside that, a reader can reply to a toot from their own Mastodon server: one field under the comments, remembered in their browser, nothing of it sent to your site. Reply from your own server → And a post is announced once its page is live, not three minutes before. A deploy that fails leaves the toot owed for the next one, and doctor names it. A hashtag keeps a tag's words together, so blog.sh is #blog_sh, not #blog. The toot comes after the page →

Read more

Ruby2Shell: nothing to hit, but update Ruby

Ruby has shipped fixes for a critical flaw known as Ruby2Shell: a heap buffer overflow of a single byte, triggered when a program changes the case of a string in one of the old single-byte encodings, ISO-8859-1 or Windows-1252. UTF-8 strings are not affected. An application is in danger only if it runs a vulnerable Ruby and changes the case of untrusted text in those encodings, which is why Rails and classic Sinatra apps were named first. The fixed releases are 3.3.14, 3.4.13 and 4.0.10; Ruby 3.2 and older get no fix. The researchers who found it, Veria Labs, plan to publish an exploit after 25 November.

A site built with ./blog.sh has nothing for it to hit. Ruby is not running on the web: what goes out is static HTML the build wrote earlier. The preview server listens on 127.0.0.1 only. The phone and desktop apps reach the engine over SSH with a key and a forced command, so only somebody who is already logged in gets that far, and what they send is treated as UTF-8. The importers, the one place where the engine meets old encodings, convert them to UTF-8 before they do anything with the text. We read through those places; we did not audit every call that changes case in the code.

Update Ruby anyway, on every machine where the engine runs. It protects everything else Ruby does there, and it takes a few minutes:

Read more

Minimal Mobile: three voices and the blog's colours

./blog.sh is written in a terminal. Beside it there are apps: one for iPhone, iPad and Mac, one for Android, and one for Windows and Linux. They are optional, the engine can do everything without them, but once one is in your hand it should look like the blog you are writing to. The language they do that in is called Minimal Mobile.

It is a sibling of the Minimal skin: the same paper, ink and one colour, only translated from the web to touch. This guide says what is how and why, with the numbers read out of the code of the apps. At the end there are ten questions.

One sentence

Minimal Mobile is Minimal for a finger: the app wears the colours of the blog it has open, speaks in three typefaces, and the only fill on a screen is the thing that screen wants you to do.

Principles

Read more

The apps: the terminal's menu, without the terminal

A blog on ./blog.sh lives on a server and is talked to in a terminal. That is still true. But it no longer has to be the only way in. With a phone in your hand a terminal is less comfortable than at a computer, and that is why there are apps, and not one: for Android, for iPhone, iPad and Mac, and for a computer with Windows or Linux. All three speak to the same engine and offer the same work; where a platform differs, the difference is small and deliberate. This text goes through what they do.

The app's first screen on an iPhone, on the practice blog: the blog's name, drafts in progress, the queue, six menu buttons, the search and the blog's counts.
The practice blog on an iPhone. The first screen is the blog at a glance.
The same first screen in dark mode.
And by night.
Read more

./blog.sh 1.11.1

./blog.sh 1.11.1 is out — release on GitHub.

A fix release. Most of it answers five reports filed on GitHub (#70 to #74) by somebody who writes with the engine every day, and the rest came out of the release checks run over it afterwards. Nothing new to learn; a few things now do what you already expected of them.

Keys. A capital letter is the same key as a small one in every screen of ./blog.sh, the archive browser included, so Caps Lock no longer turns a menu deaf (#70). A terminal that sends a letter like "č" in Latin-2 gets "not understood" instead of a crash.

The queue. When you schedule a post, the line under the slot it offers says what Enter accepts: that slot (#74). A scheduled post you open again is asked about as a scheduled one, keep it, publish it now or move it, and one whose time has passed is called overdue (#71).

Read more

Minimal Pictorial: a wall of photographs

Minimal assumes that a post begins with words: a title, three lines of an opening, and a picture, if there is one, only inside the post. A photoblog has it the other way round. The photograph is the post and the words are its caption, sometimes only a date. Minimal Pictorial is the variant for such blogs. In it, the page is a wall of photographs.

This text is a guide, not a story: what is how and why, with the numbers read out of the file. Whatever is not here is the same as in Minimal and is in its guide. The pictures are from a test blog in the engine's default palette. If you would rather not read all of it, there are ten questions at the end.

One sentence

Minimal Pictorial is a wall of photographs: the picture is the first thing you see, and the words are a caption under it. It is a skin for blogs on ./blog.sh, of the Minimal family, and it takes its colours from the blog it runs on. From blog.sh 1.11 it comes with the engine: site.skin: minimal-pictorial in config/site.yml puts it on; layout.lead_card: true and a page of nine or twelve posts suit it, and ./style.sh sets the skin and the lead card too. This guide describes it as of 1.11.1.

Read more

Minimal Manual: chapters, sections and numbers

Minimal is built for a blog: the newest on top, a post reached from a listing, and on you go when you have read it. A manual is not read; a manual is looked things up in. You want to know where you are, what is around you and how to get one chapter over. Minimal Manual is the variant for sites that hold documentation. In it, the page is a handbook.

This text is a guide, not a story: what is how and why, with the numbers read out of the file. Whatever is not here is the same as in Minimal and is in its guide. The pictures are of a copy of the live example, ./blog.sh manual, the engine's own documentation set in this skin, in the engine's default palette. If you would rather not read all of it, there are ten questions at the end.

One sentence

Minimal Manual is a handbook: the chapters on the left, in the middle a page with numbered sections, and on the right its contents, which stay in sight. It is a skin for sites on ./blog.sh, of the Minimal family, and it takes its colours from the site it runs on. From blog.sh 1.11 it comes with the engine: site.skin: minimal-manual in config/site.yml puts it on, as does ./style.sh under Layout, and ./blog.sh rebuild then applies it. This guide describes it as of 1.11.1, which evened out its last edges.

Read more

Everything else in 1.11

The main changes of 1.11 have posts of their own: a series is a chapter, the wizards know the whole file and where did /write/ go. The skins of the Minimal family have guides: Minimal, Terminal, Literal , Journal, Manual and Pictorial. This is the rest, in the order whoever runs a site will run into it. Most of it was found by the release checks on copies of three real sites, and the rest was reported by readers.

Read more

Minimal Journal: a line of time

Minimal orders a listing by titles: a title, three lines of an opening, and the date small in the margin. A diary has it the other way round. First comes the day, then what happened in it, and many entries have no title at all. Minimal Journal is the variant for such blogs. In it, the page is a diary and time leads it.

This text is a guide, not a story: what is how and why, with the numbers read out of the file. Whatever is not here is the same as in Minimal and is in its guide. Every picture here is of this site in the engine's default palette. If you would rather not read all of it, there are ten questions at the end.

One sentence

Minimal Journal is a diary: a line of time runs down the left edge of a listing, every entry hangs on it by its date, and an entry is read whole. It is a skin for blogs on ./blog.sh, of the Minimal family, and it takes its colours from the blog it runs on. From blog.sh 1.11 it comes with the engine: site.skin: minimal-journal in config/site.yml puts it on, as does ./style.sh under Layout, and ./blog.sh rebuild then applies it.

Principles

Read more

Minimal Literal: one column and a serif

Minimal is built for short things: a listing, three lines of an opening, a sidebar where something is always going on. It will carry a longer text, but the text is read the way a newspaper is, among everything else. Minimal Literal is the variant for blogs where the text is the point and the pieces are long. In it, the page is a book's setting.

This text is a guide, not a story: what is how and why, with the numbers read out of the file. Whatever is not here is the same as in Minimal and is in its guide. Every picture here is of this site in the engine's default palette. If you would rather not read all of it, there are ten questions at the end.

One sentence

Minimal Literal is a page set like a book: one column in the middle, a serif at a size that can be read for a long time, and nothing around the text that talks into it. It is a skin for blogs on ./blog.sh, of the Minimal family, and it takes its colours from the blog it runs on. From blog.sh 1.11 it comes with the engine: site.skin: minimal-literal in config/site.yml puts it on, as does ./style.sh under Layout, and ./blog.sh rebuild then applies it.

Principles

Read more

Minimal Terminal: two faces and square brackets

Minimal was made for a personal site, and it shows: a cream paper, pills, cards. When I tried it on a blog about an engine that is run from a terminal, it fitted, but it said nothing of what that site is. So Minimal Terminal came about: a variant that took Minimal's discipline and said everything else in its own way. A page in it looks the way a terminal would print it.

Decisions scattered through one stylesheet and my head are not enough, so this is a guide, not a story. What is how and why, with the numbers read out of the file, not rounded. If you would rather not read all of it, there are ten questions at the end.

One sentence

Minimal Terminal is a page the way a terminal would print it: two faces, brackets for buttons, marks for shapes, and a single fill, the inverse of a selection. It is a skin for blogs on ./blog.sh, the second of the Minimal family, and it takes its colours from the blog it runs on. From blog.sh 1.11 it comes with the engine: site.skin: minimal-terminal in config/site.yml puts it on, as does ./style.sh under Layout, and ./blog.sh rebuild then applies it. It sets the name and the claim as text, so banner.show_image: false suits it.

Read more