# hugo: 静态网站生成神器
**Repository Path**: ayue222/0478721f1106c2a6
## Basic Information
- **Project Name**: hugo: 静态网站生成神器
- **Description**: 很给力的静态网站生成神器叫。Hugo 的核心价值不在于某个具体功能,而在于它重新定义了「静态网站」的边界——通过工程化的极致追求,让静态网站具备动态系统的灵活性和企业级应用的可*性。
源项目: https://github.com/gohugoio/hugo
web地址: https://www.xubaoge.com/repos/hugo-jing-tai-wang-zhan-sheng-cheng-shen-qi.html.html
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-09-26
- **Last Updated**: 2025-09-26
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[bep]: https://github.com/bep
[bugs]: https://github.com/gohugoio/hugo/issues?q=is:open+is:issue+label:Bug
[contributing]: CONTRIBUTING.md
[create a proposal]: https://github.com/gohugoio/hugo/issues/new?labels=Proposal,+NeedsTriage&template=feature_request.md
[documentation repository]: https://github.com/gohugoio/hugoDocs
[documentation]: https://gohugo.io/documentation
[dragonfly bsd, freebsd, netbsd,和 openbsd]: https://gohugo.io/installation/bsd
[features]: https://gohugo.io/about/features/
[forum]: https://discourse.gohugo.io
[friends]: https://github.com/gohugoio/hugo/graphs/contributors
[go]: https://go.dev/
[hugo modules]: https://gohugo.io/hugo-modules/
[installation]: https://gohugo.io/installation
[issue queue]: https://github.com/gohugoio/hugo/issues
[linux]: https://gohugo.io/installation/linux
[macos]: https://gohugo.io/installation/macos
[prebuilt binary]: https://github.com/gohugoio/hugo/releases/latest
[requesting help]: https://discourse.gohugo.io/t/requesting-help/9132
[spf13]: https://github.com/spf13
[static site generator]: https://en.wikipedia.org/wiki/Static_site_generator
[support]: https://discourse.gohugo.io
[themes]: https://themes.gohugo.io/
[website]: https://gohugo.io
[windows]: https://gohugo.io/installation/windows
一个快速灵活的静态站点生成器,由 [bep], [spf13], and [friends] 在[Go].
---
[](https://godoc.org/github.com/gohugoio/hugo)
[](https://github.com/gohugoio/hugo/actions?query=workflow:Test)
[](https://goreportcard.com/report/github.com/gohugoio/hugo)
[Website] | [安装] | [文档] | [支持] | [贡献] | Mastodon
## 概述
`Hugo`是一个 [static site generator] 写于[Go],针对速度进行了优化,并为灵活性而设计。凭借其先进的模板系统和快速的资产管道,Hugo 可以在几秒钟内渲染一个完整的站点,通常更短。
由于其灵活的框架、多语言支持和强大的分类系统,Hugo 被广泛用于创建:
- 企业、**、非营利组织、教育、新闻、活动和项目网站
- 文档站点
- 图像组合
- 登陆页面
- 商业、专业和个人博客
- 简历和简历
在开发过程中使用 Hugo 的嵌入式 Web 服务器可以立即查看内容、结构、行为和演示的更改。然后将站点部署到主机,或将更改推送到 Git 提供程序以进行自动生成和部署。
Hugo 的快速资产管道包括:
- Image processing – Convert, resize, crop, rotate, adjust colors, apply filters, overlay 发短信 and images, and extract EXIF data
- JavaScript bundling – Transpile TypeScript and JSX to JavaScript, bundle, tree shake, minify, create source maps, and perform SRI hashing.
- Sass processing – Transpile Sass to CSS, bundle, tree shake, minify, create source maps, perform SRI hashing, and integrate with PostCSS
- Tailwind CSS processing – Compile Tailwind CSS utility classes into standard CSS, bundle, tree shake, optimize, minify, perform SRI hashing, and integrate with PostCSS
并且与 [Hugo Modules],您可以通过公共或私有 Git 存储库与其他项目共享内容、资产、数据、翻译、主题、模板和配置。
看看这个 [features] 部分,以全面总结 Hugo 的功能。
## Sponsors
## 版本 Hugo is available in three editions: standard, extended, and extended/deploy. While the standard edition provides core functionality, the extended and 扩展/部署版s offer advanced features. 特征|加长版|extended/deploy edition :--|:-:|:-: 编码为 WebP 格式 [processing images].您可以使用任何版本解码 WebP 图像。|:heavy_check_mark:|:heavy_check_mark: [Transpile Sass to CSS] 使用嵌入式 LibSass 转译器。您可以使用[Dart Sass] 任何版本的转译器。|:heavy_check_mark:|:heavy_check_mark: Deploy your site directly to a Google Cloud Storage bucket, an AWS S3 bucket, or an Azure Storage container. See [details].|:x:|:heavy_check_mark: [dart sass]: https://gohugo.io/functions/css/sass/#dart-sass [processing images]: https://gohugo.io/content-management/image-processing/ [transpile sass to css]: https://gohugo.io/functions/css/sass/ [details]: https://gohugo.io/hosting-and-deployment/hugo-deploy/ 除非您的特定部署需求需要扩展/部署版本,否则我们建议使用扩展版本。 ## Installation 从 [prebuilt binary], package manager, or package repository. 请 see the installation instructions for your operating system: - [macOS] - [Linux] - [Windows] - [DragonFly BSD, FreeBSD, NetBSD, and OpenBSD] ## 从源代码生成 从源代码构建 Hugo 的先决条件: - 标准版:Go 1.24.0 或更高版本 - 扩展版:Go 1.24.0 或更高版本,以及 GCC - 扩展/部署版:Go 1.24.0 或更高版本,以及 GCC 构建标准版: ```text go install github.com/gohugoio/hugo@latest ``` 构建扩展版: ```text CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest ``` 构建扩展/部署版本: ```text CGO_ENABLED=1 go install -tags extended,withdeploy github.com/gohugoio/hugo@latest ``` ## 星历史 [](https://star-history.com/#gohugoio/hugo&Timeline) ## Documentation 雨果的 [documentation] 包括安装说明、快速入门指南、概念说明、参考信息和示例。 请将文档问题和拉取请求提交给 [documentation repository]. ## Support Please **不使用问题队列** 用于疑问或故障排除。除非您确定您的问题是软件缺陷,否则请使用[forum]. 雨果的 [forum] 是一个活跃的用户和开发人员社区,他们回答问题、分享知识并提供示例。快速搜索 20,000 多个主题通常可以回答您的问题。请务必阅读有关[requesting help] 在问你的第一个问题之前。 ## Contributing 您可以通过以下方式为 Hugo 项目做出贡献: - 回答有关 [forum] - 改进 [documentation] - 监控 [issue queue] - 创建或改进 [themes] - 挤压 [bugs] Please submit documentation issues and pull requests to the [documentation repository]. 如果您对增强功能或新功能有想法,请在 [forum] 在“功能”类别中。这将帮助您: - 确定功能是否已存在 - 衡量兴趣 - 细化概念 如果有足够的兴趣, [create a proposal].在项目负责人接受提案之前,不要提交拉取请求。 有关为 Hugo 做出贡献的完整指南,请参阅 [Contribution Guide](CONTRIBUTING.md). ## 依赖 Hugo 站在伟大的开源库的肩膀上。跑 `hugo env --logLevel info` 以显示依赖项列表。