From 8e5a785c54903d7df016cc2b0a435755dd38c214 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Mon, 22 Jan 2024 23:04:35 +0200 Subject: [PATCH] FIX: Blog profile template --- .../CMSNiceties/Widgets/BlogAuthorsWidget.ss | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 %>