Changes for page Home
Last modified by Alex Cotiugă on 2026/01/13 13:12
From version 7.135
edited by Alex Cotiugă
on 2025/11/17 09:07
on 2025/11/17 09:07
Change comment:
There is no comment for this version
To version 7.138
edited by Alex Cotiugă
on 2025/11/17 09:09
on 2025/11/17 09:09
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -109,9 +109,17 @@ 109 109 <p class="lead"> 110 110 All the XWiki services you need, delivered with precision and care 111 111 </p> 112 + 113 + #set ($servicesSize = $servicesSectionData.size()) 112 112 <div class="services-grid"> 113 113 #foreach ($entry in $servicesSectionData) 114 - <article class="service"> 116 + #set ($classes = "service") 117 + ## If this is the last item AND the total number is odd, center it 118 + #if ($foreach.count == $servicesSize && ($servicesSize % 2) == 1) 119 + #set ($classes = "service service-center") 120 + #end 121 + 122 + <article class="$classes"> 115 115 <div class="service-icon"> 116 116 <i class="fa fa-$entry.icon" aria-hidden="true"></i> 117 117 </div>