view bitsyblog/templates/index.html @ 35:7e7fbdc64cc1

enable atom support, this brings us to 2.0
author k0s <k0scist@gmail.com>
date Sun, 01 Nov 2009 13:30:18 -0500
parents 89f5158ef191
children
line wrap: on
line source

<!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">
  <head>
    <title>${site_name}</title>
    <link href="${link(request, 'css/site.css')}" type="text/css" rel="stylesheet" title="Default"/>
    <link rel="alternate" type="application/rss+xml" title="${site_name} RSS" href="${link(request, 'rss')}"/>
    <link rel="alternate" type="application/atom+xml" title="${site_name} Atom" href="${link(request, 'atom')}"/>
  </head>
  <body>
    <xi:include href="navigation.html" />
    
    <h1 py:if="logo"><img src="${logo}" alt="${site_name}"/></h1>

    <div py:for="user in users"
         py:with="blog = blogs[user]; date_format = date_formats[user]"
         class="user" id="${user}">

      <a href="${user_url(request, user)}">${user}</a>

      <div class="navigation"
           py:if="n_links and len(blog) &gt; 1"
           py:with="_n_links = (n_links != -1) and min(n_links,len(blog)) or len(blog)">
        <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">: ${synopsis}</py:if>
          </li>
        </ul>
      </div>

    </div>

  </body>
</html>