silverstripe-webpack/app/templates/Includes/BlogPostInfo.ss

33 lines
1.0 KiB
Scheme
Raw Normal View History

<div class="blog-post-info card">
<div class="published-date">
<div class="day">$PublishDate.Format("d")</div>
<div class="month">$PublishDate.Format("MMM")</div>
</div>
<% if $FeaturedImage %>
<div class="img card-img-top">
2020-02-07 20:51:42 +01:00
<a href="$Link">
<img
src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
data-lazy-src="$FeaturedImage.Fill(350,200).URL" alt="$Title.ATT"
/>
</a>
</div>
<% end_if %>
<div class="card-body">
<h5 class="card-title title">
<a href="$Link.ATT" title="Go to the $Title post">
$Title
</a>
</h5>
<div class="card-text typography summary">
$Summary
</div>
<a href="{$Link}" class="btn btn-link"><%t SilverStripe\\Blog\\Model\\Blog.READMORE "Read More" %> &raquo;</a>
<% include SilverStripe\\Blog\\EntryMeta %>
</div>
</div>