[SYNC TEMPLATE v2.1.0]: CSS Class #151
Mara-Li
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I'm excited to share an idea I had and implemented a way to use
cssClass
(similar to Obsidian) on the website!To achieve this, I have created a new template called
css_class.html
.I have made an update to the
main.html
file by adding the following:The new template will now check the metadata key
cssClass
and add the corresponding CSS class to the body of the page.Note
The
cssClass
value can be either an array or a simple string.Please make sure to synchronize your template with the latest release of sync_template (
v2.1.0
for this update!).Beta Was this translation helpful? Give feedback.
All reactions