silverstripe-blog/templates/Includes/EntryMeta.ss

41 lines
1.1 KiB
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>
<% if $Authors || $AuthorNames %>
<%t Blog.By "by" %>
<% if $Authors %><% loop $Authors %>
2015-03-22 23:18:02 +01:00
<% if $URLSegment %>
<a href="{$Up.Parent.ProfileLink($URLSegment)}">$Name.XML</a>
<% else %>
$Name.XML
<% end_if %>
<% if not $Last || $Up.AuthorNames %>,<% end_if %>
<% end_loop %><% end_if %>
<% if $AuthorNames %>
$AuthorNames
<% end_if %>
<% end_if %>
2015-03-04 23:20:47 +01:00
</p>