Projet

Général

Profil

0001-misc-include-template-name-as-body-class-27055.patch

Frédéric Péters, 07 octobre 2018 08:24

Télécharger (1014 octets)

Voir les différences:

Subject: [PATCH] misc: include template name as body class (#27055)

 templates/combo/page_template.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
templates/combo/page_template.html
35 35
{% endblock %}
36 36

  
37 37
{% block bodyclasses %}
38
page-{{ page.slug }} {% if pages %}section-{{pages.0.slug}}{% endif %}
38
page-{{ page.slug }} page-template-{{ page.template_name }} {% if pages %}section-{{pages.0.slug}}{% endif %}
39 39
{% skeleton_extra_placeholder extra-body-class %}
40 40
{% if user.is_authenticated %}authenticated-user{% else %}anonymous-user{% endif %}
41 41
{% end_skeleton_extra_placeholder %}
42
-