HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.39k stars 73 forks source link

custom css separate for home page and blog #151

Closed james-see closed 1 year ago

james-see commented 2 years ago

Feature request if this does not exist yet.

james-see commented 2 years ago

You can get away with a pseudo css class, example:

body:has(main):has(content):has(ul.blog-posts) {
    background-color: black;
}

but that seems really hacky and limited.

HermanMartinus commented 1 year ago

I've added class names to the root of each page. You can set styles using the following:

.home {} # homepage
.page {}
.post {}
.blog {} # blog list
.subscribe {} # email newsletter signup