# gohugoio/hugo SLOC report

> gohugoio/hugo: 186,289 code lines at commit 89d292190a73, counted with tokei-15.0.0 on 2026-11-24. Saved result 05f99f3c25d9ee9751754394840c8d6daa2434c8467da5c8a2027e779a03d086.

Source: [gohugoio/hugo on GitHub](https://github.com/gohugoio/hugo) · counted commit [89d292190a73](https://github.com/gohugoio/hugo/tree/89d292190a73be1d79966451c13302d346d0151c)

gohugoio/hugo has 186,289 source lines of code out of 260,361 total lines across 1,119 files, counted with tokei from the master ref at commit 89d292190a73 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving gohugoio/hugo to commit 89d292190a73, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

gohugoio/hugo: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 71.6% of all lines, comments represent 14.7%, and the repository averages 166 code lines per file. Go accounts for 94.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 912 | 234,426 | 176,343 | 26,640 | 31,443 |
| JavaScript | 11 | 4,307 | 3,699 | 326 | 282 |
| C | 3 | 4,241 | 3,650 | 161 | 430 |
| HTML | 45 | 1,467 | 1,383 | 0 | 84 |
| YAML | 2 | 448 | 406 | 18 | 24 |
| Makefile | 4 | 391 | 266 | 58 | 67 |
| C Header | 1 | 274 | 142 | 89 | 43 |
| Shell | 10 | 200 | 128 | 32 | 40 |
| XML | 4 | 105 | 103 | 0 | 2 |
| Dockerfile | 1 | 94 | 56 | 20 | 18 |
| JSON | 5 | 46 | 46 | 0 | 0 |
| CSS | 4 | 31 | 28 | 0 | 3 |
| Templ | 8 | 20 | 20 | 0 | 0 |
| Sass | 2 | 13 | 11 | 0 | 2 |
| SVG | 2 | 10 | 8 | 0 | 2 |
| Markdown | 14 | 11,206 | 0 | 8,328 | 2,878 |
| Plain Text | 91 | 3,082 | 0 | 2,648 | 434 |

Top language: Go 94.7%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/gohugoio/hugo/commit/89d292190a73be1d79966451c13302d346d0151c?reportId=05f99f3c25d9ee9751754394840c8d6daa2434c8467da5c8a2027e779a03d086&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/gohugoio/hugo/commit/89d292190a73be1d79966451c13302d346d0151c?reportId=05f99f3c25d9ee9751754394840c8d6daa2434c8467da5c8a2027e779a03d086&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does gohugoio/hugo have?

gohugoio/hugo has 186,289 lines of code, plus 38,320 comment lines and 35,752 blank lines, for 260,361 total lines at commit 89d292190a73 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the gohugoio/hugo line count measured?

OctoCounts resolved the public GitHub repository to commit 89d292190a73, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for gohugoio/hugo?

This OctoCounts report was generated from master at commit 89d292190a73 on November 24, 2026.

## Similar repository reports

- [guregodevo/memdoor](https://octocounts.com/github/guregodevo/memdoor) — Go, 186,557 code lines
- [juanfont/headscale](https://octocounts.com/github/juanfont/headscale) — Go, 187,235 code lines
- [podman-container-tools/podman](https://octocounts.com/github/podman-container-tools/podman) — Go, 184,311 code lines
- [cockroachdb/pebble](https://octocounts.com/github/cockroachdb/pebble) — Go, 189,254 code lines
- [owncast/owncast](https://octocounts.com/github/owncast/owncast) — Go, 182,925 code lines
- [usememos/memos](https://octocounts.com/github/usememos/memos) — Go, 189,935 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Hugo vs Jekyll](https://octocounts.com/compare/hugo-vs-jekyll)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
