Jaymon / bang

A static site generator with support for RSS feeds, sitemaps, and Google Amp
MIT License
13 stars 0 forks source link

move css into template? #57

Closed Jaymon closed 2 years ago

Jaymon commented 2 years ago

From Btibucket (2016-12-13)

basically, anything in template/css would be copied to output/css and maybe given random strings to cache bust.

It's kind of strange that you put css in the input directory but everything else that handles display is in template, this would codify that so templates can basically be themes with everything to change the look/feel of the site.

In fact, that would be cool, template could become more like:

template/
    example.com/
    dark/
    light/

and the bangfile can choose the theme, so you could do:

theme = "light"

and that will template the site for that theme, including css which is now kept in the theme's directory.

Jaymon commented 2 years ago

At some point this was implemented, templates can have an input directory and anything in that directory will get copied over to output