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

34 lines
1013 B
Scheme
Raw Normal View History

2020-04-20 12:01:08 +02:00
<div class="blog-post-info row">
<% if $FeaturedImage %>
2020-04-20 12:01:08 +02:00
<div class="col col-sm-3">
<div class="img card-img-top">
2020-04-20 12:01:08 +02:00
<img
src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
data-lazy-src="$FeaturedImage.Fill(350,200).URL" alt="$Title.ATT"
/>
</div>
2020-04-20 12:01:08 +02:00
</div>
<% end_if %>
2020-04-20 12:01:08 +02:00
<div class="col">
<div class="card-body">
<h3 class="card-title title">
$Title
2020-04-20 12:01:08 +02:00
</h3>
2020-04-20 12:01:08 +02:00
<div class="published-date">
<span class="day">$PublishDate.Format("d")</span>
<span class="month">$PublishDate.Format("MMM")</span>
</div>
2020-04-20 12:01:08 +02:00
<div class="card-text typography summary">
$Summary
</div>
2020-04-20 12:01:08 +02:00
<% include SilverStripe\\Blog\\EntryMeta %>
</div>
</div>
2020-04-20 12:01:08 +02:00
<a href="{$Link}" class="btn btn-link stretched-link"><span class="sr-only">$Title</span></a>
</div>