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

46 lines
1.6 KiB
Scheme
Raw Permalink Normal View History

<p class="blog-post-meta">
<% if $Categories.exists %>
<%t SilverStripe\\Blog\\Model\\Blog.PostedIn "Posted in" %>
<% loop $Categories %>
2022-11-25 00:43:00 +01:00
<a href="$Link" title="$Title">$Title</a><% if not $IsLast %>, <% else %>;<% end_if %>
<% end_loop %>
<% end_if %>
<% if $Tags.exists %>
<%t SilverStripe\\Blog\\Model\\Blog.Tagged "Tagged" %>
<% loop $Tags %>
2022-11-25 00:43:00 +01:00
<a href="$Link" title="$Title">$Title</a><% if not $IsLast %>, <% else %>;<% end_if %>
<% end_loop %>
<% end_if %>
<% if $Comments.exists %>
<a href="{$Link}#comments-holder">
<%t SilverStripe\\Blog\\Model\\Blog.Comments "Comments" %>
$Comments.count
</a>;
<% end_if %>
<%t SilverStripe\\Blog\\Model\\Blog.Posted "Posted" %>
<a href="$MonthlyArchiveLink">$PublishDate.ago</a>
<% if $Credits %>
<%t SilverStripe\\Blog\\Model\\Blog.By "by" %>
<% loop $Credits %>
2022-11-25 00:43:00 +01:00
<% if not $IsFirst && not $IsLast %>, <% end_if %>
<% if not $IsFirst && $IsLast %> <%t SilverStripe\\Blog\\Model\\Blog.AND "and" %> <% end_if %>
<% if $URLSegment && not $Up.ProfilesDisabled %>
<a href="$URL">$Name.XML</a>
<% else %>
$Name.XML
<% end_if %>
<% end_loop %>
<% end_if %>
2018-03-14 09:01:09 +01:00
<% if $MinutesToRead < 1 %>
<%t SilverStripe\\Blog\\Model\\Blog.LessThanAMinuteToRead "Less than a minute to read" %>
<% else %>
$MinutesToRead <%t SilverStripe\\Blog\\Model\\Blog.MinutesToRead "Minute(s) to read" %>
<% end_if %>
</p>