diff --git a/templates/A2nt/CMSNiceties/Widgets/BlogAuthorsWidget.ss b/templates/A2nt/CMSNiceties/Widgets/BlogAuthorsWidget.ss index d5d38d7..443dff9 100644 --- a/templates/A2nt/CMSNiceties/Widgets/BlogAuthorsWidget.ss +++ b/templates/A2nt/CMSNiceties/Widgets/BlogAuthorsWidget.ss @@ -1,13 +1,13 @@ <% cached 'blogauthorswidget', $List('SilverStripe\Blog\Model\BlogPost').max('LastEdited'), $List('SilverStripe\Blog\Model\BlogPost').count() %> - <% if $Authors %> -
- <% loop $Authors %> - <% if $URLSegment && not $Up.ProfilesDisabled %> - $Name.XML<% if not $Last %>,<% end_if %> - <% else %> - $Name.XML<% if not $Last %>,<% end_if %> - <% end_if %> - <% end_loop %> -
- <% end_if %> + <% if $Authors %> +
+ <% loop $Authors %> + <% if $URLSegment && not $Up.ProfilesDisabled %> + $Name.XML + <% else %> + $Name.XML + <% end_if %> + <% end_loop %> +
+ <% end_if %> <% end_cached %>