<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hugo on GentleOstrich</title><link>https://gentleostrich.github.io/tags/hugo/</link><description>Recent content in Hugo on GentleOstrich</description><generator>Hugo</generator><language>zh-Hans</language><lastBuildDate>Wed, 14 Jan 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://gentleostrich.github.io/tags/hugo/index.xml" rel="self" type="application/rss+xml"/><item><title>Windows 11 创建 Hugo 网站</title><link>https://gentleostrich.github.io/posts/windows-11-%E5%88%9B%E5%BB%BA-hugo-%E7%BD%91%E7%AB%99/</link><pubDate>Wed, 14 Jan 2026 00:00:00 +0000</pubDate><guid>https://gentleostrich.github.io/posts/windows-11-%E5%88%9B%E5%BB%BA-hugo-%E7%BD%91%E7%AB%99/</guid><description>&lt;p&gt;官方教程不允许使用 CMD、Windows PowerShell 执行各个命令，建议使用 PowerShell 执行命令。Anaconda Powershell Prompt 应该是基于 PowerShell 开发的，因此，本文的命令均在 Anaconda Powershell Prompt 中执行。&lt;/p&gt;
&lt;h2 id="安装-hugo" class="relative group"&gt;安装 Hugo &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e5%ae%89%e8%a3%85-hugo" aria-label="锚点"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;安装 Hugo 前需要安装 Git、Go、Dart Sass。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;安装 &lt;a href="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git" target="_blank" rel="noreferrer"&gt;Git&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;无论是克隆 Hugo 的 GitHub 仓库，还是基于 Github Page 发布网站，都需要使用 Git。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;安装 &lt;a href="https://go.dev/doc/install" target="_blank" rel="noreferrer"&gt;Go&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hugo 是基于 Go 语言开发，Go 作为一种高效的编程语言，使得 Hugo 在速度上远超 Hexo 等静态网站搭建技术。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;安装 &lt;a href="https://gohugo.io/functions/css/sass/#dart-sass" target="_blank" rel="noreferrer"&gt;Dart Sass&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Dart Sass 是 Hugo 开发的网页渲染插件，可以通过 Scoop 和 Chocolatey 两个 Windows 安装器安装，这里选择使用 Scoop 安装。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;安装 &lt;a href="https://scoop.sh/#/" target="_blank" rel="noreferrer"&gt;Scoop&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;首先 cd 到 C:\ 路径，在 C:\ 路径下执行下述命令。&lt;/p&gt;</description></item></channel></rss>