-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documents the body_class parameter #1541
base: main
Are you sure you want to change the base?
Documents the body_class parameter #1541
Conversation
Thanks a lot for the review, I've updated the doc based on your comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @fekete-robert. See inline comments.
<body class="td-section"> | ||
``` | ||
|
||
Sometimes it's useful to assign custom classes to a page, or to an entire section, for example, to apply custom styling. To do so, add the `body_class` parameter to the frontmatter of your page. The value of the parameter will be then added to the class attribute of your page's body element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please line-wrap all long paragraphs in this delta.
Also:
- "will be then" --> "will then be"
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
Just ran into that while looking for a way to add custom attributes to the body tag (which doesn't seem to be possible, so I'll open a separate PR for that).
Anyway, this PR documents #774 and fixes #778
@chalin
Preview: https://deploy-preview-1541--docsydocs.netlify.app/docs/adding-content/lookandfeel/#adding-custom-class-to-the-body-element