breadcrumb in <title>, evsql page
authorTero Marttila <terom@fixme.fi>
Sat, 07 Feb 2009 05:05:29 +0200
changeset 168 c928ae3acaa1
parent 167 f2504700e273
child 169 26bf8b8bc3cc
breadcrumb in <title>, evsql page
templates/layout.tmpl
--- a/templates/layout.tmpl	Sat Feb 07 04:57:22 2009 +0200
+++ b/templates/layout.tmpl	Sat Feb 07 05:05:29 2009 +0200
@@ -13,9 +13,13 @@
 </ul>
 </%def>
 
+<%def name="breadcumb(trail)">
+${' &raquo; '.join(pi.title for pi in trail)}
+</%def>
+
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <head>
-        <title>qmsk.net :: ${page.title}</title>
+        <title>qmsk.net :: ${breadcumb(menu.ancestry)}</title>
         <link rel="Stylesheet" type="text/css" href="${site_root_url}/static/style.css" />
     </head>
     <body>