<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>首頁 on 我的 Hugo 網站</title><link>https://hugo-trainsh.pages.dev/zh-tw/</link><description>Recent content in 首頁 on 我的 Hugo 網站</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Sun, 26 Oct 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://hugo-trainsh.pages.dev/zh-tw/index.xml" rel="self" type="application/rss+xml"/><item><title>主題指南</title><link>https://hugo-trainsh.pages.dev/zh-tw/posts/quick-start/</link><pubDate>Sun, 26 Oct 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-tw/posts/quick-start/</guid><description>&lt;p>這篇文章展示 &lt;strong>hugo-trainsh&lt;/strong> 的主要渲染能力——標題、程式碼、表格、圖表、公式、圖片等。&lt;/p>
&lt;div class="toc">
 &lt;ul>&lt;li>
 &lt;a href="#%e4%b8%89%e7%a8%ae%e4%b8%bb%e9%a1%8c%e6%a8%a1%e5%bc%8f">三種主題模式&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e6%96%87%e5%ad%97%e6%8e%92%e7%89%88">文字排版&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e7%a8%8b%e5%bc%8f%e7%a2%bc">程式碼&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e8%a1%a8%e6%a0%bc">表格&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e5%9c%96%e8%a1%a8">圖表&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e6%95%b8%e5%ad%b8">數學&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e5%9c%96%e7%89%87">圖片&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e6%a8%99%e7%b1%a4">標籤&lt;/a>&lt;/li>&lt;/ul>
&lt;/div>



&lt;h2 id="三種主題模式">
 三種主題模式
&lt;/h2>
&lt;p>點擊頁首的切換按鈕依次切換：&lt;/p>
&lt;ol>
&lt;li>&lt;strong>復古&lt;/strong> (手把) — NES 深藍底色、像素字體標題、8-bit 對話框邊框&lt;/li>
&lt;li>&lt;strong>明亮&lt;/strong> (太陽) — 乾淨的現代淺色方案&lt;/li>
&lt;li>&lt;strong>暗黑&lt;/strong> (月亮) — 適合夜間閱讀&lt;/li>
&lt;/ol>
&lt;h2 id="文字排版">
 文字排版
&lt;/h2>
&lt;p>常規 Markdown 正常渲染。&lt;strong>粗體&lt;/strong>在復古模式下以金色高亮，&lt;em>斜體&lt;/em>同樣清晰可讀。可以新增&lt;a href="https://hugo-trainsh.pages.dev/zh-tw/">任意連結&lt;/a>，樣式會跟隨主題變化。&lt;/p>
&lt;blockquote>
&lt;p>引用區塊在復古模式下有獨立的青色邊框，在長文中一眼可辨。&lt;/p>&lt;/blockquote>
&lt;hr>
&lt;h2 id="程式碼">
 程式碼
&lt;/h2>
&lt;p>圍欄程式碼區塊支援語法高亮、複製按鈕與自動換行：&lt;/p>
&lt;div class="codeblock">
 &lt;div class="codeblock-actions">
 &lt;button type="button"
 class="codeblock-action codeblock-action--wrap"
 data-wrap-toggle
 data-icon-button
 aria-pressed="false"
 title="啟用自動換行"
 data-wrap-title="啟用自動換行"
 data-nowrap-title="停用自動換行">
 &lt;svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 &lt;path d="M4 6h16M4 10h12a4 4 0 0 1 0 8h-2" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"/>
 &lt;path d="M14 18l-2-2m2 2l-2 2" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
 &lt;/svg>
 &lt;/button>

 &lt;button type="button"
 class="codeblock-action codeblock-action--copy"
 data-copy-code
 data-icon-button
 title="複製程式碼"
 data-copied-title="已複製">
 &lt;svg class="icon-copy" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 &lt;rect x="9" y="9" width="13" height="13" rx="2" ry="2" stroke="currentColor" stroke-width="2" fill="none">&lt;/rect>
 &lt;path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round">&lt;/path>
 &lt;/svg>
 &lt;svg class="icon-check" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 &lt;path d="M20 6L9 17l-5-5" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">&lt;/path>
 &lt;/svg>
 &lt;/button>
 &lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">datetime&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">date&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">greet&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">name&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">str&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">-&amp;gt;&lt;/span> &lt;span class="nb">str&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="sa">f&lt;/span>&lt;span class="s2">&amp;#34;你好, &lt;/span>&lt;span class="si">{&lt;/span>&lt;span class="n">name&lt;/span>&lt;span class="si">}&lt;/span>&lt;span class="s2">！今天是 &lt;/span>&lt;span class="si">{&lt;/span>&lt;span class="n">date&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">today&lt;/span>&lt;span class="p">()&lt;/span>&lt;span class="si">}&lt;/span>&lt;span class="s2">。&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">greet&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s2">&amp;#34;世界&amp;#34;&lt;/span>&lt;span class="p">))&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/div>
&lt;p>行內程式碼如 &lt;code>hugo server&lt;/code> 也有對應樣式。&lt;/p></description></item><item><title>程式碼範例</title><link>https://hugo-trainsh.pages.dev/zh-tw/posts/code-samples/</link><pubDate>Sun, 19 Oct 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-tw/posts/code-samples/</guid><description>&lt;h2 id="javascript">
 JavaScript
&lt;/h2>
&lt;div class="codeblock">
 &lt;div class="codeblock-actions">
 &lt;button type="button"
 class="codeblock-action codeblock-action--wrap"
 data-wrap-toggle
 data-icon-button
 aria-pressed="false"
 title="啟用自動換行"
 data-wrap-title="啟用自動換行"
 data-nowrap-title="停用自動換行">
 &lt;svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 &lt;path d="M4 6h16M4 10h12a4 4 0 0 1 0 8h-2" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"/>
 &lt;path d="M14 18l-2-2m2 2l-2 2" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
 &lt;/svg>
 &lt;/button>

 &lt;button type="button"
 class="codeblock-action codeblock-action--copy"
 data-copy-code
 data-icon-button
 title="複製程式碼"
 data-copied-title="已複製">
 &lt;svg class="icon-copy" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 &lt;rect x="9" y="9" width="13" height="13" rx="2" ry="2" stroke="currentColor" stroke-width="2" fill="none">&lt;/rect>
 &lt;path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round">&lt;/path>
 &lt;/svg>
 &lt;svg class="icon-check" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 &lt;path d="M20 6L9 17l-5-5" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">&lt;/path>
 &lt;/svg>
 &lt;/button>
 &lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="line">&lt;span class="cl">&lt;span class="kr">export&lt;/span> &lt;span class="kd">function&lt;/span> &lt;span class="nx">hasFeature&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nx">name&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;短代碼&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;Mermaid&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;KaTeX&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;PhotoSwipe&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;i18n&amp;#39;&lt;/span>&lt;span class="p">].&lt;/span>&lt;span class="nx">includes&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nx">name&lt;/span>&lt;span class="p">);&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">console&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">log&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nx">hasFeature&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;短代碼&amp;#39;&lt;/span>&lt;span class="p">));&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/div>
&lt;h2 id="python">
 Python
&lt;/h2>
&lt;div class="codeblock">
 &lt;div class="codeblock-actions">
 &lt;button type="button"
 class="codeblock-action codeblock-action--wrap"
 data-wrap-toggle
 data-icon-button
 aria-pressed="false"
 title="啟用自動換行"
 data-wrap-title="啟用自動換行"
 data-nowrap-title="停用自動換行">
 &lt;svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 &lt;path d="M4 6h16M4 10h12a4 4 0 0 1 0 8h-2" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"/>
 &lt;path d="M14 18l-2-2m2 2l-2 2" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
 &lt;/svg>
 &lt;/button>

 &lt;button type="button"
 class="codeblock-action codeblock-action--copy"
 data-copy-code
 data-icon-button
 title="複製程式碼"
 data-copied-title="已複製">
 &lt;svg class="icon-copy" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 &lt;rect x="9" y="9" width="13" height="13" rx="2" ry="2" stroke="currentColor" stroke-width="2" fill="none">&lt;/rect>
 &lt;path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round">&lt;/path>
 &lt;/svg>
 &lt;svg class="icon-check" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 &lt;path d="M20 6L9 17l-5-5" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">&lt;/path>
 &lt;/svg>
 &lt;/button>
 &lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">dataclasses&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">dataclass&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">datetime&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">date&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@dataclass&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">DemoFeature&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">name&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">str&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">enabled&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">bool&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">features&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;程式碼區塊增強&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;搜尋&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;標籤篩選&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;按讚&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;多語系&amp;#34;&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">status&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="n">DemoFeature&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">name&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">feature&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">enabled&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">True&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">feature&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">features&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">date&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">today&lt;/span>&lt;span class="p">()&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">isoformat&lt;/span>&lt;span class="p">(),&lt;/span> &lt;span class="n">status&lt;/span>&lt;span class="p">[:&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="sa">f&lt;/span>&lt;span class="s2">&amp;#34;total=&lt;/span>&lt;span class="si">{&lt;/span>&lt;span class="nb">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">status&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="si">}&lt;/span>&lt;span class="s2">&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/div></description></item><item><title>圖片與燈箱</title><link>https://hugo-trainsh.pages.dev/zh-tw/posts/images-and-lightbox/</link><pubDate>Sun, 12 Oct 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-tw/posts/images-and-lightbox/</guid><description>&lt;h2 id="外部圖片">
 外部圖片
&lt;/h2>
&lt;p>點擊圖片即可在燈箱中開啟。&lt;/p>
&lt;p>&lt;figure>&lt;a href="https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&amp;amp;fit=crop&amp;amp;w=1400&amp;amp;q=60" class="lightbox-image">
 &lt;img src="https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&amp;amp;fit=crop&amp;amp;w=1400&amp;amp;q=60" alt="山間湖泊" title="點擊查看大圖" loading="lazy">
&lt;/a>
&lt;figcaption>點擊查看大圖&lt;/figcaption>
&lt;/figure>


&lt;/p>
&lt;h2 id="本地圖片提示">
 本地圖片提示
&lt;/h2>
&lt;p>在 Page Bundle 中，將圖片放在 &lt;code>index.md&lt;/code> 旁邊，只用檔名引用就能取得尺寸。&lt;/p></description></item><item><title>Mermaid 與數學示範</title><link>https://hugo-trainsh.pages.dev/zh-tw/posts/mermaid-and-math/</link><pubDate>Sun, 05 Oct 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-tw/posts/mermaid-and-math/</guid><description>&lt;h2 id="mermaid">
 Mermaid
&lt;/h2>
&lt;pre class="mermaid">
 sequenceDiagram
 participant U as 使用者
 participant H as Hugo
 participant T as 主題執行時
 U-&amp;gt;&amp;gt;H: 儲存內容
 H-&amp;gt;&amp;gt;T: 套用樣板渲染
 T--&amp;gt;&amp;gt;U: 即時重新載入
&lt;/pre>

&lt;h2 id="數學">
 數學
&lt;/h2>
&lt;p>行內數學：$a^2 + b^2 = c^2$。&lt;/p>
&lt;p>區塊數學：&lt;/p>
&lt;span class="katex-display">&lt;span class="katex">&lt;span class="katex-mathml">&lt;math xmlns="http://www.w3.org/1998/Math/MathML" display="block">&lt;semantics>&lt;mrow>&lt;msubsup>&lt;mo>∫&lt;/mo>&lt;mrow>&lt;mo>−&lt;/mo>&lt;mi mathvariant="normal">∞&lt;/mi>&lt;/mrow>&lt;mi mathvariant="normal">∞&lt;/mi>&lt;/msubsup>&lt;msup>&lt;mi>e&lt;/mi>&lt;mrow>&lt;mo>−&lt;/mo>&lt;msup>&lt;mi>x&lt;/mi>&lt;mn>2&lt;/mn>&lt;/msup>&lt;/mrow>&lt;/msup>&lt;mtext> &lt;/mtext>&lt;mi>d&lt;/mi>&lt;mi>x&lt;/mi>&lt;mo>=&lt;/mo>&lt;msqrt>&lt;mi>π&lt;/mi>&lt;/msqrt>&lt;/mrow>&lt;annotation encoding="application/x-tex">\int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}&lt;/annotation>&lt;/semantics>&lt;/math>&lt;/span>&lt;span class="katex-html" aria-hidden="true">&lt;span class="base">&lt;span class="strut" style="height:2.3846em;vertical-align:-0.9703em;">&lt;/span>&lt;span class="mop">&lt;span class="mop op-symbol large-op" style="margin-right:0.44445em;position:relative;top:-0.0011em;">∫&lt;/span>&lt;span class="msupsub">&lt;span class="vlist-t vlist-t2">&lt;span class="vlist-r">&lt;span class="vlist" style="height:1.4143em;">&lt;span style="top:-1.7881em;margin-left:-0.4445em;margin-right:0.05em;">&lt;span class="pstrut" style="height:2.7em;">&lt;/span>&lt;span class="sizing reset-size6 size3 mtight">&lt;span class="mord mtight">&lt;span class="mord mtight">−&lt;/span>&lt;span class="mord mtight">∞&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;span style="top:-3.8129em;margin-right:0.05em;">&lt;span class="pstrut" style="height:2.7em;">&lt;/span>&lt;span class="sizing reset-size6 size3 mtight">&lt;span class="mord mtight">&lt;span class="mord mtight">∞&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;span class="vlist-s">​&lt;/span>&lt;/span>&lt;span class="vlist-r">&lt;span class="vlist" style="height:0.9703em;">&lt;span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;span class="mspace" style="margin-right:0.1667em;">&lt;/span>&lt;span class="mord">&lt;span class="mord mathnormal">e&lt;/span>&lt;span class="msupsub">&lt;span class="vlist-t">&lt;span class="vlist-r">&lt;span class="vlist" style="height:1.0369em;">&lt;span style="top:-3.113em;margin-right:0.05em;">&lt;span class="pstrut" style="height:2.7em;">&lt;/span>&lt;span class="sizing reset-size6 size3 mtight">&lt;span class="mord mtight">&lt;span class="mord mtight">−&lt;/span>&lt;span class="mord mtight">&lt;span class="mord mathnormal mtight">x&lt;/span>&lt;span class="msupsub">&lt;span class="vlist-t">&lt;span class="vlist-r">&lt;span class="vlist" style="height:0.8913em;">&lt;span style="top:-2.931em;margin-right:0.0714em;">&lt;span class="pstrut" style="height:2.5em;">&lt;/span>&lt;span class="sizing reset-size3 size1 mtight">&lt;span class="mord mtight">2&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;span class="mspace" style="margin-right:0.1667em;">&lt;/span>&lt;span class="mord mathnormal">d&lt;/span>&lt;span class="mord mathnormal">x&lt;/span>&lt;span class="mspace" style="margin-right:0.2778em;">&lt;/span>&lt;span class="mrel">=&lt;/span>&lt;span class="mspace" style="margin-right:0.2778em;">&lt;/span>&lt;/span>&lt;span class="base">&lt;span class="strut" style="height:1.04em;vertical-align:-0.1908em;">&lt;/span>&lt;span class="mord sqrt">&lt;span class="vlist-t vlist-t2">&lt;span class="vlist-r">&lt;span class="vlist" style="height:0.8492em;">&lt;span class="svg-align" style="top:-3em;">&lt;span class="pstrut" style="height:3em;">&lt;/span>&lt;span class="mord" style="padding-left:0.833em;">&lt;span class="mord mathnormal" style="margin-right:0.03588em;">π&lt;/span>&lt;/span>&lt;/span>&lt;span style="top:-2.8092em;">&lt;span class="pstrut" style="height:3em;">&lt;/span>&lt;span class="hide-tail" style="min-width:0.853em;height:1.08em;">&lt;svg xmlns="http://www.w3.org/2000/svg" width="400em" height="1.08em" viewBox="0 0 400000 1080" preserveAspectRatio="xMinYMin slice">&lt;path d="M95,702
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l0 -0
c5.3,-9.3,12,-14,20,-14
H400000v40H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M834 80h400000v40h-400000z"/>&lt;/svg>&lt;/span>&lt;/span>&lt;/span>&lt;span class="vlist-s">​&lt;/span>&lt;/span>&lt;span class="vlist-r">&lt;span class="vlist" style="height:0.1908em;">&lt;span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span></description></item><item><title>彙整與標籤</title><link>https://hugo-trainsh.pages.dev/zh-tw/posts/archive-and-tags/</link><pubDate>Sun, 28 Sep 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-tw/posts/archive-and-tags/</guid><description>&lt;h2 id="彙整">
 彙整
&lt;/h2>
&lt;p>使用彙整頁面依日期瀏覽。最新文章會顯示在首頁。&lt;/p>
&lt;h2 id="標籤">
 標籤
&lt;/h2>
&lt;p>這篇文章加上了 &lt;code>彙整&lt;/code> 和 &lt;code>標籤&lt;/code> 標籤，從選單可以進入標籤頁瀏覽。&lt;/p></description></item><item><title>表格測試</title><link>https://hugo-trainsh.pages.dev/zh-tw/posts/table-test/</link><pubDate>Fri, 26 Sep 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-tw/posts/table-test/</guid><description>&lt;table class="striped" data-test="t1" id="demo-table">
 &lt;thead>
 &lt;tr>
 &lt;th style="text-align: left">左&lt;/th>
 &lt;th style="text-align: center">中&lt;/th>
 &lt;th style="text-align: right">右&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td style="text-align: left">a&lt;/td>
 &lt;td style="text-align: center">b&lt;/td>
 &lt;td style="text-align: right">c&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">&lt;code>code&lt;/code>&lt;/td>
 &lt;td style="text-align: center">&lt;em>em&lt;/em>&lt;/td>
 &lt;td style="text-align: right">&lt;strong>bold&lt;/strong>&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table></description></item><item><title>工程原則 2024</title><link>https://hugo-trainsh.pages.dev/zh-tw/posts/engineering-principles/</link><pubDate>Mon, 22 Apr 2024 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-tw/posts/engineering-principles/</guid><description>&lt;h2 id="原則">
 原則
&lt;/h2>
&lt;ol>
&lt;li>小步快跑、頻繁交付。&lt;/li>
&lt;li>關鍵路徑優先採用成熟穩定的技術。&lt;/li>
&lt;li>測試是意圖的文件；保持可讀性。&lt;/li>
&lt;li>加功能之前先讓回滾容易。&lt;/li>
&lt;/ol>
&lt;h2 id="備註">
 備註
&lt;/h2>
&lt;p>這些原則刻意保持精簡，方便記住也方便討論。&lt;/p></description></item><item><title>功能示範手冊</title><link>https://hugo-trainsh.pages.dev/zh-tw/posts/product-walkthrough/</link><pubDate>Thu, 18 Mar 2021 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-tw/posts/product-walkthrough/</guid><description>&lt;h2 id="為什麼更新這篇文章">
 為什麼更新這篇文章
&lt;/h2>
&lt;p>這篇 demo 文章已改為最新功能核對清單，幫助你確認站點升級後的功能都能正常運作。&lt;/p>
&lt;h2 id="驗證流程">
 驗證流程
&lt;/h2>
&lt;ol>
&lt;li>語言切換器可正常跳轉對應語系的同類頁面。&lt;/li>
&lt;li>列表頁可使用搜尋與標籤篩選。&lt;/li>
&lt;li>文章內短代碼（&lt;code>toc&lt;/code>、&lt;code>tags&lt;/code>、&lt;code>recent-posts&lt;/code>）可正常渲染。&lt;/li>
&lt;li>代碼區塊、Mermaid、KaTeX、PhotoSwipe 都可正常顯示。&lt;/li>
&lt;li>主題切換按鈕三態循環正常：明亮（太陽）→ 暗黑（月亮）→ 復古（手把）→ 明亮。復古模式應顯示 NES 像素風格（深藍背景、像素字體標題）。&lt;/li>
&lt;/ol>
&lt;h2 id="推薦設定">
 推薦設定
&lt;/h2>
&lt;ul>
&lt;li>&lt;code>params.mainSections&lt;/code> 應包含實際發文目錄（示例為 &lt;code>posts&lt;/code>）。&lt;/li>
&lt;li>&lt;code>outputs.home&lt;/code> 開啟 &lt;code>JSON&lt;/code> 才能完整啟用前端搜尋索引。&lt;/li>
&lt;/ul>
&lt;h2 id="補充">
 補充
&lt;/h2>
&lt;ul>
&lt;li>多語系對應頁可透過 &lt;code>translationKey&lt;/code> 來一一綁定。&lt;/li>
&lt;/ul></description></item></channel></rss>