diff options
Diffstat (limited to 'quoins/templates/index.html')
-rw-r--r-- | quoins/templates/index.html | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/quoins/templates/index.html b/quoins/templates/index.html new file mode 100644 index 0000000..0935c20 --- /dev/null +++ b/quoins/templates/index.html | |||
@@ -0,0 +1,71 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
3 | <html xmlns="http://www.w3.org/1999/xhtml" | ||
4 | xmlns:xi="http://www.w3.org/2001/XInclude" | ||
5 | xmlns:py="http://genshi.edgewall.org/"> | ||
6 | <xi:include href="master.html" /> | ||
7 | <xi:include href="blog-master.html" /> | ||
8 | |||
9 | <head> | ||
10 | <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> | ||
11 | <link rel="alternate" type="application/rss+xml" title="${blog.title}" href="${quoins.url('/feed/rss2_0')}" /> | ||
12 | <title>${blog.title}</title> | ||
13 | </head> | ||
14 | |||
15 | |||
16 | <body> | ||
17 | |||
18 | <div id="main" > | ||
19 | <div id="blog-content"> | ||
20 | |||
21 | <div class="blog-post" py:for="post in posts"> | ||
22 | <div class="blog-post-head"> | ||
23 | <h3><a title="Permanent link to ${post.title}" | ||
24 | href="${quoins.url('/post/%s'%post.id)}"> | ||
25 | ${post.title}</a> | ||
26 | </h3> | ||
27 | <p class="dateline"> | ||
28 | Posted by | ||
29 | <a href="${quoins.url('/author/%s'%post.author.user_name)}"> | ||
30 | ${post.author.display_name} | ||
31 | </a> | ||
32 | on ${post.created.strftime('%B %d, %Y at %I:%M %p')} | ||
33 | </p> | ||
34 | </div> <!-- blog-post-head --> | ||
35 | |||
36 | <div class="blog-post-content" | ||
37 | py:content="quoins.get_html(post.short_body)" /> | ||
38 | |||
39 | <div class="blog-post-comments"> | ||
40 | <a href="${quoins.url('/post/%s#comments'%post.id)}"> | ||
41 | ${len(post.approved_comments)} | ||
42 | <span py:if="len(post.approved_comments)==1">comment</span> | ||
43 | <span py:if="len(post.approved_comments)!=1">comments</span> | ||
44 | </a> | ||
45 | |||
46 | </div> <!-- blog-post-comments --> | ||
47 | |||
48 | <div class="blog-post-foot"> | ||
49 | <div class="tags" py:if="post.tags"> | ||
50 | <span id="tags-label">Tags:</span> | ||
51 | <span id="tag" py:for="tag in post.tags"> | ||
52 | <a title="Search for posts tagged ${tag.name}" | ||
53 | href="${quoins.url('/tag/%s'%tag.name)}">${tag.name}</a> </span> | ||
54 | </div> | ||
55 | </div> | ||
56 | |||
57 | </div> <!-- blog-post --> | ||
58 | |||
59 | <div class="blog-paginate"> | ||
60 | <span py:if="prev is not None"> | ||
61 | <a href="?start=${prev}">Previous five posts</a> | ||
62 | </span> | ||
63 | <span py:if="next is not None"> | ||
64 | <a href="?start=${next}">Next five posts</a> | ||
65 | </span> | ||
66 | </div> <!-- blog-paginate --> | ||
67 | </div> <!-- blog-content --> | ||
68 | </div> <!-- main --> | ||
69 | |||
70 | </body> | ||
71 | </html> | ||