FIX: Blog profile template

This commit is contained in:
Tony Air 2024-01-22 23:04:35 +02:00
parent b2a0bce621
commit 8e5a785c54
1 changed files with 11 additions and 11 deletions

View File

@ -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 %>