page_template: tidy block bodyclasses (#51794)

one class per line
This commit is contained in:
Thomas Jund 2021-03-08 15:33:21 +01:00
parent e88734352a
commit ba0106396e
1 changed files with 10 additions and 7 deletions

View File

@ -75,13 +75,16 @@ data-api-root="{{ site_base }}/api/"
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block bodyclasses %}{% if pwa_display %}pwa{% endif %}
{% get_asset "header:background" as header_background %}{% if header_background %}has-header-background {% endif %}
page-{{ page.slug }} page-template-{{ page.template_name }} {% with pages.0.slug as section %}{% if section %}section-{{section}}{% endif %}{% endwith %}
{% skeleton_extra_placeholder extra-body-class %}
{% if user.is_authenticated %}authenticated-user{% else %}anonymous-user{% endif %}
{% end_skeleton_extra_placeholder %}
{% if page.picture %}has-picture{% endif %}
{% block bodyclasses %}
{% if pwa_display %}pwa{% endif %}
{% get_asset "header:background" as header_background %}{% if header_background %}has-header-background{% endif %}
page-{{ page.slug }}
page-template-{{ page.template_name }}
{% with pages.0.slug as section %}{% if section %}section-{{section}}{% endif %}{% endwith %}
{% if page.picture %}has-picture{% endif %}
{% skeleton_extra_placeholder extra-body-class %}
{% if user.is_authenticated %}authenticated-user{% else %}anonymous-user{% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block title %} - {% if render_skeleton %}{% skeleton_extra_placeholder title %}{% firstof page_title site_title %}{% end_skeleton_extra_placeholder %}{% else %}{{page.title}}{% endif %}{% endblock %}