summary refs log tree commit diff
path: root/template/single.ht
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2008-10-02 20:21:42 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2008-10-02 20:21:42 +0200
commit45a389bb3f4e2e8a4e4c4ccfdd5b51558468bc85 (patch)
tree3d72eb30222775eca20dcbf643aff0b065af3556 /template/single.ht
parent70ab7d9176a8939c91c53b1f77d6b0d9736df2bf (diff)
downloadtrivium-45a389bb3f4e2e8a4e4c4ccfdd5b51558468bc85.tar.gz
trivium-45a389bb3f4e2e8a4e4c4ccfdd5b51558468bc85.tar.xz
trivium-45a389bb3f4e2e8a4e4c4ccfdd5b51558468bc85.zip
Add rel=up links
Diffstat (limited to 'template/single.ht')
-rw-r--r--template/single.ht3
1 files changed, 2 insertions, 1 deletions
diff --git a/template/single.ht b/template/single.ht
index 3c21fa0..fb7873d 100644
--- a/template/single.ht
+++ b/template/single.ht
@@ -9,6 +9,7 @@ $ end
 $ if self[:next_by_date]
     <link rel="next" href="${self[:next_by_date]}">
 $ end
+    <link rel="up" href="${self[:date].strftime("%Y-%m")}">
     <link rel="stylesheet" href="style.css">
     <link rel="alternate" type="application/atom+xml" title="Atom" href="http://chneukirchen.org/trivium/index.atom">
   </head>
@@ -21,7 +22,7 @@ $ end
 $ if l=Entry[self[:prev_by_date]]
 <a class="prev" href="${l[:id]}">&#xab; ${l[:title]}</a>
 $ end
-
+<a class="month" href="${self[:date].strftime("%Y-%m")}">${self[:date].strftime("%B %Y")}</a>
 $ if l=Entry[self[:next_by_date]]
 <a class="next" href="${l[:id]}">${l[:title]} &#xbb;</a>
 $ end