Stefan4472 / Stefans-Blog

Personal blogging platform built in Python
MIT License
0 stars 0 forks source link

Improved handling of static resources #108

Open Stefan4472 opened 1 year ago

Stefan4472 commented 1 year ago

I don't like how style.css and favicon.ico are in the static folder, because the site configuration allows the static folder to be put somewhere else (which would cause the style.css link to break). We will also probably be adding some javascript files as well.

Maybe a new folder under templates?

Or perhaps, we should think about this the other way and keep static for static site resources. User-uploaded stuff could go into a different folder, e.g. user_uploads or user.

The site config should also probably only take a single arg, base_dir, instead of allowing separately-defined instance and static folders.