summary refs log tree commit diff
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
parent70ab7d9176a8939c91c53b1f77d6b0d9736df2bf (diff)
downloadtrivium-45a389bb3f4e2e8a4e4c4ccfdd5b51558468bc85.tar.gz
trivium-45a389bb3f4e2e8a4e4c4ccfdd5b51558468bc85.tar.xz
trivium-45a389bb3f4e2e8a4e4c4ccfdd5b51558468bc85.zip
Add rel=up links
-rw-r--r--template/front.ht1
-rw-r--r--template/monthly.ht1
-rw-r--r--template/single.ht3
3 files changed, 4 insertions, 1 deletions
diff --git a/template/front.ht b/template/front.ht
index d78977c..ba7b854 100644
--- a/template/front.ht
+++ b/template/front.ht
@@ -5,6 +5,7 @@
     <title>Trivium</title>
     <link rel="stylesheet" href="style.css">
     <link rel="alternate" type="application/atom+xml" title="Atom" href="http://chneukirchen.org/trivium/index.atom">
+    <link rel="up" href="http://chneukirchen.org/">
   </head>
   <body>
 
diff --git a/template/monthly.ht b/template/monthly.ht
index e852b5f..b353f68 100644
--- a/template/monthly.ht
+++ b/template/monthly.ht
@@ -9,6 +9,7 @@ $ end
 $ if self[:entries].first[:next_by_month]
     <link rel="next" href="${self[:entries].first[:next_by_month]}">
 $ end
+    <link rel="up" href="./">
     <link rel="stylesheet" href="style.css">
     <link rel="alternate" type="application/atom+xml" title="Atom" href="http://chneukirchen.org/trivium/index.atom">
   </head>
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