summaryrefslogtreecommitdiff
path: root/lib/page.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-06 23:47:49 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-06 23:47:49 -0500
commit2db85d4d3bff943629709cacc3d976c24951b8aa (patch)
treec0218e99a0814cbec330c8ede9c821b52457fef5 /lib/page.rb
parent4a3a404a5cb2a8d5be83e28cec5c539928fa30f4 (diff)
index local_input
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