misc: switch from bodyargs to bodyclasses/bodyattrs (#17843)
This commit is contained in:
parent
726e174d56
commit
7b16e7ff8c
|
@ -19,12 +19,19 @@
|
|||
{% end_skeleton_extra_placeholder %}
|
||||
{% endblock %}
|
||||
|
||||
{% block bodyargs %}
|
||||
class="page-{{ page.slug }}"
|
||||
{% block bodyattrs %}
|
||||
data-api-root="{{ site_base }}/api/"
|
||||
{% if check_badges %}data-check-badges="true"{% endif %}
|
||||
{% skeleton_extra_placeholder extra-body-args %}
|
||||
{% end_skeleton_extra_placeholder %}
|
||||
{% endblock %}
|
||||
|
||||
{% block bodyclasses %}
|
||||
page-{{ page.slug }} {% if pages %}section-{{pages.0.slug}}{% endif %}
|
||||
{% skeleton_extra_placeholder extra-body-class %}
|
||||
{% end_skeleton_extra_placeholder %}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% show_menu %}
|
||||
{% placeholder "menu_right" %}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
</head>
|
||||
|
||||
<body {% block bodyargs %}{% endblock %} style="background: url({{ site_base }}{{ STATIC_URL }}img/background-cours-Marigny.jpg) no-repeat;background-size: 100% auto; background-position: center top;">
|
||||
<body {% block bodyargs %}class="{% block bodyclasses %}{% endblock %}" {% block bodyattrs %}{% endblock %}{% endblock %} style="background: url({{ site_base }}{{ STATIC_URL }}img/background-cours-Marigny.jpg) no-repeat;background-size: 100% auto; background-position: center top;">
|
||||
<div class="body">
|
||||
<div id="wrap" class="container">
|
||||
|
||||
|
|
Reference in New Issue