<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Oriar</title><description>文章和文档，从原理讲到能用。</description><link>https://imoriar.com/</link><language>zh-CN</language><item><title>为 Astro 写一个安静的主题</title><link>https://imoriar.com/posts/quiet-astro-theme/</link><guid isPermaLink="true">https://imoriar.com/posts/quiet-astro-theme/</guid><description>从宣纸的颜色开始，聊版心、行距、中英混排，以及为什么只留一种强调色。</description><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;这是一篇示例文章，换成你自己的内容即可。文件名就是网址：&lt;code&gt;src/content/posts/quiet-astro-theme.md&lt;/code&gt; 对应 &lt;code&gt;/posts/quiet-astro-theme/&lt;/code&gt;。&lt;/p&gt;
&lt;h2 id=&quot;从宣纸的颜色开始&quot;&gt;从宣纸的颜色开始&lt;/h2&gt;
&lt;p&gt;底色 &lt;code&gt;#faf9f7&lt;/code&gt; 不是纯白，也不发黄。重点内容可以&lt;mark&gt;高亮标出&lt;/mark&gt;，链接是&lt;a href=&quot;#&quot;&gt;青色&lt;/a&gt;，整页只有这一种颜色。&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;颜色越少，每一次出现越有意义。&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre class=&quot;astro-code css-variables&quot; style=&quot;background-color:var(--astro-code-background);color:var(--astro-code-foreground); overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;ts&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt; default&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-function)&quot;&gt; defineSite&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;({&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;  platforms&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; [{ platform&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt; &apos;youtube&apos;&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-punctuation)&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; handle&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt; &apos;@example&apos;&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-punctuation)&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; primary&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-constant)&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; }]&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-punctuation)&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;});&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;版心与行距&quot;&gt;版心与行距&lt;/h2&gt;
&lt;p&gt;正文 17px、行高 1.75，版心 680px，大约一行 40 个汉字。&lt;/p&gt;
&lt;h3 id=&quot;一行多少个字&quot;&gt;一行多少个字&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;少于 30 字：换行太频繁&lt;/li&gt;
&lt;li&gt;30–45 字：舒适&lt;/li&gt;
&lt;li&gt;超过 50 字：容易读串行&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;or-alert or-alert-success&quot; role=&quot;note&quot;&gt;
&lt;svg class=&quot;or-icon or-alert-icon&quot; width=&quot;18&quot; height=&quot;18&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M9 18h6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M10 22h4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;
&lt;div class=&quot;or-alert-body&quot;&gt;
&lt;div class=&quot;or-alert-title&quot;&gt;小建议&lt;/div&gt;
&lt;div class=&quot;or-alert-desc&quot;&gt;
&lt;p&gt;中文段落建议不超过四行，长段落拆开读起来更轻松。&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;or-alert or-alert-warning&quot; role=&quot;alert&quot;&gt;
&lt;svg class=&quot;or-icon or-alert-icon&quot; width=&quot;18&quot; height=&quot;18&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;
&lt;div class=&quot;or-alert-body&quot;&gt;
&lt;div class=&quot;or-alert-desc&quot;&gt;
&lt;p&gt;比例写成 16:9、时间写成 10:30，不会被当成指令吞掉。&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&quot;中英混排&quot;&gt;中英混排&lt;/h2&gt;

























&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;样式&lt;/th&gt;&lt;th&gt;字号&lt;/th&gt;&lt;th&gt;行高&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;正文与导语&lt;/td&gt;&lt;td&gt;17px&lt;/td&gt;&lt;td&gt;1.75&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;小字&lt;/td&gt;&lt;td&gt;14px&lt;/td&gt;&lt;td&gt;1.6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;代码&lt;/td&gt;&lt;td&gt;14px&lt;/td&gt;&lt;td&gt;1.7&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;hr&gt;
&lt;p&gt;以上。&lt;/p&gt;</content:encoded><category>Astro</category><category>排版</category></item><item><title>用 Claude 写测试：我现在的工作流</title><link>https://imoriar.com/posts/claude-tests-workflow/</link><guid isPermaLink="true">https://imoriar.com/posts/claude-tests-workflow/</guid><description>先让它读懂代码，再让它提出边界条件，最后我来决定哪些值得测。</description><pubDate>Sat, 12 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;示例文章。&lt;/p&gt;</content:encoded><category>AI</category></item><item><title>Pagefind 给静态站加上中文搜索</title><link>https://imoriar.com/posts/pagefind-chinese-search/</link><guid isPermaLink="true">https://imoriar.com/posts/pagefind-chinese-search/</guid><description>不要服务器，不要第三方，构建时生成索引，几十 KB 就能搜全站。</description><pubDate>Fri, 28 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;示例文章。&lt;/p&gt;</content:encoded><category>Astro</category></item></channel></rss>