Mercurial > hg > bitsyblog
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 30:9be583a7731d | 31:4ac11f7992c6 |
|---|---|
| 10 </head> | 10 </head> |
| 11 <body> | 11 <body> |
| 12 <xi:include href="navigation.html" /> | 12 <xi:include href="navigation.html" /> |
| 13 | 13 |
| 14 <h1 py:if="logo"><img src="${logo}" alt="${site_name}"/></h1> | 14 <h1 py:if="logo"><img src="${logo}" alt="${site_name}"/></h1> |
| 15 | |
| 16 <div py:for="user in users" | |
| 17 py:with="blog = blogs[user]; date_format = date_formats[user]" | |
| 18 class="user" id="${user}"> | |
| 19 | |
| 20 <a href="${user_url(request, user)}">${user}</a> | |
| 21 | |
| 22 <div class="navigation" | |
| 23 py:if="n_links and len(blog) > 1" | |
| 24 py:with="_n_links = (n_links != -1) and min(n_links,len(blog)) or len(blog)"> | |
| 25 <ul> | |
| 26 <li py:for="index in range(_n_links)" | |
| 27 py:with="synopsis = blog[index].title()"> | |
| 28 <a href="#${blog[index].datestamp()}">${blog[index].date.strftime(date_format)}</a><py:if test="synopsis">: ${synopsis}</py:if> | |
| 29 </li> | |
| 30 </ul> | |
| 31 </div> | |
| 32 | |
| 33 </div> | |
| 34 | |
| 15 </body> | 35 </body> |
| 16 </html> | 36 </html> |
