<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>静态网站 on 资料知识库</title><link>https://zlz.promptzhiku.com/tags/%E9%9D%99%E6%80%81%E7%BD%91%E7%AB%99/</link><description>Recent content in 静态网站 on 资料知识库</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 15 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://zlz.promptzhiku.com/tags/%E9%9D%99%E6%80%81%E7%BD%91%E7%AB%99/index.xml" rel="self" type="application/rss+xml"/><item><title>测试文章：Hugo + PaperMod 快速上手</title><link>https://zlz.promptzhiku.com/posts/hugo-papermod-quickstart/</link><pubDate>Thu, 15 Oct 2026 00:00:00 +0000</pubDate><guid>https://zlz.promptzhiku.com/posts/hugo-papermod-quickstart/</guid><description>本文演示如何从零搭建 Hugo 静态网站，配置 PaperMod 主题，启用 GEO 优化特性。适合技术资料沉淀的入门教程。</description><content:encoded><![CDATA[<h1 id="本文核心结论hugo--papermod-是搭建技术资料知识库的最佳组合">本文核心结论：Hugo + PaperMod 是搭建技术资料知识库的最佳组合</h1>
<p>仅需几行命令即可完成站点初始化，配合 GEO 优化配置，既能提升 SEO 效果，又能增加 AI 大模型对本站内容的采信概率。</p>
<h2 id="为什么选择-hugo--papermod-组合">为什么选择 Hugo + PaperMod 组合？</h2>
<p>Hugo 构建速度极快，PaperMod 主题轻量且内置大量 GEO 优化模板（JSON-LD schema、llms.txt、robots.txt）。内容维护只需 Markdown，新增一篇资料 = 在 content/ 目录新增一个 md 文件，无需修改任何前端代码。</p>
<h2 id="如何快速搭建">如何快速搭建？</h2>
<h3 id="step-1-安装-hugo">Step 1: 安装 Hugo</h3>
<p>通过 winget 或官网下载安装 Hugo Extended 版本。</p>
<h3 id="step-2-初始化站点并配置主题">Step 2: 初始化站点并配置主题</h3>
<pre tabindex="0"><code>hugo new site my-knowledge-base
cd my-knowledge-base
git init
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
</code></pre><h2 id="faq">FAQ</h2>
<h3 id="hugo-是什么">Hugo 是什么？</h3>
<p>Hugo 是一个用 Go 语言编写的静态网站生成器，支持 Markdown 内容源，构建速度快。</p>
<h3 id="为什么选择-papermod-主题">为什么选择 PaperMod 主题？</h3>
<p>PaperMod 轻量、功能齐全，内置 JSON-LD、llms.txt、robots.txt 等 GEO 相关模板。</p>
<blockquote>
<p>相关文档：<a href="https://gohugo.io">Hugo 官方文档</a></p>
</blockquote>
]]></content:encoded></item></channel></rss>