silverstripe-blog/templates/Includes/EntryMeta.ss

32 lines
947 B
Scheme
Raw Normal View History

2015-03-04 23:20:47 +01:00
<p class="blog-post-meta">
2015-03-22 23:18:02 +01:00
<% if $Categories.exists %>
<%t Blog.PostedIn "Posted in" %>
2015-03-04 23:20:47 +01:00
<% loop $Categories %>
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% else %>;<% end_if %>
<% end_loop %>
<% end_if %>
2015-03-22 23:18:02 +01:00
<% if $Tags.exists %>
<%t Blog.Tagged "Tagged" %>
2015-03-04 23:20:47 +01:00
<% loop $Tags %>
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% else %>;<% end_if %>
<% end_loop %>
<% end_if %>
2015-03-22 23:18:02 +01:00
<% if $Comments.exists %>
<a href="{$Link}#comments-holder">
<%t Blog.Comments "Comments" %>
$Comments.count
</a>;
2015-03-04 23:20:47 +01:00
<% end_if %>
2015-03-22 23:18:02 +01:00
2015-03-04 23:20:47 +01:00
<%t Blog.Posted "Posted" %>
2015-03-22 23:18:02 +01:00
<a href="$MonthlyArchiveLink">$PublishDate.ago</a>
2015-04-01 03:52:46 +02:00
<% if $Credits %>
<%t Blog.By "by" %>
2015-04-01 03:52:46 +02:00
<% loop $Credits %><% if not $First && not $Last %>, <% end_if %><% if not $First && $Last %> and <% end_if %><% if $URLSegment %><a href="$URL">$Name.XML</a><% else %>$Name.XML<% end_if %><% end_loop %>
<% end_if %>
2015-04-01 03:52:46 +02:00
2015-03-04 23:20:47 +01:00
</p>