• Stars
    star
    1,007
  • Rank 43,777 (Top 0.9 %)
  • Language
    CSS
  • License
    Apache License 2.0
  • Created almost 7 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The source for https://gohugo.io/

Netlify Status PRs Welcome

Hugo Docs

Documentation site for Hugo, the very fast and flexible static site generator built with love in Go.

Contributing

We welcome contributions to Hugo of any kind including documentation, suggestions, bug reports, pull requests etc. Also check out our contribution guide. We would love to hear from you.

Note that this repository contains solely the documentation for Hugo. For contributions that aren't documentation-related please refer to the hugo repository.

Pull requests shall only contain changes to the actual documentation. However, changes on the codebase of Hugo and the documentation shall be a single, atomic pull request in the hugo repository.

Spelling fixes are most welcomed, and if you want to contribute longer sections to the documentation, it would be great if you had the following criteria in mind when writing:

  • Short is good. People go to the library to read novels. If there is more than one way to do a thing in Hugo, describe the current best practice (avoid "โ€ฆ but you can also do โ€ฆ" and "โ€ฆ in older versions of Hugo you had to โ€ฆ".
  • For example, try to find short snippets that teaches people about the concept. If the example is also useful as-is (copy and paste), then great. Don't list long and similar examples just so people can use them on their sites.
  • Hugo has users from all over the world, so easy to understand and simple English is good.

Edit the theme

If you want to do docs-related theme changes, the simplest way is to have both hugoDocs and gohugoioTheme cloned as sibling directories, and then run:

HUGO_MODULE_WORKSPACE=hugo.work hugo server --ignoreVendorPaths "**"

Branches

  • The master branch is where the site is automatically built from, and is the place to put changes relevant to the current Hugo version.
  • The next branch is where we store changes that are related to the next Hugo release. This can be previewed here: https://next--gohugoio.netlify.com/

Build

To view the documentation site locally, you need to clone this repository:

git clone https://github.com/gohugoio/hugoDocs.git

Also note that the documentation version for a given version of Hugo can also be found in the /docs sub-folder of the Hugo source repository.

Then to view the docs in your browser, run Hugo and open up the link:

โ–ถ hugo server

Started building sites ...
.
.
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

More Repositories

1

hugo

The worldโ€™s fastest framework for building websites.
Go
71,900
star
2

hugoThemes

A curated directory of Hugo themes
Shell
1,747
star
3

hugoBasicExample

280
star
4

hugoThemesSiteBuilder

The source for https://themes.gohugo.io
Go
197
star
5

gohugoioTheme

A [wip] theme for the gohugo.io home page, docs and theme sites.
CSS
99
star
6

hugo-mod-jslibs

A collection of JS libraries that works great with Hugo.
HTML
47
star
7

hugo-mod-bootstrap-scss

Packages Bootstrap SCSS (v4 and v5) as a Hugo Module
SCSS
38
star
8

hugoThemesSite

The source for https://themes.gohugo.io.
HTML
32
star
9

hugo-mod-heroicons

Work In Progress: Provides Heroicons as a simple to use Hugo Module
17
star
10

hugo-mod-bootstrap-scss-v4

Bootstrap SCSS v4 packaged as a Hugo Module
10
star
11

gohugoioTheme2

Work in progress.
HTML
10
star
12

hugo-goldmark-extensions

Work in progress.
Go
10
star
13

hugoTestProjectJSModImports

Test project used for integration testing.
JavaScript
9
star
14

hugoreleaser

Build, archive and release.
Go
8
star
15

hugo-mod-jslibs-dist

Thin Hugo Module wrappers around some popular JS libs' distribution source code.
JavaScript
7
star
16

hugo-mod-bootstrap-scss-v5

Bootstrap SCSS v5 packaged as a Hugo Module
4
star
17

hugoTestModules1_darwin

Some autogenerated modules used in Hugo tests.
3
star
18

localescompressed

The locales from https://github.com/gohugoio/locales in one package/struct.
Go
3
star
19

hugoTestModules1_linux

Some autogenerated modules used in Hugo tests.
2
star
20

netlify-test-site

Just a test site to test/debug Netlify issues.
JavaScript
2
star
21

hugoTestModules1_windows

Some autogenerated modules used in Hugo tests.
2
star
22

.github

Default community health files
1
star
23

hugoTestModule2

Module used in Hugo integration testing.
JavaScript
1
star
24

hugoTestModulesJS

Test project used for integration testing.
JavaScript
1
star
25

hugoreleaser-plugins-api

Plugins API for https://github.com/gohugoio/hugoreleaser
Go
1
star
26

hugo-mod-bin-dartsass

Work in progress
1
star
27

testmodBuilder

Some helper scripts used for Hugo testing.
Go
1
star
28

hugoreleaser-archive-plugins

Archive Plugins for https://github.com/gohugoio/hugoreleaser
Go
1
star