<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Design decisions on OINK</title>
    <link>https://oink.pgsty.com/docs/design/decisions/</link>
    <description>Recent content in Design decisions on OINK</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    
    
    
      <lastBuildDate>Sat, 22 Aug 2026 16:32:18 +0800</lastBuildDate>
    
    
      <atom:link href="https://oink.pgsty.com/docs/design/decisions/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>Warnings and safe fallbacks</title>
        <link>https://oink.pgsty.com/docs/design/decisions/diagnostics/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://oink.pgsty.com/docs/design/decisions/diagnostics/</guid>
        <description>&lt;div class=&#34;td-callout td-callout--important&#34; role=&#34;note&#34;&gt;&#xA;  &lt;div class=&#34;td-callout__title&#34;&gt;&lt;i class=&#34;td-callout__icon fa-solid fa-circle-exclamation&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;&lt;span class=&#34;td-callout__label&#34;&gt;Decision&lt;/span&gt;&lt;/div&gt;&#xA;  &lt;div class=&#34;td-callout__body&#34;&gt;&#xA;&lt;p&gt;OINK does not call Hugo&amp;rsquo;s &lt;code&gt;errorf&lt;/code&gt;. Invalid author or site input emits a&#xA;warning and either uses a documented safe fallback or omits the invalid&#xA;fragment. Release and deployment builds use &lt;code&gt;--panicOnWarning&lt;/code&gt;, so the same&#xA;warning remains a hard publishing failure.&lt;/p&gt;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&lt;h2 id=&#34;context&#34;&gt;Context&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Hugo builds the whole site as one transaction. An &lt;code&gt;errorf&lt;/code&gt; raised while one&#xA;page is being edited makes every URL served by that rebuild return an error,&#xA;including unrelated pages and the home page. The server process survives and&#xA;recovers after the input is fixed, but collaborative preview is unavailable in&#xA;the meantime.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Configuration model</title>
        <link>https://oink.pgsty.com/docs/design/decisions/configuration/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://oink.pgsty.com/docs/design/decisions/configuration/</guid>
        <description>&lt;div class=&#34;td-callout td-callout--important&#34; role=&#34;note&#34;&gt;&#xA;  &lt;div class=&#34;td-callout__title&#34;&gt;&lt;i class=&#34;td-callout__icon fa-solid fa-circle-exclamation&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;&lt;span class=&#34;td-callout__label&#34;&gt;Decision&lt;/span&gt;&lt;/div&gt;&#xA;  &lt;div class=&#34;td-callout__body&#34;&gt;&#xA;&lt;p&gt;OINK keeps Hugo&amp;rsquo;s native keys and useful Docsy-compatible keys in place,&#xA;places theme presentation and behaviour under &lt;code&gt;params.ui.*&lt;/code&gt;, and exposes a&#xA;matching top-level front-matter key for a page override. It does not add a&#xA;&lt;code&gt;params.oink.*&lt;/code&gt; tree or a registry that shadows Hugo&amp;rsquo;s configuration model.&lt;/p&gt;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&lt;h2 id=&#34;context&#34;&gt;Context&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;OINK inherits a mature configuration surface and adds shells, content output,&#xA;and local interaction. Earlier designs attempted to move every theme-owned key&#xA;under a new namespace and resolve a complete configuration dictionary once per&#xA;page. That produced a second language beside Hugo&amp;rsquo;s own keys, complicated&#xA;section cascades, and made migration larger than the behaviour it was meant to&#xA;control.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Markdown-first authoring</title>
        <link>https://oink.pgsty.com/docs/design/decisions/authoring/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://oink.pgsty.com/docs/design/decisions/authoring/</guid>
        <description>&lt;div class=&#34;td-callout td-callout--important&#34; role=&#34;note&#34;&gt;&#xA;  &lt;div class=&#34;td-callout__title&#34;&gt;&lt;i class=&#34;td-callout__icon fa-solid fa-circle-exclamation&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;&lt;span class=&#34;td-callout__label&#34;&gt;Decision&lt;/span&gt;&lt;/div&gt;&#xA;  &lt;div class=&#34;td-callout__body&#34;&gt;&#xA;&lt;p&gt;Prefer a native Markdown form when Goldmark can preserve the intended&#xA;semantics. Keep a shortcode only when it provides a capability the native&#xA;form cannot express. Add a content scenario by extending an existing shell&#xA;and data model, not by creating a parallel rendering system.&lt;/p&gt;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&lt;h2 id=&#34;context&#34;&gt;Context&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;OINK serves short manuals, large references, release archives, landing pages,&#xA;and books. A survey of eleven consumer sites covered more than five thousand&#xA;Markdown files and exposed both extremes: pages with almost no theme syntax and&#xA;pages assembled from many nested shortcodes and local layout overrides.&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
