changeset 13:fbf8f198ef67

template additions
author k0s <k0scist@gmail.com>
date Wed, 07 Oct 2009 17:19:47 -0400
parents dd8c1c8ae0da
children 645aa0f3279f
files bitsyblog/templates/blog.html bitsyblog/templates/navigation.html
diffstat 2 files changed, 25 insertions(+), 2 deletions(-) [+]
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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bitsyblog/templates/navigation.html	Wed Oct 07 17:19:47 2009 -0400
@@ -0,0 +1,11 @@
+<!DOCTYPE html
+    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:py="http://genshi.edgewall.org/"
+      xmlns:xi="http://www.w3.org/2001/XInclude"
+      py:strip="True">
+  <!-- nav bar -->
+
+    
+</html>