Fixed single class defined by default

This commit is contained in:
Pedro Moreno 2023-02-26 12:32:46 +01:00
parent f1bff95e8e
commit 006508abaa
2 changed files with 2 additions and 7 deletions

View file

@ -5,10 +5,6 @@
{% set title = page.title|raw %} {% set title = page.title|raw %}
{% set subtitle = page.header.subtitle|raw %} {% set subtitle = page.header.subtitle|raw %}
{% block body_classes %}
{{ body_classes|default('single') }}
{% endblock %}
{% block menu %} {% block menu %}
{% include 'partials/sidebar_right.html.twig' %} {% include 'partials/sidebar_right.html.twig' %}
{% endblock %} {% endblock %}
@ -45,5 +41,5 @@
{% endblock %} {% endblock %}
{% block sidebar %} {% block sidebar %}
{% include 'partials/sidebar_left.html.twig' %} {% include 'partials/sidebar_left.html.twig' %}
{% endblock %} {% endblock %}

View file

@ -1,5 +1,4 @@
{% set theme_config = attribute(config.themes, config.system.pages.theme) %} {% set theme_config = attribute(config.themes, config.system.pages.theme) %}
{% set body_classes = body_class(['single']) %} {# Here, you can define aditional css classes for body, separated with comas #}
{% set compress = theme_var('production-mode') ? '.min.css' : '.css' %} {% set compress = theme_var('production-mode') ? '.min.css' : '.css' %}
{% set favicon = theme_config.favicon ? theme_config.favicon|first : { type:'image/png', path: url('theme://images/favicon.png') } %} {% set favicon = theme_config.favicon ? theme_config.favicon|first : { type:'image/png', path: url('theme://images/favicon.png') } %}
{% set new_base_url = base_url_absolute ~ theme_config.blog_page %} {% set new_base_url = base_url_absolute ~ theme_config.blog_page %}
@ -39,7 +38,7 @@
{% endblock %} {% endblock %}
</head> </head>
<body class="{% block body_classes %}{{ body_classes }}{% endblock %} is-preload"> <body class="{% block body_classes %}{{ page.header.body_classes }}{% endblock %} is-preload">
<!-- Wrapper --> <!-- Wrapper -->
<div id="wrapper"> <div id="wrapper">