# 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 Hugo 一个快速灵活的静态站点生成器,由 [bep], [spf13], and [friends] 在[Go]. --- [![GoDoc](https://godoc.org/github.com/gohugoio/hugo?status.svg)](https://godoc.org/github.com/gohugoio/hugo) [![Tests on Linux, MacOS and Windows](https://github.com/gohugoio/hugo/workflows/Test/badge.svg)](https://github.com/gohugoio/hugo/actions?query=workflow:Test) [![Go Report Card](https://goreportcard.com/badge/github.com/gohugoio/hugo)](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

Linode The complete IDE crafted for professional Go developers. CloudCannon

## 版本 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 ``` ## 星历史 [![Star History Chart](https://api.star-history.com/svg?repos=gohugoio/hugo&type=Timeline)](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` 以显示依赖项列表。
See current dependencies ```text github.com/BurntSushi/locker="v0.0.0-20171006230638-a6e239ea1c69" github.com/PuerkitoBio/goquery="v1.10.1" github.com/alecthomas/chroma/v2="v2.15.0" github.com/andybalholm/cascadia="v1.3.3" github.com/armon/go-radix="v1.0.1-0.20221118154546-54df44f2176c" github.com/bep/clocks="v0.5.0" github.com/bep/debounce="v1.2.0" github.com/bep/gitmap="v1.6.0" github.com/bep/goat="v0.5.0" github.com/bep/godartsass/v2="v2.3.2" github.com/bep/golibsass="v1.2.0" github.com/bep/gowebp="v0.3.0" github.com/bep/imagemeta="v0.8.4" github.com/bep/lazycache="v0.7.0" github.com/bep/logg="v0.4.0" github.com/bep/mclib="v1.20400.20402" github.com/bep/overlayfs="v0.9.2" github.com/bep/simplecobra="v0.5.0" github.com/bep/tmc="v0.5.1" github.com/cespare/xxhash/v2="v2.3.0" github.com/clbanning/mxj/v2="v2.7.0" github.com/cpuguy83/go-md2man/v2="v2.0.4" github.com/disintegration/gift="v1.2.1" github.com/dlclark/regexp2="v1.11.5" github.com/dop251/goja="v0.0.0-20250125213203-5ef83b82af17" github.com/evanw/esbuild="v0.24.2" github.com/fatih/color="v1.18.0" github.com/frankban/quicktest="v1.14.6" github.com/fsnotify/fsnotify="v1.8.0" github.com/getkin/kin-openapi="v0.129.0" github.com/ghodss/yaml="v1.0.0" github.com/go-openapi/jsonpointer="v0.21.0" github.com/go-openapi/swag="v0.23.0" github.com/go-sourcemap/sourcemap="v2.1.4+incompatible" github.com/gobuffalo/flect="v1.0.3" github.com/gobwas/glob="v0.2.3" github.com/gohugoio/go-i18n/v2="v2.1.3-0.20230805085216-e63c13218d0e" github.com/gohugoio/hashstructure="v0.5.0" github.com/gohugoio/httpcache="v0.7.0" github.com/gohugoio/hugo-goldmark-extensions/extras="v0.2.0" github.com/gohugoio/hugo-goldmark-extensions/passthrough="v0.3.0" github.com/gohugoio/locales="v0.14.0" github.com/gohugoio/localescompressed="v1.0.1" github.com/golang/freetype="v0.0.0-20170609003504-e2365dfdc4a0" github.com/google/go-cmp="v0.6.0" github.com/google/pprof="v0.0.0-20250208200701-d0013a598941" github.com/gorilla/websocket="v1.5.3" github.com/hairyhenderson/go-codeowners="v0.7.0" github.com/hashicorp/golang-lru/v2="v2.0.7" github.com/jdkato/prose="v1.2.1" github.com/josharian/intern="v1.0.0" github.com/kr/pretty="v0.3.1" github.com/kr/text="v0.2.0" github.com/kyokomi/emoji/v2="v2.2.13" github.com/lucasb-eyer/go-colorful="v1.2.0" github.com/mailru/easyjson="v0.7.7" github.com/makeworld-the-better-one/dither/v2="v2.4.0" github.com/marekm4/color-extractor="v1.2.1" github.com/mattn/go-colorable="v0.1.13" github.com/mattn/go-isatty="v0.0.20" github.com/mattn/go-runewidth="v0.0.9" github.com/mazznoer/csscolorparser="v0.1.5" github.com/mitchellh/mapstructure="v1.5.1-0.20231216201459-8508981c8b6c" github.com/mohae/deepcopy="v0.0.0-20170929034955-c48cc78d4826" github.com/muesli/smartcrop="v0.3.0" github.com/niklasfasching/go-org="v1.7.0" github.com/oasdiff/yaml3="v0.0.0-20241210130736-a94c01f36349" github.com/oasdiff/yaml="v0.0.0-20241210131133-6b86fb107d80" github.com/olekukonko/tablewriter="v0.0.5" github.com/pbnjay/memory="v0.0.0-20210728143218-7b4eea64cf58" github.com/pelletier/go-toml/v2="v2.2.3" github.com/perimeterx/marshmallow="v1.1.5" github.com/pkg/browser="v0.0.0-20240102092130-5ac0b6a4141c" github.com/pkg/errors="v0.9.1" github.com/rivo/uniseg="v0.4.7" github.com/rogpeppe/go-internal="v1.13.1" github.com/russross/blackfriday/v2="v2.1.0" github.com/sass/libsass="3.6.6" github.com/spf13/afero="v1.11.0" github.com/spf13/cast="v1.7.1" github.com/spf13/cobra="v1.8.1" github.com/spf13/fsync="v0.10.1" github.com/spf13/pflag="v1.0.6" github.com/tdewolff/minify/v2="v2.20.37" github.com/tdewolff/parse/v2="v2.7.15" github.com/tetratelabs/wazero="v1.8.2" github.com/webmproject/libwebp="v1.3.2" github.com/yuin/goldmark-emoji="v1.0.4" github.com/yuin/goldmark="v1.7.8" go.uber.org/automaxprocs="v1.5.3" golang.org/x/crypto="v0.33.0" golang.org/x/exp="v0.0.0-20250210185358-939b2ce775ac" golang.org/x/image="v0.24.0" golang.org/x/mod="v0.23.0" golang.org/x/net="v0.35.0" golang.org/x/sync="v0.11.0" golang.org/x/sys="v0.30.0" golang.org/x/text="v0.22.0" golang.org/x/tools="v0.30.0" golang.org/x/xerrors="v0.0.0-20240903120638-7835f813f4da" gonum.org/v1/plot="v0.15.0" google.golang.org/protobuf="v1.36.5" gopkg.in/yaml.v2="v2.4.0" gopkg.in/yaml.v3="v3.0.1" oss.terrastruct.com/d2="v0.6.9" oss.terrastruct.com/util-go="v0.0.0-20241005222610-44c011a04896" rsc.io/qr="v0.2.0" software.sslmate.com/src/go-pkcs12="v0.2.0" ```