You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .post-identifier class would be some form of unique string per page/post that is based on the url or slug of the page. In <body> tags it would occur only on a single-page-base, in the article tag it should be found anywhere we show a post or post preview.
This way we are able to change styles based on topics (via e.g. article.post-identifier { background: #123123; }) and we keep the whole thing future proof.
I implemented this in some form on my own projects (own themes), so it should be easily adaptable for Ananke.
The text was updated successfully, but these errors were encountered:
Idea: adding identifiers for the current post and page types to the body and article tags.
The
.post-identifier
class would be some form of unique string per page/post that is based on theurl
orslug
of the page. In<body>
tags it would occur only on a single-page-base, in the article tag it should be found anywhere we show a post or post preview.This way we are able to change styles based on topics (via e.g.
article.post-identifier { background: #123123; }
) and we keep the whole thing future proof.I implemented this in some form on my own projects (own themes), so it should be easily adaptable for Ananke.
The text was updated successfully, but these errors were encountered: