statiqdev / Statiq.Web

Statiq Web is a flexible static site generator written in .NET.
https://statiq.dev/web
Other
1.64k stars 236 forks source link

Theme extensions #902

Open daveaglick opened 4 years ago

daveaglick commented 4 years ago

Now that themes are coming together, had an idea about an additional theme-like concept called theme extensions. These are just normal themes that aren’t intended to be used wholesale - instead they layer on top of any existing theme. For example, a theme extension for adding a “My Projects” page to any blog theme. These go in nested /extensions/name folders and will automatically be crawled to find them all. Then they’ll be treated just like other theme folders (with nested input or archetypes folders, root appsettings.json, etc.) and have higher priority to override the theme folder(s). The theme command should allow for working with extensions, maybe with a flag like --extension or something.