smx language code for this page:
%set(root,%replace(%fqppath(/),index.html))
%set(years,%dir(%root%/2*
,%if(%isdir%,%fname%;)
))
%enumsort(%years%,;,
%set(year,%token%)
<h3>%year%</h3>
%set(months,%dir(%root%/%token%/*,%fname%;))
%enumsort(%months%,;,
%set(month,%token%)
<b>%fmtltime(%dparse(2000-%month%-01),mmm)</b>
%dir(%root%/%year%/%month%/*
,%set(title,%pcase(%replace(%fname%,-," ",.html,"")))
<a href='/%year%/%month%/%fname%'>%title%</a> ;
)
,'%stricmp(%b%,%a%)
)
,'%stricmp(%b%,%a%)
)