silverstripe-blog/templates/SilverStripe/Blog/Includes/PostSummary.ss

28 lines
705 B
Scheme
Raw Normal View History

2015-03-22 23:18:02 +01:00
<div class="post-summary">
<h2>
<a href="$Link" title="<%t SilverStripe\\Blog\\Model\\Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>">
<% if $MenuTitle %>$MenuTitle
<% else %>$Title<% end_if %>
</a>
</h2>
<p class="post-image">
<a href="$Link" title="<%t SilverStripe\\Blog\\Model\\Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>">
$FeaturedImage.ScaleWidth(795)
</a>
</p>
2015-03-22 23:18:02 +01:00
<% if $Summary %>
2016-05-31 01:37:26 +02:00
$Summary
<% else %>
2016-05-31 01:37:26 +02:00
<p>$Excerpt</p>
<% end_if %>
2016-05-31 01:37:26 +02:00
<p>
<a href="$Link">
<%t SilverStripe\\Blog\\Model\\Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>
</a>
</p>
2016-05-31 01:37:26 +02:00
2017-09-20 23:10:21 +02:00
<% include SilverStripe\\Blog\\EntryMeta %>
</div>