<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>tinker.log</title>
    <link rel="self" type="application/atom+xml" href="https://nera.js.org/themes/blog/stack/feed.xml"/>
    <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/index.html"/>
    <id>https://nera.js.org/themes/blog/stack/feed.xml</id>
    <updated>2026-11-21T00:00:00Z</updated>
    <author>
        <name>tinker.log</name>
    </author>
    <entry>
        <title>Streaming LLM responses with Laravel Reverb</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/streaming-reverb.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/streaming-reverb.html</id>
        <published>2026-11-19T00:00:00Z</published>
        <updated>2026-11-21T00:00:00Z</updated>
        <category term="AI &amp; LLMs"/>
        <category term="Reverb"/>
        <category term="Queues"/>
        <category term="WebSockets"/>
        <summary type="text">Polling made our chat feel like a fax machine. Here is the WebSocket setup that puts the first token on screen in 300 ms, and the two mistakes that cost me a weekend.</summary>
        <content type="html">&lt;p&gt;Our support chat answered in eight seconds. The model needed six of them, and for all six the customer stared at three bouncing dots. Nobody complained about the answers. Everybody complained about the wait.&lt;/p&gt;
&lt;p&gt;The fix was not a faster model. It was showing the answer while it is being written. With &lt;a href=&quot;https://reverb.laravel.com&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Laravel Reverb&lt;/a&gt; that takes one event, one queued job and about forty lines of code.&lt;/p&gt;
&lt;h2&gt;The broadcast event&lt;/h2&gt;
&lt;p&gt;Each chunk the model returns becomes one small event on a private channel. Keep the payload tiny: the chat id, the text, and a sequence number you will be glad to have later.&lt;/p&gt;
&lt;div class=&quot;nera-code&quot;&gt;
&lt;div class=&quot;nera-code__bar&quot; data-search-ignore=&quot;&quot;&gt;&lt;span class=&quot;nera-code__title&quot;&gt;&lt;b&gt;app/Events/TokenReceived.php&lt;/b&gt; · php&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;nera-code__pre&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot;hljs language-php&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;final&lt;/span&gt; &lt;span class=&quot;hljs-class&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;TokenReceived&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;implements&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;ShouldBroadcastNow&lt;/span&gt;
&lt;/span&gt;{
    &lt;span class=&quot;hljs-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;__construct&lt;/span&gt;(&lt;span class=&quot;hljs-params&quot;&gt;
        &lt;span class=&quot;hljs-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;hljs-variable&quot;&gt;$chatId&lt;/span&gt;,
        &lt;span class=&quot;hljs-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;hljs-variable&quot;&gt;$text&lt;/span&gt;,
        &lt;span class=&quot;hljs-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;hljs-variable&quot;&gt;$seq&lt;/span&gt;,
    &lt;/span&gt;) &lt;/span&gt;{}

    &lt;span class=&quot;hljs-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;broadcastOn&lt;/span&gt;(&lt;span class=&quot;hljs-params&quot;&gt;&lt;/span&gt;): &lt;span class=&quot;hljs-title&quot;&gt;PrivateChannel&lt;/span&gt;
    &lt;/span&gt;{
        &lt;span class=&quot;hljs-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;hljs-title class_&quot;&gt;PrivateChannel&lt;/span&gt;(&lt;span class=&quot;hljs-string&quot;&gt;&quot;chat.&lt;span class=&quot;hljs-subst&quot;&gt;{$this-&amp;gt;chatId}&lt;/span&gt;&quot;&lt;/span&gt;);
    }
}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Use ShouldBroadcastNow&lt;/strong&gt; The queued variant puts every token behind your other jobs. Tokens then arrive in bursts, which looks worse than not streaming at all.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Streaming from the job&lt;/h2&gt;
&lt;p&gt;The job asks the model for a stream and forwards each chunk. Two lines changed compared to the blocking version:&lt;/p&gt;
&lt;div class=&quot;nera-code&quot;&gt;
&lt;div class=&quot;nera-code__bar&quot; data-search-ignore=&quot;&quot;&gt;&lt;span class=&quot;nera-code__title&quot;&gt;&lt;b&gt;app/Jobs/AnswerChat.php&lt;/b&gt; · diff&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;nera-code__pre&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot;hljs language-diff&quot;&gt;&lt;span class=&quot;hljs-deletion&quot;&gt;- $answer = $llm-&amp;gt;chat($messages);&lt;/span&gt;
&lt;span class=&quot;hljs-deletion&quot;&gt;- $chat-&amp;gt;reply($answer-&amp;gt;text);&lt;/span&gt;
&lt;span class=&quot;hljs-addition&quot;&gt;+ foreach ($llm-&amp;gt;stream($messages) as $i =&amp;gt; $chunk) {&lt;/span&gt;
&lt;span class=&quot;hljs-addition&quot;&gt;+     broadcast(new TokenReceived($chat-&amp;gt;id, $chunk-&amp;gt;text, $i));&lt;/span&gt;
&lt;span class=&quot;hljs-addition&quot;&gt;+     $buffer .= $chunk-&amp;gt;text;&lt;/span&gt;
&lt;span class=&quot;hljs-addition&quot;&gt;+ }&lt;/span&gt;
&lt;span class=&quot;hljs-addition&quot;&gt;+ $chat-&amp;gt;reply($buffer);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Three things to check before you ship it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The job timeout is longer than your slowest answer, or the worker kills it mid-sentence.&lt;/li&gt;
&lt;li&gt;The final text is still written to the database, so a page reload shows the whole reply.&lt;/li&gt;
&lt;li&gt;The channel is private. Other people&apos;s answers are not a public broadcast.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;What it bought us&lt;/h2&gt;
&lt;p&gt;Total time did not change. What changed is when the customer sees something happen:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;th&gt;First token&lt;/th&gt;
&lt;th&gt;Full answer&lt;/th&gt;
&lt;th&gt;Abandoned chats&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Blocking request&lt;/td&gt;
&lt;td&gt;6.1 s&lt;/td&gt;
&lt;td&gt;6.1 s&lt;/td&gt;
&lt;td&gt;17%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Polling every second&lt;/td&gt;
&lt;td&gt;1.9 s&lt;/td&gt;
&lt;td&gt;6.8 s&lt;/td&gt;
&lt;td&gt;11%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reverb stream&lt;/td&gt;
&lt;td&gt;0.3 s&lt;/td&gt;
&lt;td&gt;6.2 s&lt;/td&gt;
&lt;td&gt;4%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</content>
    </entry>
    <entry>
        <title>Evals in Pest: test your prompts like you test your code</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/evals-in-pest.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/evals-in-pest.html</id>
        <published>2026-11-05T00:00:00Z</published>
        <updated>2026-11-05T00:00:00Z</updated>
        <category term="Testing"/>
        <summary type="text">A prompt change is a deploy. Forty lines of Pest that catch regressions before your users do.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;A prompt change is a deploy. Forty lines of Pest that catch regressions before your users do.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>A queue is not a rate limiter</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/queue-rate-limiter.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/queue-rate-limiter.html</id>
        <published>2026-10-22T00:00:00Z</published>
        <updated>2026-10-22T00:00:00Z</updated>
        <category term="Queues"/>
        <summary type="text">We put 20,000 embedding jobs on Horizon and met our provider&apos;s limits within a minute.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;We put 20,000 embedding jobs on Horizon and met our provider&apos;s limits within a minute.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Embeddings in Postgres with pgvector and Eloquent</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/pgvector-embeddings.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/pgvector-embeddings.html</id>
        <published>2026-10-08T00:00:00Z</published>
        <updated>2026-10-08T00:00:00Z</updated>
        <category term="Postgres"/>
        <category term="AI &amp; LLMs"/>
        <summary type="text">You do not need a vector database yet. One migration, one scope, and a cosine operator.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;You do not need a vector database yet. One migration, one scope, and a cosine operator.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>What Laravel 12 changed for long-running jobs</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/laravel-12-jobs.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/laravel-12-jobs.html</id>
        <published>2026-09-24T00:00:00Z</published>
        <updated>2026-09-24T00:00:00Z</updated>
        <category term="Laravel"/>
        <category term="Queues"/>
        <summary type="text">Timeouts, heartbeats and the one config key I had wrong for three years.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;Timeouts, heartbeats and the one config key I had wrong for three years.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Prompt templates belong in Blade. Fight me.</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/prompts-in-blade.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/prompts-in-blade.html</id>
        <published>2026-09-10T00:00:00Z</published>
        <updated>2026-09-10T00:00:00Z</updated>
        <category term="Opinion"/>
        <category term="Laravel"/>
        <summary type="text">Components, slots and escaping are exactly what a prompt needs. Strings in a service class are not.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;Components, slots and escaping are exactly what a prompt needs. Strings in a service class are not.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>How caching cut our model bill by 61 percent</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/caching-model-bill.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/caching-model-bill.html</id>
        <published>2026-08-27T00:00:00Z</published>
        <updated>2026-08-27T00:00:00Z</updated>
        <category term="Ops"/>
        <summary type="text">Semantic cache keys, a boring Redis instance, and the dashboard that made the case.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;Semantic cache keys, a boring Redis instance, and the dashboard that made the case.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Reranking: the cheap step everyone skips</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/reranking.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/reranking.html</id>
        <published>2026-08-20T00:00:00Z</published>
        <updated>2026-08-20T00:00:00Z</updated>
        <category term="AI &amp; LLMs"/>
        <summary type="text">A small second model that reorders what retrieval found.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;A small second model that reorders what retrieval found.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Chunking documents without losing the plot</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/chunking.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/chunking.html</id>
        <published>2026-08-13T00:00:00Z</published>
        <updated>2026-08-13T00:00:00Z</updated>
        <category term="AI &amp; LLMs"/>
        <summary type="text">How to cut long documents into pieces that still make sense on their own.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;How to cut long documents into pieces that still make sense on their own.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Measuring whether any of it helped</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/measuring-rag.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/measuring-rag.html</id>
        <published>2026-07-30T00:00:00Z</published>
        <updated>2026-07-30T00:00:00Z</updated>
        <category term="AI &amp; LLMs"/>
        <category term="Testing"/>
        <summary type="text">A small eval set and three numbers that say whether retrieval got better.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;A small eval set and three numbers that say whether retrieval got better.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Optimistic UI in Livewire without lying</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/optimistic-ui.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/optimistic-ui.html</id>
        <published>2025-12-18T00:00:00Z</published>
        <updated>2025-12-18T00:00:00Z</updated>
        <category term="Livewire"/>
        <summary type="text">Show the message at once, and say so honestly when it fails.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;Show the message at once, and say so honestly when it fails.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Why your chat feels slow, measured</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/chat-feels-slow.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/chat-feels-slow.html</id>
        <published>2025-12-04T00:00:00Z</published>
        <updated>2025-12-04T00:00:00Z</updated>
        <category term="Livewire"/>
        <summary type="text">Where the eight seconds of a support answer actually go.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;Where the eight seconds of a support answer actually go.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Horizon dashboards I actually look at</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/horizon-dashboards.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/horizon-dashboards.html</id>
        <published>2025-11-06T00:00:00Z</published>
        <updated>2025-11-06T00:00:00Z</updated>
        <category term="Queues"/>
        <category term="Ops"/>
        <summary type="text">Four numbers that tell me whether to keep sleeping.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;Four numbers that tell me whether to keep sleeping.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Retry is not a strategy</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/retry-strategy.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/retry-strategy.html</id>
        <published>2025-02-13T00:00:00Z</published>
        <updated>2025-02-13T00:00:00Z</updated>
        <category term="Queues"/>
        <summary type="text">Backoff, jitter and when to let a job die.</summary>
        <content type="html">&lt;h2&gt;In short&lt;/h2&gt;
&lt;p&gt;Backoff, jitter and when to let a job die.&lt;/p&gt;
&lt;p&gt;The full write-up follows the same pattern as every post here: the setup, what broke, and the numbers afterwards.&lt;/p&gt;
</content>
    </entry>
    <entry>
        <title>Write your first post</title>
        <link rel="alternate" type="text/html" href="https://nera.js.org/themes/blog/stack/posts/write-a-post.html"/>
        <id>https://nera.js.org/themes/blog/stack/posts/write-a-post.html</id>
        <published>2025-01-16T00:00:00Z</published>
        <updated>2025-01-23T00:00:00Z</updated>
        <category term="Writing"/>
        <summary type="text">A post is one Markdown file in pages/posts/ with a few lines of frontmatter. This one uses every key the theme reads.</summary>
        <content type="html">&lt;h2&gt;One file per post&lt;/h2&gt;
&lt;p&gt;Every post is a Markdown file in &lt;code&gt;pages/posts/&lt;/code&gt;. The file name becomes the
address: &lt;code&gt;hello.md&lt;/code&gt; is published as &lt;code&gt;/posts/hello.html&lt;/code&gt;. Copy this one to
start:&lt;/p&gt;
&lt;div class=&quot;nera-code&quot;&gt;
&lt;div class=&quot;nera-code__bar&quot; data-search-ignore=&quot;&quot;&gt;&lt;span class=&quot;nera-code__title&quot;&gt;&lt;b&gt;pages/posts/hello.md&lt;/b&gt; · markdown&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;nera-code__pre&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot;hljs language-markdown&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;---&lt;/span&gt;
&lt;span class=&quot;hljs-attr&quot;&gt;layout:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot;&gt;pages/post.pug&lt;/span&gt;
&lt;span class=&quot;hljs-attr&quot;&gt;title:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot;&gt;Hello&lt;/span&gt;
&lt;span class=&quot;hljs-attr&quot;&gt;description:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot;&gt;The&lt;/span&gt; &lt;span class=&quot;hljs-string&quot;&gt;first&lt;/span&gt; &lt;span class=&quot;hljs-string&quot;&gt;post&lt;/span&gt; &lt;span class=&quot;hljs-string&quot;&gt;on&lt;/span&gt; &lt;span class=&quot;hljs-string&quot;&gt;my&lt;/span&gt; &lt;span class=&quot;hljs-string&quot;&gt;blog.&lt;/span&gt;
&lt;span class=&quot;hljs-attr&quot;&gt;date:&lt;/span&gt; &lt;span class=&quot;hljs-number&quot;&gt;2026-10-01&lt;/span&gt;
&lt;span class=&quot;hljs-attr&quot;&gt;tags:&lt;/span&gt; [&lt;span class=&quot;hljs-string&quot;&gt;News&lt;/span&gt;]
&lt;span class=&quot;hljs-attr&quot;&gt;is_post:&lt;/span&gt; &lt;span class=&quot;hljs-literal&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;hljs-meta&quot;&gt;---&lt;/span&gt;

&lt;span class=&quot;hljs-section&quot;&gt;## A heading&lt;/span&gt;

Start the text at &lt;span class=&quot;hljs-code&quot;&gt;`##`&lt;/span&gt;: the title above is the page&apos;s only first-level
heading.&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h2&gt;The frontmatter&lt;/h2&gt;
&lt;p&gt;The frontmatter of this post sets every key the theme reads:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;layout: pages/post.pug&lt;/code&gt; makes the page a post: it is listed on the home
page, in the archive, in the feed and in the search.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;date&lt;/code&gt; orders the posts. Always set it: a file&apos;s own date changes whenever
the file is copied. &lt;code&gt;updated&lt;/code&gt; adds &quot;Updated&quot; to the author line.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;description&lt;/code&gt; is the text on a card and the summary in the feed; &lt;code&gt;lead&lt;/code&gt;
is the larger line under the title.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tags&lt;/code&gt; links the post to a tag page per tag, such as
&lt;a href=&quot;https://nera.js.org/themes/blog/stack/tags/writing.html&quot;&gt;Writing&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;series&lt;/code&gt; and &lt;code&gt;series_part&lt;/code&gt; join posts into a series: the line above the
title and the list of parts under the post. The home page shows the series
named in &lt;code&gt;blog.featured_series&lt;/code&gt; in &lt;code&gt;config/theme.yaml&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;image&lt;/code&gt; and &lt;code&gt;image_alt&lt;/code&gt; give the post a picture above the text and on its
card. Put the file in &lt;code&gt;theme/assets/images/&lt;/code&gt;; the alt text says what the
picture shows.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;facts&lt;/code&gt; is a small box of up to four figures beside the text, each a
&lt;code&gt;label&lt;/code&gt; and a &lt;code&gt;value&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;is_post: true&lt;/code&gt; marks the post for search engines: it gets a
&lt;code&gt;BlogPosting&lt;/code&gt; in the structured data of its page.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The author line reads &lt;code&gt;author.name&lt;/code&gt; in &lt;code&gt;config/theme.yaml&lt;/code&gt;; a post that sets
&lt;code&gt;author&lt;/code&gt; names someone else.&lt;/p&gt;
&lt;h2&gt;Preview and build&lt;/h2&gt;
&lt;p&gt;Run &lt;code&gt;nera dev&lt;/code&gt; to see the post while you write, and &lt;code&gt;nera build --check&lt;/code&gt; to
build the blog into &lt;code&gt;public/&lt;/code&gt; and check every page. Delete this post once
your own first one is out.&lt;/p&gt;
</content>
    </entry>
</feed>
