ryanvilbrandt / comic_git

A statically-hosted web comic server core intended to be hosted on github.io. For help getting started, click the Wiki link above!
23 stars 7 forks source link

Themes #43

Closed ryanvilbrandt closed 3 years ago

ryanvilbrandt commented 4 years ago

comic_git should have multiple website themes available to it. These themes should selectable via an optional config option in comic_info.ini, meaning they must be uniquely named (case insensitive).

Each theme will map to a folder in the /src/themes directory. Each theme folder can contain HTML, TPL, CSS, JS, whatever files are needed. (maybe templates will be in their own folder within the theme folder?)

When comic_git loads its templates, it should load up both the default template folder AND the theme template folder, in a way where templates in the theme folder with the same name as template in the default folder will take priority. Any other files in the theme folder (CSS, JS, images, etc) can be referenced in HTML using their actual paths in the theme folder.

Themed CSS files referenced in HTML/TPL files should be loaded after and alongside the default comic_git CSS files, and should contain the minimum amount of styles to make the theme function. That way, the theme will hopefully respect any style options the user made that aren't part of the theme itself.

ryanvilbrandt commented 3 years ago

Done as part of Extra Comics MR