Files
design-themes/theme_bookstore/views/snippets/s_masonry_block.xml
T
Chrysanthe (chgo) 376ab972ea [IMP] theme_*: improve SEO by correcting heading tag hierarchy
* anelusia, artists, avantgarde, aviato, beauty, bewise, bistro,
bookstore, buzzy, clean, cobalt, enark, graphene, kea, kiddo, loftspace,
monglia, nano, notes, odoo_experts, orchid, paptic, real estate,
treehouse, vehicle, yes, zap

This commit adapts all the `xpath` expressions inside design themes to
target the new heading tags that were changed within the snippet files.

task-4349019

closes odoo/design-themes#1043

Related: odoo/odoo#191300
Related: odoo/enterprise#92978
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-09-08 18:27:03 +00:00

69 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_masonry_block_default_template" inherit_id="website.s_masonry_block_default_template">
<!-- Image -->
<xpath expr="//div[hasclass('col-lg-5')]" position="attributes">
<attribute name="class" add="rounded" remove="rounded-4" separator=" "/>
</xpath>
<!-- Little block #1 -->
<!-- Main div -->
<xpath expr="//div[hasclass('col-lg-4')]" position="attributes">
<attribute name="class" add="rounded" remove="rounded-4" separator=" "/>
<attribute name="style" remove="background-image: linear-gradient(135deg, var(--o-color-4) -400%, var(--o-color-2) 100%);" separator=";"/>
</xpath>
<!-- Title -->
<xpath expr="//div[hasclass('col-lg-4')]/h2" position="replace" mode="inner">
Science fiction
</xpath>
<!-- Paragraph -->
<xpath expr="//div[hasclass('col-lg-4')]/p" position="replace" mode="inner">
Discover unknown universes
</xpath>
<!-- Little block #2 -->
<!-- Main div -->
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="rounded" remove="rounded-4" separator=" "/>
<attribute name="style" remove="background-image: linear-gradient(135deg, var(--o-color-4) -400%, var(--o-color-1) 100%);" separator=";"/>
</xpath>
<!-- Title -->
<xpath expr="//div[hasclass('col-lg-4')][2]/h2" position="replace" mode="inner">
Biographies
</xpath>
<!-- Paragraph -->
<xpath expr="//div[hasclass('col-lg-4')][2]/p" position="replace" mode="inner">
Meet great people
</xpath>
<!-- Little block #3 -->
<!-- Main div -->
<xpath expr="//div[hasclass('col-lg-3')]" position="attributes">
<attribute name="class" add="rounded" remove="rounded-4" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//div[hasclass('col-lg-3')]/h2" position="replace" mode="inner">
Horror
</xpath>
<!-- Paragraph -->
<xpath expr="//div[hasclass('col-lg-3')]/p" position="replace" mode="inner">
Enjoy your fears
</xpath>
<!-- Little block #4 -->
<!-- Main div -->
<xpath expr="//div[hasclass('col-lg-3')][2]" position="attributes">
<attribute name="class" add="rounded" remove="rounded-4" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//div[hasclass('col-lg-3')][2]/h2" position="replace" mode="inner">
Romance
</xpath>
<!-- Paragraph -->
<xpath expr="//div[hasclass('col-lg-3')][2]/p" position="replace" mode="inner">
Read the best love stories
</xpath>
</template>
</odoo>