templates/layout.tmpl
changeset 9 2a47b00f60b0
parent 8 0ce1f471e9d7
child 10 d83b10c210e3
--- a/templates/layout.tmpl	Fri Feb 06 22:48:00 2009 +0200
+++ b/templates/layout.tmpl	Fri Feb 06 23:21:24 2009 +0200
@@ -2,7 +2,7 @@
 
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <head>
-        <title>qmsk.net :: ${page_title}</title>
+        <title>qmsk.net :: ${page.title}</title>
         <link rel="Stylesheet" type="text/css" href="${site_root_url}/static/style.css" />
     </head>
     <body>
@@ -11,11 +11,13 @@
             </div>
  
             <ul id="nav">
-                <li><a href="#foo">Foo</a></li>
+            % for (url, title) in menu.siblings :
+                <li><a href="${url}"${' class="selected-page"' if url == page.url else ''}>${title}</a></li>
+            % endfor
             </ul>
 
             <div id="content">
-                ${page_content}
+                ${page.content}
             </div>
     </body>
 </html>