silverstripe-blog/templates/Includes/PostSummary.ss
2017-09-18 15:59:58 +12:00

28 lines
685 B
Scheme

<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>
<% if $Summary %>
$Summary
<% else %>
<p>$Excerpt</p>
<% end_if %>
<p>
<a href="$Link">
<%t SilverStripe\\Blog\\Model\\Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>
</a>
</p>
<% include EntryMeta %>
</div>