<?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-cn/</link><description>Recent content in 首页 on 我的 Hugo 站点</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 26 Sep 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://hugo-trainsh.pages.dev/zh-cn/index.xml" rel="self" type="application/rss+xml"/><item><title>表格测试</title><link>https://hugo-trainsh.pages.dev/zh-cn/posts/table-test/</link><pubDate>Fri, 26 Sep 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-cn/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>代码&lt;/code>&lt;/td>
 &lt;td style="text-align: center">&lt;em>斜体&lt;/em>&lt;/td>
 &lt;td style="text-align: right">&lt;strong>粗体&lt;/strong>&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table></description></item><item><title>主题指南</title><link>https://hugo-trainsh.pages.dev/zh-cn/posts/quick-start/</link><pubDate>Sun, 21 Sep 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-cn/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%a7%8d%e4%b8%bb%e9%a2%98%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="#%e4%bb%a3%e7%a0%81">代码&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%9b%be%e8%a1%a8">图表&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e6%95%b0%e5%ad%a6%e5%85%ac%e5%bc%8f">数学公式&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e5%9b%be%e7%89%87">图片&lt;/a>&lt;/li>&lt;li>
 &lt;a href="#%e6%a0%87%e7%ad%be">标签&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-cn/">任意链接&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-cn/posts/archive-and-tags/</link><pubDate>Sun, 14 Sep 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-cn/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-cn/posts/code-samples/</link><pubDate>Sun, 24 Aug 2025 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-cn/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-cn/posts/mermaid-and-math/</link><pubDate>Sat, 07 Sep 2024 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-cn/posts/mermaid-and-math/</guid><description>&lt;h2 id="时序图">
 时序图
&lt;/h2>
&lt;pre class="mermaid">
 sequenceDiagram
 participant 用户
 participant Hugo
 participant 主题 as 主题运行时
 用户-&amp;gt;&amp;gt;Hugo: 保存内容
 Hugo-&amp;gt;&amp;gt;主题: 模板渲染
 主题--&amp;gt;&amp;gt;用户: 实时刷新
&lt;/pre>

&lt;h2 id="公式">
 公式
&lt;/h2>
&lt;p>行内公式：$\alpha + \beta = \gamma$。&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;munderover>&lt;mo>∑&lt;/mo>&lt;mrow>&lt;mi>i&lt;/mi>&lt;mo>=&lt;/mo>&lt;mn>1&lt;/mn>&lt;/mrow>&lt;mi>n&lt;/mi>&lt;/munderover>&lt;mi>i&lt;/mi>&lt;mo>=&lt;/mo>&lt;mfrac>&lt;mrow>&lt;mi>n&lt;/mi>&lt;mo stretchy="false">(&lt;/mo>&lt;mi>n&lt;/mi>&lt;mo>+&lt;/mo>&lt;mn>1&lt;/mn>&lt;mo stretchy="false">)&lt;/mo>&lt;/mrow>&lt;mn>2&lt;/mn>&lt;/mfrac>&lt;/mrow>&lt;annotation encoding="application/x-tex">\sum_{i=1}^{n} i = \frac{n(n+1)}{2}&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.9291em;vertical-align:-1.2777em;">&lt;/span>&lt;span class="mop op-limits">&lt;span class="vlist-t vlist-t2">&lt;span class="vlist-r">&lt;span class="vlist" style="height:1.6514em;">&lt;span style="top:-1.8723em;margin-left:0em;">&lt;span class="pstrut" style="height:3.05em;">&lt;/span>&lt;span class="sizing reset-size6 size3 mtight">&lt;span class="mord mtight">&lt;span class="mord mathnormal mtight">i&lt;/span>&lt;span class="mrel mtight">=&lt;/span>&lt;span class="mord mtight">1&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;span style="top:-3.05em;">&lt;span class="pstrut" style="height:3.05em;">&lt;/span>&lt;span>&lt;span class="mop op-symbol large-op">∑&lt;/span>&lt;/span>&lt;/span>&lt;span style="top:-4.3em;margin-left:0em;">&lt;span class="pstrut" style="height:3.05em;">&lt;/span>&lt;span class="sizing reset-size6 size3 mtight">&lt;span class="mord mtight">&lt;span class="mord mathnormal mtight">n&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:1.2777em;">&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">i&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:2.113em;vertical-align:-0.686em;">&lt;/span>&lt;span class="mord">&lt;span class="mopen nulldelimiter">&lt;/span>&lt;span class="mfrac">&lt;span class="vlist-t vlist-t2">&lt;span class="vlist-r">&lt;span class="vlist" style="height:1.427em;">&lt;span style="top:-2.314em;">&lt;span class="pstrut" style="height:3em;">&lt;/span>&lt;span class="mord">&lt;span class="mord">2&lt;/span>&lt;/span>&lt;/span>&lt;span style="top:-3.23em;">&lt;span class="pstrut" style="height:3em;">&lt;/span>&lt;span class="frac-line" style="border-bottom-width:0.04em;">&lt;/span>&lt;/span>&lt;span style="top:-3.677em;">&lt;span class="pstrut" style="height:3em;">&lt;/span>&lt;span class="mord">&lt;span class="mord mathnormal">n&lt;/span>&lt;span class="mopen">(&lt;/span>&lt;span class="mord mathnormal">n&lt;/span>&lt;span class="mspace" style="margin-right:0.2222em;">&lt;/span>&lt;span class="mbin">+&lt;/span>&lt;span class="mspace" style="margin-right:0.2222em;">&lt;/span>&lt;span class="mord">1&lt;/span>&lt;span class="mclose">)&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.686em;">&lt;span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;span class="mclose nulldelimiter">&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span>&lt;/span></description></item><item><title>工程原则 2024</title><link>https://hugo-trainsh.pages.dev/zh-cn/posts/engineering-principles/</link><pubDate>Mon, 22 Apr 2024 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-cn/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-cn/posts/images-and-lightbox/</link><pubDate>Thu, 31 Aug 2023 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-cn/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-1519681393784-d120267933ba?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-1519681393784-d120267933ba?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>功能演示手册</title><link>https://hugo-trainsh.pages.dev/zh-cn/posts/product-walkthrough/</link><pubDate>Thu, 18 Mar 2021 00:00:00 +0000</pubDate><guid>https://hugo-trainsh.pages.dev/zh-cn/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>