[Radiant] Radiant for blogs

Guido Sohne guido at sohne.net
Sat Sep 8 16:14:45 CDT 2007


On 9/8/07, Guido Sohne <guido at sohne.net> wrote:
> On 9/6/07, David Piehler <davidpiehler at gmail.com> wrote:
> > Very classy and clean. How are you doing dated archives? By parsing
> > parent-child URLs?

Also, in the footer (Archives section header, followed by a list of
dates in which articles were published), I collect the old articles
into a dated list as below.

<div class="block">
<h2>Archives</h2>
   <ul class="dates">
   <r:find url="/articles/">
   <r:children:each order="asc">
   <r:header><li><a href="<r:date format="/articles/%Y/" />"><r:date
     format="%Y" /></a></li></r:header>
   </r:children:each>
   </r:find>
   <r:find url="/articles/">
   <r:children:each order="desc">
   <r:header><li><a href="<r:date format="/articles/%Y/%m/" />"><r:date
     format="%B %Y" /></a></li></r:header>
   </r:children:each>
   </r:find>
   </ul>
</div>

-- G.



More information about the Radiant mailing list