Skip to content

Commit 0241001

Browse files
🙈 Correction d'une erreur sur la preview Wagtail (#1767)
fix heading errors
1 parent 6b1b430 commit 0241001

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

templates/components/produit/heading.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ <h1 class="qf-m-0 {% block title_classes %}{% endblock %}">
1818
{{ title|capfirst }}
1919
</h1>
2020
{% include "components/produit/_infotri.html" with infotri=infotri %}
21-
{% include "snippets/share_and_embed_produit.html" with extra_classes="max-md:qf-order-last md:qf-min-w-[17rem] md:qf-row-start-1 md:qf-col-start-2" %}
2221
{% endblock content %}
2322
</header>
23+
{% include "snippets/share_and_embed_produit.html" with extra_classes="max-md:qf-order-last md:qf-min-w-[17rem] md:qf-row-start-1 md:qf-col-start-2" %}

templates/qfdmd/produit_page.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
<title>{{ page.title }} | {{ seo.title }}</title>
77
{% endblock title %}
88

9+
{% comment %}
910
{% block main_classes %}
1011
{% if not is_synonyme %}{{ block.super }}{% endif %}
1112
{% endblock main_classes %}
13+
{% endcomment %}
1214

1315
{% block main %}
1416
<article
@@ -17,10 +19,9 @@
1719
qf-gap-6w max-lg:qf-pr-0 max-xl:qf-pr-6w
1820
qf-pt-3w md:qf-pt-5w"
1921
>
20-
{% block main_heading %}
21-
{% include "./heading.html" with title=page.title infotri=page.infotri %}
22-
{% include "snippets/share_and_embed_produit.html" with extra_classes="max-md:qf-order-last md:qf-min-w-[17rem] md:qf-row-start-1 md:qf-col-start-2" %}
23-
{% endblock main_heading %}
22+
{% block main_heading %}
23+
{% include "components/produit/heading.html" with title=page.title infotri=page.infotri %}
24+
{% endblock main_heading %}
2425

2526
{% include "sites_faciles_content_manager/blocks/blocks_stream.html" with stream=page.body %}
2627
</article>

0 commit comments

Comments
 (0)