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() %> <% cached 'blogauthorswidget', $List('SilverStripe\Blog\Model\BlogPost').max('LastEdited'), $List('SilverStripe\Blog\Model\BlogPost').count() %>
<% if $Authors %> <% if $Authors %>
<div class="blog-post__credits"> <div class="blog-post__credits">
<% loop $Authors %> <% loop $Authors %>
<% if $URLSegment && not $Up.ProfilesDisabled %> <% if $URLSegment && not $Up.ProfilesDisabled %>
<a href="$URL" class="blog-post__credit">$Name.XML</a><% if not $Last %>,<% end_if %> <a href="$URL" class="blog-post__credit">$Name.XML</a>
<% else %> <% else %>
<span class="blog-post__credit">$Name.XML</span><% if not $Last %>,<% end_if %> <span class="blog-post__credit">$Name.XML</span>
<% end_if %> <% end_if %>
<% end_loop %> <% end_loop %>
</div> </div>
<% end_if %> <% end_if %>
<% end_cached %> <% end_cached %>