Mercurial > hg > bitsyblog
annotate bitsyblog/templates/index.html @ 31:4ac11f7992c6
index page now works and so does rss
author | k0s <k0scist@gmail.com> |
---|---|
date | Sun, 01 Nov 2009 01:28:23 -0400 |
parents | 9be583a7731d |
children | 89f5158ef191 |
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 | 9 <link href="${link(request, 'css/site.css')}" type="text/css" rel="stylesheet" title="Default"/> |
8
67c2ccaef869
adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
10 </head> |
67c2ccaef869
adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
11 <body> |
20
1554cb56aa2f
got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents:
8
diff
changeset
|
12 <xi:include href="navigation.html" /> |
1554cb56aa2f
got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents:
8
diff
changeset
|
13 |
1554cb56aa2f
got index working, just doesnt do anything
k0s <k0scist@gmail.com>
parents:
8
diff
changeset
|
14 <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
|
15 |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
16 <div py:for="user in users" |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
17 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
|
18 class="user" id="${user}"> |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
19 |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
20 <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
|
21 |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
22 <div class="navigation" |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
23 py:if="n_links and len(blog) > 1" |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
24 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
|
25 <ul> |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
26 <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
|
27 py:with="synopsis = blog[index].title()"> |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
28 <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
|
29 </li> |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
30 </ul> |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
31 </div> |
4ac11f7992c6
index page now works and so does rss
k0s <k0scist@gmail.com>
parents:
30
diff
changeset
|
32 |
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 |
8
67c2ccaef869
adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
35 </body> |
67c2ccaef869
adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
36 </html> |