mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
d33e209ee5
Updated template elements for 3.0. Made html follow proper heading hierarchy Optimized generated html so it can be more easily styled.
21 lines
366 B
Scheme
21 lines
366 B
Scheme
<% if DisplayMode == month %>
|
|
<ul class="archiveMonths">
|
|
<% loop Dates %>
|
|
<li>
|
|
<a href="$Link">
|
|
$Date.Format(F) $Date.Year
|
|
</a>
|
|
</li>
|
|
<% end_loop %>
|
|
</ul>
|
|
<% else %>
|
|
<ul class="archiveYears">
|
|
<% loop Dates %>
|
|
<li>
|
|
<a href="$Link">
|
|
$Date.Year<% if not Last %>,<% end_if %>
|
|
</a>
|
|
</li>
|
|
<% end_loop %>
|
|
</ul>
|
|
<% end_if %> |