Styling is built on Tailwind CSS and the official Typography plugin
compost — Hugo Starter Template
By canstand
Compost is a simple Hugo theme built with Tailwind CSS, imported via Go Modules, and suited to article-focused personal sites.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
The theme is imported via Go Modules, with no need for a git submodule
Dedicated customization for Simplified Chinese article styling, effective only when lang is zh
Uses Hugo built-in functions to automatically resize images and add native lazy-loading attributes
The repository includes an exampleSite demo site that can be run after installing dependencies separately
Template Details
Compost is a Hugo theme maintained by canstand, positioned as a simple, lightweight starter. It mainly references the Congo theme and draws on approaches from projects such as hugo-starter-tailwind-basic. Styling is based on Tailwind CSS and the official Typography plugin, with stylesheets processed by the Tailwind CSS CLI at build time.
The theme is imported via Go Modules rather than a git submodule. It requires merging build, markup, and minify configuration in hugo.toml, mounting assets and hugo_stats.json, and allowing commands such as sass, go, git, node, postcss, and tailwindcss in security.exec. Dependencies are installed using hugo mod get, hugo mod npm pack, and npm install.
In terms of features, the theme includes dedicated customization for Simplified Chinese article styling, which takes effect only when the html lang is zh. It uses Hugo built-in functions to automatically resize images and adds the browser's native lazy-loading attribute. The repository includes an exampleSite demo site that can be run after installing dependencies separately.
Usage limitations: Hugo v0.166.0 or higher is required, and Node.js must be installed to obtain the Tailwind CSS CLI via npm. The theme relies on both Go Modules and npm for dependency management, and the configuration steps are relatively fixed.
Is it right for your project?
Use Cases
- Building a personal blog or writing site focused on article content
- Hugo projects that need Simplified Chinese typography optimization
- Hugo sites that want to customize styles with Tailwind CSS
- Hugo projects that use Go Modules to manage theme dependencies
Suitable For
- Developers familiar with basic Hugo configuration and command-line operations
- Users who can install front-end dependencies using Node.js and npm
- Sites that prefer a simple article-oriented layout and do not need complex page structures
- Blog authors who need Chinese article styling and automatic image processing
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Requires Hugo v0.166.0 or higher, and Node.js installed to use npm to install the Tailwind CSS CLI
- 2
In hugo.toml, merge the build, markup, and minify configurations, mount assets and hugo_stats.json, and allow sass, go, git, node, postcss, and tailwindcss in security.exec
- 3
Run hugo mod get -u, hugo mod npm pack, and npm install in sequence to install or upgrade dependencies
- 4
To develop the demo site, install dependencies separately in the exampleSite directory, then start hugo server with --source exampleSite
- 5
After modifying dependencies in package.hugo.json, rerun hugo mod npm pack --source exampleSite
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version in the public repository under the MIT license; the free scope is the code of that version and does not mean external services or third-party assets are free.
Must comply with when using
- The code of this version may be used, modified, used commercially, and distributed for free.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Using this theme requires Hugo v0.166.0 or higher; lower versions cannot build it.
- Node.js must be installed, and the Tailwind CSS CLI must be installed via npm; otherwise stylesheets cannot be processed.
- The theme is imported via Go Modules and must be initialized as a Hugo module; the git submodule approach cannot be used.
- Commands such as sass, go, git, node, postcss, and tailwindcss must be allowed in security.exec in hugo.toml; otherwise the build will be blocked by the security policy.
- After modifying dependencies in package.hugo.json, you must rerun hugo mod npm pack --source exampleSite to synchronize dependencies.
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses; the code's MIT license alone is not sufficient to determine this.
- External services such as domains, hosting, databases, payments, or AI may incur separate charges.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
Hugo v0.166.0 or later
Original README
[Node.js](https://nodejs.org/) (the Tailwind CSS CLI is installed with `npm`)
Original README
This theme uses `go modules`, not `git submodule`
Original README
[security] [security.exec] allow = [
Original README
https://github.com/canstand/compost/blob/main/LICENSEhttps://github.com/canstand/compost/blob/main/README.mdhugo mod npm pack --source exampleSite
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-03. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- Hugo Themes
- Documentation and maintenance reference score
- More documented · 87 / 100
- Technologies
- Hugo
- Website type
- Starter
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-09-15
- Screenshot last checked
- 2026-10-03
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Hugo as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Automatically checked against source and license rules; no manual editorial review.
Inspect the recorded source material
SHA-256: 18d62144a771febd5b13eaef97d916e6d5c2c6e97ea2ee943e34cbcb648f98b6
2026-10-03T00:27:27.053Z
Source file / repository# Compost Theme | Hugo
Compost is a simple, lightweight theme for [Hugo](https://gohugo.io). Mainly based on the [Congo](https://github.com/jpanther/congo), also refer to [hugo-starter-tailwind-basic](https://github.com/bep/hugo-starter-tailwind-basic) and so on.
🌏[Demo site](https://canstand.github.io/compost/) | [中文](https://canstand.github.io/compost/zh)
## Features
- Styles are based on [Tailwind CSS](https://tailwindcss.com/docs) 4.x, and the official [Typography plugin](https://github.com/tailwindlabs/tailwindcss-typography).
- You can build and test directly with the `hugo` command (using some of the tricks mentioned in [#8343](https://github.com/gohugoio/hugo/issues/8343)).
- 🌐 The article style is specially customized for the Simplified Chinese language (only applied when the lang of html is zh).
- ✨ Automatically resize images with Hugo's built-in function, and add native lazy loading attr (supported by browsers)
## Requirements
- Hugo v0.166.0 or later
- [Node.js](https://nodejs.org/) (the Tailwind CSS CLI is installed with `npm`)
## Usage
0. This theme uses `go modules`, not `git submodule`, to ensure that the [requirements](https://gohugo.io/hugo-modules/use-modules/#prerequisite) are met and to see the [instructions](https://gohugo.io/hugo-modules/use-modules/#initialize-a-new-module). ([Notes for Windows users](https://gohugo.io/getting-started/quick-start/#commands))
1. Add the required configuration to your `hugo.toml`:
```toml
# required: merge the theme's configuration (Tailwind CSS build settings)
[build]
_merge = 'deep'
# required
[markup]
_merge = 'deep'
# for better seo
[minify]
_merge = 'deep'
[module]
[[module.mounts]]
source = 'assets'
target = 'assets'
# required: hugo_stats.json is the content source of the Tailwind CSS
# stylesheet, see assets/css/main.css
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/notwatching/hugo_stats.json"
disableWatch = true
[[module.imports]]
path="github.com/canstand/compost"
# required: the theme processes the stylesheet with the Tailwind CSS CLI
[security]
[security.exec]
allow = [
'^(dart-)?sass$',
'^go$',
'^git$',
'^node$',
'^postcss$',
'^tailwindcss$',
]
```
2. Install or upgrade dependencies:
```bash
hugo mod get -u
hugo mod npm pack
npm install
```
3. Then run your project as usual.
```bash
hugo server
```
## Development
The demo site lives in `exampleSite`, which is a Hugo project of its own. It needs its own dependencies, exactly like any site using the theme:
```bash
npm install
hugo mod npm pack --source exampleSite
npm install --prefix exampleSite
hugo server --source exampleSite
```
Note: if you change the dependencies in `package.hugo.json`, re-run
`hugo mod npm pack --source exampleSite`.
Explore similar templates
Compare previews and descriptions within the same stack and category.

hugo-xmin
hugo-xmin is an extremely minimal Hugo theme written by Yihui Xie for template beginners. HTML and CSS total about 140 lines, with no external dependencies, and it uses the MIT license.
Hugo · Starter

hugo-theme-gallery
A Hugo Extended photo gallery theme that organizes images with Page Bundles, automatically generating album lists and gallery pages with a Justified layout and PhotoSwipe lightbox.
Hugo · Starter

reveal-hugo
reveal-hugo is a Hugo theme that converts Markdown content into Reveal.js-based HTML presentations. It supports slide separation with `---`, shortcodes for fragments, slides, sections, notes, Markdown, and MathJax, and organizes content as root or section presentations with order controlled by weight.
Hugo · Starter

anatole
Anatole is a minimalistic two-column Hugo theme ported from farbox-theme-Anatole, featuring dark mode, multilingual and RTL support, and optional portfolio, comments, analytics, KaTeX, and Mermaid integrations. It suits personal blogs, portfolios, or documentation sites built with Hugo.
Hugo · Starter

hugo-theme-diary
A Hugo diary-style theme ported from the Hexo theme Journal, with a grid homepage for essays and daily notes. It supports six languages, dark mode, table-of-contents scroll positioning, reading time, code highlighting, and configurable sidebar, fonts, and colors.
Hugo · Starter

risotto
risotto is a minimalist, responsive Hugo theme inspired by terminal ricing aesthetics. It uses semantic HTML and pure CSS with no JavaScript, and its layout relies on CSS Grid for native responsiveness without manual breakpoints.
Hugo · Starter
