Hugo 是一个基于 Go 语言的现代的静态站点生成器。Hugo 提供了 强大的模板引擎 和 灵活的主题系统,并支持 Shortcodes 和 Hooks 扩展功能。
Hugo Introduction
Hugo
v0.146.0
模板系统变更
layouts/_default/
目录已移除,所有文件移至layouts/
根目录layouts/partials/
→layouts/_partials/
layouts/shortcodes/
→layouts/_shortcodes/
安装和初始化
下面将介绍 Windows 下的安装方式,其他平台参照:MacOS, Linux
方式一:在 Git Bash
或 PowerShell
中使用 winget
命令安装:
winget install Hugo.Hugo.Extended
卸载命令:winget uninstall --name "Hugo (Extended)"