diff bitsyblog/templates/blog.html @ 13:fbf8f198ef67

template additions
author k0s <k0scist@gmail.com>
date Wed, 07 Oct 2009 17:19:47 -0400
parents ebe8dc33c871
children 36698624435b
line wrap: on
line diff
--- a/bitsyblog/templates/blog.html	Wed Oct 07 17:19:32 2009 -0400
+++ b/bitsyblog/templates/blog.html	Wed Oct 07 17:19:47 2009 -0400
@@ -9,20 +9,32 @@
     <title>${user} - ${site_name}</title>
 
     <py:for each="index, sheet in stylesheets">
-      <link />
+      <link href="${link(request, ('css', sheet)"
+            type="text/css" 
+            rel="${index and 'alternate stylesheet' or 'stylesheet'}"
+            title="sheet.rsplit('.', 1)[0]"/>
     </py:for>
 
   </head>
 
   <body>
+    
+    <!-- nav links -->
     <xi:include href="navigation.html">
       
+      <div py:if="n_links == 0 or not len(blog)" class="navigation">
+        <ul>
+          
+        </ul>
+      </div>
+
+      <!-- blog entries -->
       <div py:for="entry in blog"
            id="${entry.datestamp()}" class="blog-entry">
         <a name="${entry.datestamp()}" />
         
         <div class="subject">
-          <a href="TODO">${subject}</a>
+          <a href="${'foo'}">${subject}</a>
           <em py:if="entry.privacy == secret and role == 'friend'">
             secret
           </em>