- Status changed to Fixed
almost 2 years ago 12:21pm 12 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 9:29am 30 May 2023
Having no CSS classes for the body
tag in the page.
Not having a html.html.twig
template file.
- When the page has a logged in user with the
user-logged-in
css class- When the page is a front page with the
path-frontpage
css class- When the page is a node page with the
page-node-type-
and the bundle name css class- When the site is off line
db-offline
- When having the navigation bar position with the
navbar-is-
and navbar position.
Have a
html.html.twig
file in Vartheme BS5
Following the way as in the Drupal core Olivero theme
https://git.drupalcode.org/project/drupal/-/blob/9.5.x/core/themes/olive...
Same as in the Gin theme
https://git.drupalcode.org/project/gin/-/blob/8.x-3.x/templates/html.htm...
with
{%
set body_classes = [
logged_in ? 'user-logged-in',
not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class,
node_type ? 'page-node-type-' ~ node_type|clean_class,
db_offline ? 'db-offline',
navbar_position ? 'navbar-is-' ~ navbar_position
]
%}
html.html.twig
system template to manage classes for the body classes tag with Bootstrap 5Fixed
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.