<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>目录结构 on Text Matrix</title><link>https://0f9f3b1c.text-matrix.pages.dev/tags/%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84/</link><description>Recent content in 目录结构 on Text Matrix</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 08 Apr 2026 11:10:11 +0800</lastBuildDate><atom:link href="https://0f9f3b1c.text-matrix.pages.dev/tags/%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84/index.xml" rel="self" type="application/rss+xml"/><item><title>Hugo 目录结构解析：docs 与 posts 的区别与最佳实践</title><link>https://0f9f3b1c.text-matrix.pages.dev/docs/hugo-docs-vs-posts/</link><pubDate>Mon, 23 Mar 2026 10:30:00 +0800</pubDate><guid>https://0f9f3b1c.text-matrix.pages.dev/docs/hugo-docs-vs-posts/</guid><description>&lt;blockquote>
&lt;p>&lt;strong>🎯 学习目标&lt;/strong>&lt;/p>
&lt;p>读完本文，你将了解：&lt;/p>
&lt;ol>
&lt;li>Hugo 中 &lt;code>content/docs&lt;/code> 和 &lt;code>content/posts&lt;/code> 的核心区别是什么。&lt;/li>
&lt;li>为什么在物理上和逻辑上都需要将它们分开。&lt;/li>
&lt;li>在实际内容创作时，应该如何在这两个目录间做出选择。&lt;/li>
&lt;/ol>&lt;/blockquote>
&lt;p>在使用 Hugo（尤其是配合 LoveIt 主题）搭建静态网站时，&lt;code>content&lt;/code> 目录下的 &lt;code>docs&lt;/code> 和 &lt;code>posts&lt;/code> 是两个最常用的内容分区（Sections）。许多初学者会疑惑：这两者到底有什么区别？能把它们混在一起吗？&lt;/p></description></item></channel></rss>