statiqdev / Statiq.Web

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

Content overrides #832

Open daveaglick opened 5 years ago

daveaglick commented 5 years ago

Most of the themes follow a convention for partials like _Head.cshtml but that could quickly become less widespread when new and community themes are created. Instead we need a way for the use of certain overrides to be intrinsic to the build regardless of theme. Shortcodes give us the power of a lightweight templating engine, so I’m thinking we bake in support for overrides like _Head.html, run them through the Shortcode module, then use one of the HTML modules to inject them at the right place. Might even be able to come up with a convention to make this really flexible by specifying where to inject the override inside the override (as frontmatter?).

daveaglick commented 5 years ago

Been thinking about this more and I think it’ll work really well:

daveaglick commented 4 years ago

Going to work on this soon, happy to see the original design from almost a year ago is still pretty relevant. Here's some clarifications: