Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hugo

> 编程语言
Open source

The world’s fastest framework for building websites.

89.3K stars0 likes4 views
WebsiteGitHub

About

The world’s fastest framework for building websites.

A fast and flexible static site generator built with love by bep, spf13, and friends in Go.


Website | Installation | Documentation | Support | Contributing | Mastodon

Overview

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.

Due to its flexible framework, multilingual support, and powerful taxonomy system, Hugo is widely used to create:

  • Corporate, government, nonprofit, education, news, event, and project sites
  • Documentation sites
  • Image portfolios
  • Landing pages
  • Business, professional, and personal blogs
  • Resumes and CVs

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.

Hugo's fast asset pipelines include:

  • CSS Processing – Bundle, transform, minify, create source maps, perform SRI hashing, and integrate with PostCSS.
  • Image processing – Convert, resize, crop, rotate, adjust colors, apply filters, overlay text and images, and extract metadata
  • 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

And with Hugo Modules, you can share content, assets, data, translations, themes, templates, and configuration with other projects via public or private Git repositories.

See the features section of the documentation for a comprehensive summary of Hugo's capabilities.

Sponsors

 

   

Editions

Hugo is available in several editions. Use the standard edition unless you need additional features.

Feature standard deploy extended extended/deploy
Core features :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
Direct cloud deployment (1) :x: :heavy_check_mark: :x: :heavy_check_mark:
LibSass support (2) :x: :x: :heavy_check_mark: :heavy_check_mark:

(1) Deploy your site directly to a Google Cloud Storage bucket, an AWS S3 bucket, or an Azure Storage container. See details.

(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.

Installation

Install Hugo from a prebuilt binary, package manager, or package repository. Please see the installation instructions for your operating system:

  • macOS
  • Linux
  • Windows
  • DragonFly BSD, FreeBSD, NetBSD, and OpenBSD

Build from source

To build Hugo from source you must install:

  1. Git
  2. Go version 1.26.0 or later

Standard edition

To build and install the standard edition:

bash
CGO_ENABLED=0 go install github.com/gohugoio/hugo@latest

Deploy edition

To build and install the deploy edition:

bash
CGO_ENABLED=0 go install -tags withdeploy github.com/gohugoio/hugo@latest

Extended edition

To build and install the extended edition, first install a C compiler such as GCC or Clang and then run the following command.

bash
CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest

Extended/deploy edition

To build and install the extended/deploy edition, first install a C compiler such as GCC or Clang and then run the following command.

bash
CGO_ENABLED=1 go install -tags extended,withdeploy github.com/gohugoio/hugo@latest

Documentation

Hugo's documentation includes installation instructions, a quick start guide, conceptual explanations, reference information, and examples.

Please submit documentation issues and pull requests to the documentation repository.

Support

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.

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.

Contributing

You can contribute to the Hugo project by:

  • Answering questions on the forum
  • Improving the documentation
  • Monitoring the issue queue
  • Creating or improving themes
  • Squashing bugs

Please submit documentation issues and pull requests to the documentation repository.

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:

  • Determine if the capability already exists
  • Measure interest
  • Refine the concept

If there is sufficient interest, create a proposal. Do not submit a pull request until the project lead accepts the proposal.

For a complete guide to contributing to Hugo, see the Contribution Guide.

License

For the Hugo source code, see LICENSE.

We also bundle some libraries in binary/WASM form:

  • libwebp, BSD-3-Clause license
  • Katex, MIT license
  • QuickJS, License

Dependencies

Hugo stands on the shoulders of great open source libraries. Run hugo env --logLevel info to display a list of dependencies.

See current dependencies
…

Issues· 197 open

View all issuesOpen on GitHub
  • #8997

    Auto-generated header ids can contain invalid CSS selectors

    BugKeepFeature: TOCUpdated Sep 28, 2026
  • #10363

    Add ./hugo.txtar

    ProposalUpdated Sep 28, 2026
  • #11151

    Add minScale to image config

    EnhancementUpstreamKeepUpdated Sep 28, 2026
  • #6169

    Hugo modules: support Keybase

    Proposalb0Updated Sep 27, 2026
  • #14670

    Improve .Position for included content rendered with RenderShortcodes

    Proposalb0Updated Sep 26, 2026
  • #14842

    Feature Request: Support versioning for multiple products

    Proposalb0Updated Sep 26, 2026
  • #14108

    tpl/tplimpl: Add error handling to embedded link/image render hooks

    ProposalFeature: Render Hookb0Updated Sep 26, 2026
  • #13970

    deploySegments

    Proposalb0Updated Sep 26, 2026
  • #448

    Add ability to generate per-{year, month, day} archives

    Proposalb0Updated Sep 26, 2026
  • #9368

    Add `.OutputFormat` to the page object

    Proposalb0Updated Sep 26, 2026

> Tags

Goblog-enginecmscontent-management-systemdocumentation-tool

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言