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

[feature] Add page-specific class per template #3814

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

tsmethurst
Copy link
Contributor

@tsmethurst tsmethurst commented Feb 20, 2025

This PR adds per-template classes per page. Previously the wrapper for every page had the class "page", but now there's an additional class injected based on the template name.

For example, the top-level index page, which uses the template "index.tmpl" now has class "page index-page". Profile page now has class "page profile-page" etc.

This will make it easier for people to target their instance-wide CSS to specific pages, and should be enough to close #2825

@tsmethurst tsmethurst merged commit 8829ee1 into main Feb 20, 2025
4 checks passed
@tsmethurst tsmethurst deleted the page_specific_class_per_template branch February 20, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Frontend HTML Markup] Add specific body classes to different frontend pages
1 participant