Mercurial > hg > bitsyblog
comparison bitsyblog/templates/blog.html @ 13:fbf8f198ef67
template additions
author | k0s <k0scist@gmail.com> |
---|---|
date | Wed, 07 Oct 2009 17:19:47 -0400 |
parents | ebe8dc33c871 |
children | 36698624435b |
comparison
equal
deleted
inserted
replaced
12:dd8c1c8ae0da | 13:fbf8f198ef67 |
---|---|
7 | 7 |
8 <head> | 8 <head> |
9 <title>${user} - ${site_name}</title> | 9 <title>${user} - ${site_name}</title> |
10 | 10 |
11 <py:for each="index, sheet in stylesheets"> | 11 <py:for each="index, sheet in stylesheets"> |
12 <link /> | 12 <link href="${link(request, ('css', sheet)" |
13 type="text/css" | |
14 rel="${index and 'alternate stylesheet' or 'stylesheet'}" | |
15 title="sheet.rsplit('.', 1)[0]"/> | |
13 </py:for> | 16 </py:for> |
14 | 17 |
15 </head> | 18 </head> |
16 | 19 |
17 <body> | 20 <body> |
21 | |
22 <!-- nav links --> | |
18 <xi:include href="navigation.html"> | 23 <xi:include href="navigation.html"> |
19 | 24 |
25 <div py:if="n_links == 0 or not len(blog)" class="navigation"> | |
26 <ul> | |
27 | |
28 </ul> | |
29 </div> | |
30 | |
31 <!-- blog entries --> | |
20 <div py:for="entry in blog" | 32 <div py:for="entry in blog" |
21 id="${entry.datestamp()}" class="blog-entry"> | 33 id="${entry.datestamp()}" class="blog-entry"> |
22 <a name="${entry.datestamp()}" /> | 34 <a name="${entry.datestamp()}" /> |
23 | 35 |
24 <div class="subject"> | 36 <div class="subject"> |
25 <a href="TODO">${subject}</a> | 37 <a href="${'foo'}">${subject}</a> |
26 <em py:if="entry.privacy == secret and role == 'friend'"> | 38 <em py:if="entry.privacy == secret and role == 'friend'"> |
27 secret | 39 secret |
28 </em> | 40 </em> |
29 </div> | 41 </div> |
30 | 42 |