1 class ArchiveDayIndexPage < Page
4 To create a day index for an archive, create a child page for the
5 archive and assign the "Archive Day Index" page type to it.
7 A day index page makes following tags available to you:
9 <r:archive:children>...</r:archive:children>
10 Grants access to a subset of the children of the archive page
11 that match the specific year which the index page is rendering.
14 include ArchiveIndexTagsAndMethods
16 Grants access to a subset of the children of the archive page
17 that match the specific day which the index page is rendering.
20 <pre><code><r:archive:children>...</r:archive:children></code></pre>
22 tag "archive:children" do |tag|
23 year, month, day = $1, $2, $3 if request_uri =~ %r{/(\d{4})/(\d{2})/(\d{2})/?$}
24 tag.locals.children = ArchiveFinder.day_finder(parent.children, year, month, day)