You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

73 lines
3.4 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="index_blog_snippet"
inherit_id="website_blog.dynamic_filter_template_blog_post_horizontal"
name="Blog">
<!-- Used for displaying a list of blog posts on a website. -->
<!-- It includes a section header, post date, title, subtitle, and an image for each post.-->
<xpath expr="//figcaption" position="replace">
</xpath>
<xpath expr="//figure" position="before">
<section class="blog py-5 pb-5">
<div class="exp_wrapper">
<div class="container">
<div class="row">
<div class="col-12">
<div class="ex-1">
<h4>
News And Events
<div class="ex-line">
</div>
</h4>
<div class="main-head">
<h2>
Lates Blogs And Posts
</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</xpath>
<xpath expr="//a" position="replace">
<div class="">
<div class="">
<div class="col-sm-12">
<div class="card" style="width: ; text-align: center;">
<div class="img_wrapper2"
t-att-href="'/blog/%s/%s' % (p.blog_id.id, p.id)">
<t t-call="website.record_cover">
<t t-set="_record" t-value="p"/>
<t t-set="use_size"
t-value="o_half_screen_height"/>
<t t-set="additionnal_classes"
t-value="'o_half_screen_height'"/>
</t>
</div>
<div class="wrapper">
<ul class="d-flex">
<li class=" far fa-calendar-alt"></li>
<li>
<t t-esc="p.post_date"
t-options="{'widget': 'date', 'format': 'MMM dd,YYYY'}"/>
</li>
</ul>
<div class="card-body">
<a t-att-href="'/blog/%s/%s' % (p.blog_id.id, p.id)"
class="card-link">
<t t-esc="p.name"/>
</a>
</div>
<p class="para">
<t t-esc="p.subtitle"/>
</p>
</div>
</div>
</div>
</div>
</div>
</xpath>
</template>
</odoo>