<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>My Blog</title><description>Notes on software, tools and the craft of building things.</description><link>https://blog.tobrun.com/</link><language>en</language><atom:link href="https://blog.tobrun.com/rss.xml" rel="self" type="application/rss+xml"/><item><title>Hello, world: how this blog is built</title><link>https://blog.tobrun.com/blog/hello-world/</link><guid isPermaLink="true">https://blog.tobrun.com/blog/hello-world/</guid><description>A tour of the stack behind this blog: Markdown files in Git, a static Astro build, Pagefind search and automatic deploys on Vercel.</description><pubDate>Tue, 01 Dec 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Welcome! This first post explains how the blog works, partly as documentation for future me.
It also gives the search index a unique word to find: &lt;strong&gt;flibbertigibbet&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;The pipeline&lt;/h2&gt;
&lt;p&gt;Every post is a Markdown file in a Git repository. Pushing to &lt;code&gt;main&lt;/code&gt; triggers a build on Vercel,
which publishes plain static HTML.&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;Diagram: Markdown flows into the Astro build, then Pagefind, then Vercel&quot; width=&quot;1200&quot; height=&quot;500&quot; src=&quot;https://blog.tobrun.com/_astro/pipeline.Dt1MVRq6_Z2ggoR7.webp&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Code blocks&lt;/h2&gt;
&lt;p&gt;Syntax highlighting is done at build time by Shiki, with a light and a dark theme:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; { getCollection } &lt;/span&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &apos;astro:content&apos;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; posts&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; await&lt;/span&gt;&lt;span&gt; getCollection&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&apos;blog&apos;&lt;/span&gt;&lt;span&gt;, ({ &lt;/span&gt;&lt;span&gt;data&lt;/span&gt;&lt;span&gt; }) &lt;/span&gt;&lt;span&gt;=&amp;gt;&lt;/span&gt;&lt;span&gt; !&lt;/span&gt;&lt;span&gt;data.draft);&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;console.&lt;/span&gt;&lt;span&gt;log&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;`${&lt;/span&gt;&lt;span&gt;posts&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;length&lt;/span&gt;&lt;span&gt;} published posts`&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; build&lt;/span&gt;&lt;span&gt;   # astro build &amp;amp;&amp;amp; pagefind --site dist&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;What ships to the browser&lt;/h2&gt;
&lt;p&gt;Almost nothing. The theme toggle, search, share buttons and comments are the only JavaScript.
Everything else is HTML and CSS.&lt;/p&gt;
&lt;h3&gt;Why static?&lt;/h3&gt;
&lt;p&gt;Static files are fast, cheap to host and hard to break. There is no server to patch.&lt;/p&gt;</content:encoded><dc:creator>Your Name</dc:creator><category>astro</category><category>meta</category></item><item><title>Writing for the web: short sentences, clear headings</title><link>https://blog.tobrun.com/blog/writing-for-the-web/</link><guid isPermaLink="true">https://blog.tobrun.com/blog/writing-for-the-web/</guid><description>Practical habits for writing technical posts people actually finish: lead with the point, use headings as signposts, and cut ruthlessly.</description><pubDate>Fri, 20 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Most readers scan before they read. Help them decide quickly whether a post is worth their time.&lt;/p&gt;
&lt;h2&gt;Lead with the point&lt;/h2&gt;
&lt;p&gt;Put the conclusion in the first paragraph. Details can follow for those who want them.&lt;/p&gt;
&lt;h2&gt;Use headings as signposts&lt;/h2&gt;
&lt;p&gt;A reader should understand the shape of the post from its headings alone.&lt;/p&gt;
&lt;h2&gt;Cut ruthlessly&lt;/h2&gt;
&lt;p&gt;If a sentence doesn’t help the reader, delete it. Then delete one more.&lt;/p&gt;</content:encoded><dc:creator>Your Name</dc:creator><category>writing</category><category>productivity</category><category>technical-writing</category><category>craft</category></item></channel></rss>