diff bitsyblog/templates/blog.html @ 17:e5cbc53cacf8

now have stylesheets
author k0s <k0scist@gmail.com>
date Sun, 25 Oct 2009 18:35:48 -0400
parents 2bd6b2b543dc
children 7505329b3134
line wrap: on
line diff
--- a/bitsyblog/templates/blog.html	Sun Oct 25 18:11:25 2009 -0400
+++ b/bitsyblog/templates/blog.html	Sun Oct 25 18:35:48 2009 -0400
@@ -8,11 +8,11 @@
   <head>
     <title>${user} - ${site_name}</title>
 
-    <py:for each="index, sheet in enumerate(stylesheets)">
-      <link href="${link(request, ('css', sheet))}"
+    <py:for each="index, (href, sheet) in enumerate(stylesheets)">
+      <link href="${href}"
             type="text/css" 
             rel="${index and 'alternate stylesheet' or 'stylesheet'}"
-            title="sheet.rsplit('.', 1)[0]"/>
+            title="${sheet}"/>
     </py:for>
 
   </head>
@@ -28,7 +28,7 @@
       <ul>
         <li py:for="index in range(_n_links)"
             py:with="synopsis = blog[index].title()">
-          <a href="#${blog[index].datestamp()}">${blog[index].date.strftime(date_format)}</a><py:if test="synopsis">: ${escape(synopsis)}</py:if>
+          <a href="#${blog[index].datestamp()}">${blog[index].date.strftime(date_format)}</a><py:if test="synopsis">: ${synopsis}</py:if>
         </li>
       </ul>
       <a py:if="_n_links != len(blog)" href="${request.path}?n=all">more</a>