FIX: Blog profile template
This commit is contained in:
parent
b2a0bce621
commit
8e5a785c54
|
@ -1,13 +1,13 @@
|
|||
<% cached 'blogauthorswidget', $List('SilverStripe\Blog\Model\BlogPost').max('LastEdited'), $List('SilverStripe\Blog\Model\BlogPost').count() %>
|
||||
<% if $Authors %>
|
||||
<div class="blog-post__credits">
|
||||
<% loop $Authors %>
|
||||
<% if $URLSegment && not $Up.ProfilesDisabled %>
|
||||
<a href="$URL" class="blog-post__credit">$Name.XML</a><% if not $Last %>,<% end_if %>
|
||||
<% else %>
|
||||
<span class="blog-post__credit">$Name.XML</span><% if not $Last %>,<% end_if %>
|
||||
<% end_if %>
|
||||
<% end_loop %>
|
||||
</div>
|
||||
<% end_if %>
|
||||
<% if $Authors %>
|
||||
<div class="blog-post__credits">
|
||||
<% loop $Authors %>
|
||||
<% if $URLSegment && not $Up.ProfilesDisabled %>
|
||||
<a href="$URL" class="blog-post__credit">$Name.XML</a>
|
||||
<% else %>
|
||||
<span class="blog-post__credit">$Name.XML</span>
|
||||
<% end_if %>
|
||||
<% end_loop %>
|
||||
</div>
|
||||
<% end_if %>
|
||||
<% end_cached %>
|
||||
|
|
Loading…
Reference in New Issue