Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

theme.tsvsheet

The shared tsvsheet visual system as a Hugo Module — the chrome (base shell, header/footer), palette, and fonts that give tsvsheet.com its look. Sites consume it by version so the look stays uniform across the main site and its docs sites with no duplicated templates.

What's inside

Using it in a site

Add the module import to the consuming site's Hugo config and pin it in go.mod:

{
  "module": {
    "imports": [{ "path": "github.com/tsvsheet/theme.tsvsheet" }]
  }
}
require github.com/tsvsheet/theme.tsvsheet v0.1.0

Then hugo mod get github.com/tsvsheet/theme.tsvsheet@v0.1.0 to lock it. Hugo overlays the module's files under the site's own, so a site overrides any single file by placing its own at the same path — a docs site keeps its content layouts while inheriting this chrome.

The mainSite param

The header and footer nav point at the main site. On tsvsheet.com itself leave it empty (self-relative); on a docs site set it so the chrome links back to the main site:

{ "params": { "mainSite": "https://tsvsheet.com" } }
mainSite Nav link resolves to
"" (default) /playground/ — self-relative, for tsvsheet.com
"https://tsvsheet.com" https://tsvsheet.com/playground/ — for docs sites

Consumers

Versioning

Tagged releases (vMAJOR.MINOR.PATCH). A change to the chrome is adopted by each consumer with a single require-line bump, keeping the look uniform and the adoption explicit.

License

MIT.

About

Shared Hugo module: the tsvsheet visual system (chrome, palette, fonts) consumed by version by tsvsheet.com and its docs sites

Resources

Security policy

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages