Debian Codegraph @

README.md

raw
1 [Clang]: https://clang.llvm.org/
2 [GCC]: https://gcc.gnu.org/
3 [Git]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
4 [Go]: https://go.dev/doc/install
5 [bep]: https://github.com/bep
6 [bugs]: https://github.com/gohugoio/hugo/issues?q=is%3Aopen+is%3Aissue+label%3ABug
7 [contributing]: CONTRIBUTING.md
8 [create a proposal]: https://github.com/gohugoio/hugo/issues/new?labels=Proposal%2C+NeedsTriage&template=feature_request.md
9 [dart sass]: https://gohugo.io/functions/css/sass/#dart-sass
10 [details]: https://gohugo.io/host-and-deploy/deploy-with-hugo-deploy/
11 [documentation repository]: https://github.com/gohugoio/hugoDocs
12 [documentation]: https://gohugo.io/documentation
13 [dragonfly bsd, freebsd, netbsd, and openbsd]: https://gohugo.io/installation/bsd
14 [features]: https://gohugo.io/about/features/
15 [forum]: https://discourse.gohugo.io
16 [friends]: https://github.com/gohugoio/hugo/graphs/contributors
17 [hugo modules]: https://gohugo.io/hugo-modules/
18 [installation]: https://gohugo.io/installation
19 [issue queue]: https://github.com/gohugoio/hugo/issues
20 [linux]: https://gohugo.io/installation/linux
21 [macos]: https://gohugo.io/installation/macos
22 [prebuilt binary]: https://github.com/gohugoio/hugo/releases/latest
23 [requesting help]: https://discourse.gohugo.io/t/requesting-help/9132
24 [spf13]: https://github.com/spf13
25 [static site generator]: https://en.wikipedia.org/wiki/Static_site_generator
26 [support]: https://discourse.gohugo.io
27 [themes]: https://themes.gohugo.io/
28 [transpile sass to css]: https://gohugo.io/functions/css/sass/
29 [website]: https://gohugo.io
30 [windows]: https://gohugo.io/installation/windows
31
32 <a href="https://gohugo.io/"><img src="https://raw.githubusercontent.com/gohugoio/gohugoioTheme/master/static/images/hugo-logo-wide.svg?sanitize=true" alt="Hugo" width="565"></a>
33
34 A fast and flexible static site generator built with love by [bep][], [spf13][], and [friends][] in Go.
35
36 ---
37
38 [![GoDoc](https://godoc.org/github.com/gohugoio/hugo?status.svg)](https://godoc.org/github.com/gohugoio/hugo)
39 [![Tests on Linux, MacOS and Windows](https://github.com/gohugoio/hugo/workflows/Test/badge.svg)](https://github.com/gohugoio/hugo/actions?query=workflow%3ATest)
40
41 [Website][] | [Installation][] | [Documentation][] | [Support][] | [Contributing][] | <a rel="me" href="https://fosstodon.org/@gohugoio">Mastodon</a>
42
43 ## Overview
44
45 Hugo is a [static site generator][] written in Go, optimized for speed and designed for flexibility. With its advanced templating system and fast asset pipelines, Hugo renders a complete site in seconds, often less.
46
47 Due to its flexible framework, multilingual support, and powerful taxonomy system, Hugo is widely used to create:
48
49 - Corporate, government, nonprofit, education, news, event, and project sites
50 - Documentation sites
51 - Image portfolios
52 - Landing pages
53 - Business, professional, and personal blogs
54 - Resumes and CVs
55
56 Use Hugo's embedded web server during development to instantly see changes to content, structure, behavior, and presentation. Then deploy the site to your host, or push changes to your Git provider for automated builds and deployment.
57
58 Hugo's fast asset pipelines include:
59
60 - CSS Processing &ndash; Bundle, transform, minify, create source maps, perform SRI hashing, and integrate with PostCSS.
61 - Image processing &ndash; Convert, resize, crop, rotate, adjust colors, apply filters, overlay text and images, and extract metadata
62 - JavaScript bundling &ndash; Transpile TypeScript and JSX to JavaScript, bundle, tree shake, minify, create source maps, and perform SRI hashing.
63 - Sass processing &ndash; Transpile Sass to CSS, bundle, tree shake, minify, create source maps, perform SRI hashing, and integrate with PostCSS
64 - Tailwind CSS processing &ndash; Compile Tailwind CSS utility classes into standard CSS, bundle, tree shake, optimize, minify, perform SRI hashing, and integrate with PostCSS
65
66 And with [Hugo Modules][], you can share content, assets, data, translations, themes, templates, and configuration with other projects via public or private Git repositories.
67
68 See the [features][] section of the documentation for a comprehensive summary of Hugo's capabilities.
69
70 ## Sponsors
71
72 <p>&nbsp;</p>
73 <p float="left">
74 <a href="https://www.jetbrains.com/go/?utm_source=OSS&utm_medium=referral&utm_campaign=hugo" target="_blank"><img src="https://raw.githubusercontent.com/gohugoio/hugoDocs/master/assets/images/sponsors/goland.svg" width="200" alt="The complete IDE crafted for professional Go developers."></a>
75 &nbsp;&nbsp;&nbsp;
76 <a href="https://cloudcannon.com/hugo-cms/?utm_campaign=HugoSponsorship&utm_source=sponsor&utm_content=gohugo" target="_blank"><img src="https://raw.githubusercontent.com/gohugoio/hugoDocs/master/assets/images/sponsors/cloudcannon-cms-logo.svg" width="200" alt="CloudCannon"></a>
77 </p>
78
79 ## Editions
80
81 Hugo is available in several editions. Use the standard edition unless you need additional features.
82
83 Feature|standard|deploy|extended|extended/deploy
84 :--|:-:|:-:|:-:|:-:
85 Core features|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
86 Direct cloud deployment (1)|:x:|:heavy_check_mark:|:x:|:heavy_check_mark:
87 LibSass support (2)|:x:|:x:|:heavy_check_mark:|:heavy_check_mark:
88
89 (1) Deploy your site directly to a Google Cloud Storage bucket, an AWS S3 bucket, or an Azure Storage container. See&nbsp;[details][].
90
91 (2) [Transpile Sass to CSS][] via embedded LibSass. Note that embedded LibSass was deprecated in v0.153.0 and will be removed in a future release. Use the [Dart Sass][] transpiler instead, which is compatible with any edition.
92
93 ## Installation
94
95 Install Hugo from a [prebuilt binary][], package manager, or package repository. Please see the installation instructions for your operating system:
96
97 - [macOS][]
98 - [Linux][]
99 - [Windows][]
100 - [DragonFly BSD, FreeBSD, NetBSD, and OpenBSD][]
101
102 ## Build from source
103
104 To build Hugo from source you must install:
105
106 1. [Git][]
107 1. [Go][] version 1.27.0 or later
108
109 ### Standard edition
110
111 To build and install the standard edition:
112
113 ```sh
114 CGO_ENABLED=0 go install github.com/gohugoio/hugo@latest
115 ```
116
117 ### Deploy edition
118
119 To build and install the deploy edition:
120
121 ```sh
122 CGO_ENABLED=0 go install -tags withdeploy github.com/gohugoio/hugo@latest
123 ```
124
125 ### Extended edition
126
127 To build and install the extended edition, first install a C compiler such as [GCC][] or [Clang][] and then run the following command.
128
129 ```sh
130 CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
131 ```
132
133 ### Extended/deploy edition
134
135 To build and install the extended/deploy edition, first install a C compiler such as [GCC][] or [Clang][] and then run the following command.
136
137 ```sh
138 CGO_ENABLED=1 go install -tags extended,withdeploy github.com/gohugoio/hugo@latest
139 ```
140
141 ## Documentation
142
143 Hugo's [documentation][] includes installation instructions, a quick start guide, conceptual explanations, reference information, and examples.
144
145 Please submit documentation issues and pull requests to the [documentation repository][].
146
147 ## Support
148
149 Please **do not use the issue queue** for questions or troubleshooting. Unless you are certain that your issue is a software defect, use the [forum][].
150
151 Hugo's [forum][] is an active community of users and developers who answer questions, share knowledge, and provide examples. A quick search of over 20,000 topics will often answer your question. Please be sure to read about [requesting help][] before asking your first question.
152
153 ## Contributing
154
155 You can contribute to the Hugo project by:
156
157 - Answering questions on the [forum][]
158 - Improving the [documentation][]
159 - Monitoring the [issue queue][]
160 - Creating or improving [themes][]
161 - Squashing [bugs][]
162
163 Please submit documentation issues and pull requests to the [documentation repository][].
164
165 If you have an idea for an enhancement or new feature, create a new topic on the [forum][] in the "Feature" category. This will help you to:
166
167 - Determine if the capability already exists
168 - Measure interest
169 - Refine the concept
170
171 If there is sufficient interest, [create a proposal][]. Do not submit a pull request until the project lead accepts the proposal.
172
173 For a complete guide to contributing to Hugo, see the [Contribution Guide](CONTRIBUTING.md).
174
175 ## License
176
177 For the Hugo source code, see [LICENSE](/LICENSE).
178
179 We also bundle some libraries in binary/WASM form:
180
181 - [libwebp](https://github.com/webmproject/libwebp), [BSD-3-Clause license](https://github.com/webmproject/libwebp?tab=BSD-3-Clause-1-ov-file#readme)
182 - [Katex](https://github.com/KaTeX/KaTeX), [MIT license](https://github.com/KaTeX/KaTeX?tab=MIT-1-ov-file#readme)
183 - [QuickJS](https://github.com/bellard/quickjs?tab=License-1-ov-file#readme), [License](https://github.com/bellard/quickjs?tab=License-1-ov-file#readme)
184
185 ## Dependencies
186
187 Hugo stands on the shoulders of great open source libraries. Run `hugo env --logLevel info` to display a list of dependencies.
188
189 <details>
190 <summary>See current dependencies</summary>
191
192 ```text
193 cel.dev/expr="v0.25.1"
194 cloud.google.com/go/auth/oauth2adapt="v0.2.8"
195 cloud.google.com/go/auth="v0.20.0"
196 cloud.google.com/go/compute/metadata="v0.9.0"
197 cloud.google.com/go/iam="v1.5.3"
198 cloud.google.com/go/monitoring="v1.24.3"
199 cloud.google.com/go/storage="v1.57.2"
200 cloud.google.com/go="v0.123.0"
201 github.com/Azure/azure-sdk-for-go/sdk/azcore="v1.20.0"
202 github.com/Azure/azure-sdk-for-go/sdk/azidentity="v1.13.1"
203 github.com/Azure/azure-sdk-for-go/sdk/internal="v1.11.2"
204 github.com/Azure/azure-sdk-for-go/sdk/storage/azblob="v1.6.3"
205 github.com/Azure/go-autorest/autorest/to="v0.4.1"
206 github.com/AzureAD/microsoft-authentication-library-for-go="v1.6.0"
207 github.com/BurntSushi/locker="v0.0.0-20171006230638-a6e239ea1c69"
208 github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp="v1.31.0"
209 github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric="v0.54.0"
210 github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping="v0.54.0"
211 github.com/JohannesKaufmann/dom="v0.3.1"
212 github.com/JohannesKaufmann/html-to-markdown/v2="v2.5.2"
213 github.com/alecthomas/chroma/v2="v2.27.0"
214 github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream="v1.7.8"
215 github.com/aws/aws-sdk-go-v2/config="v1.32.2"
216 github.com/aws/aws-sdk-go-v2/credentials="v1.19.2"
217 github.com/aws/aws-sdk-go-v2/feature/ec2/imds="v1.18.14"
218 github.com/aws/aws-sdk-go-v2/feature/s3/manager="v1.20.12"
219 github.com/aws/aws-sdk-go-v2/internal/configsources="v1.4.22"
220 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2="v2.7.22"
221 github.com/aws/aws-sdk-go-v2/internal/ini="v1.8.4"
222 github.com/aws/aws-sdk-go-v2/internal/v4a="v1.4.22"
223 github.com/aws/aws-sdk-go-v2/service/cloudfront="v1.61.1"
224 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding="v1.13.7"
225 github.com/aws/aws-sdk-go-v2/service/internal/checksum="v1.9.13"
226 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url="v1.13.21"
227 github.com/aws/aws-sdk-go-v2/service/internal/s3shared="v1.19.21"
228 github.com/aws/aws-sdk-go-v2/service/s3="v1.97.3"
229 github.com/aws/aws-sdk-go-v2/service/signin="v1.0.2"
230 github.com/aws/aws-sdk-go-v2/service/sso="v1.30.5"
231 github.com/aws/aws-sdk-go-v2/service/ssooidc="v1.35.10"
232 github.com/aws/aws-sdk-go-v2/service/sts="v1.41.2"
233 github.com/aws/aws-sdk-go-v2="v1.41.6"
234 github.com/aws/smithy-go="v1.25.0"
235 github.com/aymerick/douceur="v0.2.0"
236 github.com/bep/clocks="v0.5.0"
237 github.com/bep/debounce="v1.2.0"
238 github.com/bep/gitmap="v1.9.0"
239 github.com/bep/goat="v0.5.0"
240 github.com/bep/godartsass/v2="v2.5.0"
241 github.com/bep/golibsass="v1.2.0"
242 github.com/bep/golocales="v0.2.0"
243 github.com/bep/goportabletext="v0.2.0"
244 github.com/bep/helpers="v0.12.0"
245 github.com/bep/imagemeta="v0.17.2"
246 github.com/bep/lazycache="v0.8.1"
247 github.com/bep/logg="v0.4.0"
248 github.com/bep/mclib="v1.20401.20400"
249 github.com/bep/overlayfs="v0.11.0"
250 github.com/bep/simplecobra="v0.7.0"
251 github.com/bep/textandbinarywriter="v0.1.0"
252 github.com/bep/tmc="v0.6.0"
253 github.com/bits-and-blooms/bitset="v1.24.5"
254 github.com/cespare/xxhash/v2="v2.3.0"
255 github.com/clbanning/mxj/v2="v2.7.0"
256 github.com/clipperhouse/displaywidth="v0.10.0"
257 github.com/clipperhouse/uax29/v2="v2.6.0"
258 github.com/cncf/xds/go="v0.0.0-20251210132809-ee656c7534f5"
259 github.com/cpuguy83/go-md2man/v2="v2.0.6"
260 github.com/dlclark/regexp2/v2="v2.2.1"
261 github.com/dustin/go-humanize="v1.0.1"
262 github.com/envoyproxy/go-control-plane/envoy="v1.36.0"
263 github.com/envoyproxy/protoc-gen-validate="v1.3.0"
264 github.com/evanw/esbuild="v0.28.1"
265 github.com/fatih/color="v1.18.0"
266 github.com/felixge/httpsnoop="v1.0.4"
267 github.com/frankban/quicktest="v1.14.6"
268 github.com/fsnotify/fsnotify="v1.9.0"
269 github.com/getkin/kin-openapi="v0.140.0"
270 github.com/go-jose/go-jose/v4="v4.1.4"
271 github.com/go-logr/logr="v1.4.3"
272 github.com/go-logr/stdr="v1.2.2"
273 github.com/go-openapi/jsonpointer="v0.22.5"
274 github.com/go-openapi/swag/jsonname="v0.25.5"
275 github.com/gobuffalo/flect="v1.0.3"
276 github.com/gobwas/glob="v0.2.3"
277 github.com/goccy/go-yaml="v1.19.2"
278 github.com/gohugoio/gift="v0.2.0"
279 github.com/gohugoio/go-i18n/v2="v2.1.3-0.20251018145728-cfcc22d823c6"
280 github.com/gohugoio/go-radix="v1.2.0"
281 github.com/gohugoio/hashstructure="v0.6.0"
282 github.com/gohugoio/httpcache="v0.8.0"
283 github.com/gohugoio/hugo-goldmark-extensions/extras="v0.7.0"
284 github.com/gohugoio/hugo-goldmark-extensions/passthrough="v0.5.0"
285 github.com/golang-jwt/jwt/v5="v5.3.0"
286 github.com/google/go-cmp="v0.7.0"
287 github.com/google/s2a-go="v0.1.9"
288 github.com/google/uuid="v1.6.0"
289 github.com/google/wire="v0.7.0"
290 github.com/googleapis/enterprise-certificate-proxy="v0.3.14"
291 github.com/googleapis/gax-go/v2="v2.21.0"
292 github.com/gorilla/css="v1.0.1"
293 github.com/gorilla/websocket="v1.5.3"
294 github.com/hairyhenderson/go-codeowners="v0.7.0"
295 github.com/hashicorp/golang-lru/v2="v2.0.7"
296 github.com/jdkato/prose="v1.2.1"
297 github.com/kr/pretty="v0.3.1"
298 github.com/kr/text="v0.2.0"
299 github.com/kylelemons/godebug="v1.1.0"
300 github.com/kyokomi/emoji/v2="v2.2.13"
301 github.com/makeworld-the-better-one/dither/v2="v2.4.0"
302 github.com/marekm4/color-extractor="v1.2.1"
303 github.com/mattn/go-colorable="v0.1.14"
304 github.com/mattn/go-isatty="v0.0.22"
305 github.com/mattn/go-runewidth="v0.0.19"
306 github.com/microcosm-cc/bluemonday="v1.0.27"
307 github.com/mitchellh/mapstructure="v1.5.1-0.20231216201459-8508981c8b6c"
308 github.com/muesli/smartcrop="v0.3.0"
309 github.com/niklasfasching/go-org="v1.9.1"
310 github.com/oasdiff/yaml3="v0.0.13"
311 github.com/oasdiff/yaml="v0.1.0"
312 github.com/olekukonko/cat="v0.0.0-20250911104152-50322a0618f6"
313 github.com/olekukonko/errors="v1.2.0"
314 github.com/olekukonko/ll="v0.1.6"
315 github.com/olekukonko/tablewriter="v1.1.4"
316 github.com/pbnjay/memory="v0.0.0-20210728143218-7b4eea64cf58"
317 github.com/pelletier/go-toml/v2="v2.4.3"
318 github.com/pkg/browser="v0.0.0-20240102092130-5ac0b6a4141c"
319 github.com/pkg/errors="v0.9.1"
320 github.com/rogpeppe/go-internal="v1.15.0"
321 github.com/russross/blackfriday/v2="v2.1.0"
322 github.com/santhosh-tekuri/jsonschema/v6="v6.0.2"
323 github.com/spf13/afero="v1.15.0"
324 github.com/spf13/cast="v1.10.0"
325 github.com/spf13/cobra="v1.10.2"
326 github.com/spf13/fsync="v0.10.1"
327 github.com/spf13/pflag="v1.0.10"
328 github.com/spiffe/go-spiffe/v2="v2.6.0"
329 github.com/tdewolff/minify/v2="v2.24.13"
330 github.com/tdewolff/parse/v2="v2.8.12"
331 github.com/tetratelabs/wazero="v1.12.0"
332 github.com/webmproject/libwebp="v1.6.0"
333 github.com/yuin/goldmark-emoji="v1.0.6"
334 github.com/yuin/goldmark="v1.8.2"
335 go.opentelemetry.io/auto/sdk="v1.2.1"
336 go.opentelemetry.io/contrib/detectors/gcp="v1.39.0"
337 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc="v0.67.0"
338 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp="v0.67.0"
339 go.opentelemetry.io/otel/metric="v1.43.0"
340 go.opentelemetry.io/otel/sdk/metric="v1.43.0"
341 go.opentelemetry.io/otel/sdk="v1.43.0"
342 go.opentelemetry.io/otel/trace="v1.43.0"
343 go.opentelemetry.io/otel="v1.43.0"
344 go.uber.org/automaxprocs="v1.5.3"
345 go.yaml.in/yaml/v3="v3.0.4"
346 gocloud.dev="v0.45.0"
347 golang.org/x/crypto="v0.53.0"
348 golang.org/x/image="v0.43.0"
349 golang.org/x/mod="v0.37.0"
350 golang.org/x/net="v0.56.0"
351 golang.org/x/oauth2="v0.36.0"
352 golang.org/x/sync="v0.21.0"
353 golang.org/x/sys="v0.46.0"
354 golang.org/x/text="v0.38.0"
355 golang.org/x/time="v0.15.0"
356 golang.org/x/tools="v0.47.0"
357 golang.org/x/xerrors="v0.0.0-20240903120638-7835f813f4da"
358 google.golang.org/api="v0.276.0"
359 google.golang.org/genproto/googleapis/api="v0.0.0-20260319201613-d00831a3d3e7"
360 google.golang.org/genproto/googleapis/rpc="v0.0.0-20260401024825-9d38bb4040a9"
361 google.golang.org/genproto="v0.0.0-20260319201613-d00831a3d3e7"
362 google.golang.org/grpc="v1.80.0"
363 google.golang.org/protobuf="v1.36.11"
364 rsc.io/qr="v0.2.0"
365 software.sslmate.com/src/go-pkcs12="v0.7.0"
366 ```
367 </details>