annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
1 <!DOCTYPE html
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml"
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
5 xmlns:py="http://genshi.edgewall.org/"
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
6 xmlns:xi="http://www.w3.org/2001/XInclude">
8
67c2ccaef869 adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff changeset
7 <head>
20
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
8 <title>${site_name}</title>
30
9be583a7731d improvement of css and index
k0s <k0scist@gmail.com>
parents: 20
diff changeset
9 <link href="${link(request, 'css/site.css')}" type="text/css" rel="stylesheet" title="Default"/>
35
7e7fbdc64cc1 enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents: 33
diff changeset
10 <link rel="alternate" type="application/rss+xml" title="${site_name} RSS" href="${link(request, 'rss')}"/>
7e7fbdc64cc1 enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents: 33
diff changeset
11 <link rel="alternate" type="application/atom+xml" title="${site_name} Atom" href="${link(request, 'atom')}"/>
8
67c2ccaef869 adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff changeset
12 </head>
67c2ccaef869 adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff changeset
13 <body>
20
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
14 <xi:include href="navigation.html" />
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
15
1554cb56aa2f got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents: 8
diff changeset
16 <h1 py:if="logo"><img src="${logo}" alt="${site_name}"/></h1>
31
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
17
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
18 <div py:for="user in users"
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
19 py:with="blog = blogs[user]; date_format = date_formats[user]"
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
20 class="user" id="${user}">
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
21
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
22 <a href="${user_url(request, user)}">${user}</a>
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
23
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
24 <div class="navigation"
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
25 py:if="n_links and len(blog) &gt; 1"
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
26 py:with="_n_links = (n_links != -1) and min(n_links,len(blog)) or len(blog)">
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
27 <ul>
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
28 <li py:for="index in range(_n_links)"
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
29 py:with="synopsis = blog[index].title()">
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
30 <a href="#${blog[index].datestamp()}">${blog[index].date.strftime(date_format)}</a><py:if test="synopsis">: ${synopsis}</py:if>
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
31 </li>
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
32 </ul>
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
33 </div>
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
34
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
35 </div>
4ac11f7992c6 index page now works and so does rss
k0s <k0scist@gmail.com>
parents: 30
diff changeset
36
8
67c2ccaef869 adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff changeset
37 </body>
67c2ccaef869 adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff changeset
38 </html>