summaryrefslogtreecommitdiff
path: root/lib/page.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/page.rb')
-rw-r--r--lib/page.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/page.rb b/lib/page.rb
index 64bbaea..f269b75 100644
--- a/lib/page.rb
+++ b/lib/page.rb
@@ -80,4 +80,20 @@ class Page
end
@years
end
+
+ def index_class
+ return ''
+ end
+ def index_link(cururl, depth)
+ # FIXME: This code is super gross.
+ ret = " * <span><a class=\"#{index_class}\" href=\"#{cururl.route_to(url)}\" title=\"Published on #{atom_published.strftime('%Y-%m-%d')}"
+ if atom_updated != atom_published
+ ret += " (updated on #{atom_updated.strftime('%Y-%m-%d')})"
+ end
+ ret += "\">#{atom_title}</a></span><span>"
+ atom_categories.each do |t|
+ ret += t.html
+ end
+ ret += "</span>\n"
+ end
end