Compost is a simple, lightweight theme for Hugo. Mainly based on the Congo, also refer to hugo-starter-tailwind-basic and so on.
hugo
command (using some of the tricks mentioned in #8343).This theme uses go modules
, not git submodule
, to ensure that the requirements are met and to see the instructions. (Notes for Windows users)
Set the theme in the Hugo project as github.com/canstand/compost
, and add required options to hugo.toml
:
# required
[build]
_merge = 'deep'
# required
[markup]
_merge = 'deep'
# for better seo
[minify]
_merge = 'deep'
# required
[module]
[[module.mounts]]
source = 'assets'
target = 'assets'
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json"
[[module.imports]]
path="github.com/canstand/compost"
hugo mod get -u
hugo mod npm pack
npm install
hugo server