alpes-maritimes-2022: add default title on combo & a2 pages (#73772)

This commit is contained in:
Thomas Jund 2023-01-24 12:00:25 +01:00
parent 444da84964
commit 8bf153ada7
3 changed files with 20 additions and 2 deletions

View File

@ -414,15 +414,19 @@ main {
}
// placeholder 'page-title'
.combo-placeholder--page-title {
.cd06-page-title--wrapper {
@media ($max-mobile-viewport) {
padding: 0 0.7em;
}
.cd06-page-title--default,
.text-cell h1 {
@extend .page-title;
margin-left: 0;
margin-right: 0;
}
.text-cell + .cd06-page-title--default {
display: none;
}
}
// placeholder 'columns bottom'

View File

@ -0,0 +1,4 @@
{% extends "authentic2/base-page.html" %}
{# delete title, he's added via theme.html #}
{% block form-title %}{% endblock %}

View File

@ -10,5 +10,15 @@
{# page title #}
{% block content-pre %}
{% placeholder "page-title" outer_tag="header" name="Titre de la page" %}
<header class="cd06-page-title--wrapper">
{% placeholder "custom-page-title" name="Titre personnalisé de la page" %}
{% skeleton_extra_placeholder default-page-title %}
{% firstof page.title view.title as cd06_page_title %}
{% if cd06_page_title %}
<h1 class="cd06-page-title--default">
{{ cd06_page_title }}
</h1>
{% endif %}
{% end_skeleton_extra_placeholder %}
</header>
{% endblock %}