Skip to content
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

YAML option to place a class on the body of a page #8118

Closed
dragonstyle opened this issue Jan 4, 2024 · 0 comments
Closed

YAML option to place a class on the body of a page #8118

dragonstyle opened this issue Jan 4, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request html Issues with HTML and related web technology (html/css/scss) websites Issues creating websites
Milestone

Comments

@dragonstyle
Copy link
Collaborator

maybe most can be accomplished by giving the site a specific id and then rely on styling. Is there a setting to add a class/id to the body tag of a site?

Using page-layout: custom get's me some of the way but I still can't target the header of the page specifically if I want to format it differently

I guess this is really a feature request to get a yaml metadata option for setting a class on the page (which allows implementation of special treatments without re-implementing partials)

@dragonstyle dragonstyle self-assigned this Jan 4, 2024
@dragonstyle dragonstyle added websites Issues creating websites html Issues with HTML and related web technology (html/css/scss) labels Jan 4, 2024
@dragonstyle dragonstyle added this to the v1.5 milestone Jan 4, 2024
@dragonstyle dragonstyle added the enhancement New feature or request label Jan 4, 2024
dragonstyle added a commit that referenced this issue Jan 17, 2024
use `body-classes` to apply a set of classes to the body of an HTML page

Fixes #8118
dragonstyle added a commit that referenced this issue Jan 24, 2024
use `body-classes` to apply a set of classes to the body of an HTML page

Fixes #8118
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request html Issues with HTML and related web technology (html/css/scss) websites Issues creating websites
Projects
None yet
Development

No branches or pull requests

1 participant