-
Notifications
You must be signed in to change notification settings - Fork 2
/
listing.html
52 lines (51 loc) · 1.72 KB
/
listing.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{% extends "base.html" %}
{% block title %}{{config.blog_name}}{% endblock %}
{% block body %}
{% for post in posts %}
<div class="post">
<div class="right">
<h2><a href="{{config.url_prefix}}{{post.path}}">{{post.title|escape}}</a></h2>
<p class="post-info">
{% if post.tags %}
Filed under
{% for tag in post.tag_pairs %}
<a href="{{config.url_prefix}}/tag/{{tag.1|escape}}">{{tag.0|escape}}</a>{% if not forloop.last %},{% endif %}
{% endfor %}
{% endif %}
</p>
{{post.summary}}
<p class="postmeta">
<a href="{{config.url_prefix}}{{post.path}}" class="readmore">Read more</a>
{% if config.disqus_forum %} |
<a href="{{config.url_prefix}}{{post.path}}#disqus_thread" class="readmore">Comments</a>
{% endif %}
</p>
</div><!-- right-->
<div class="left">
{% include "post_meta.html" %}
</div><!-- left -->
</div><!-- post -->
{% endfor %}
{% if prev_page %}
<a id="prev" href="{{config.url_prefix}}{{prev_page}}">Newer</a>
{% endif %}
{% if next_page %}
<a id="next" href="{{config.url_prefix}}{{next_page}}">Older</a>
{% endif %}
{% if config.disqus_forum %}
<script type="text/javascript">
//<![CDATA[
(function() {
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links[i].href.indexOf('#disqus_thread') >= 0) {
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
}
}
document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/{{config.disqus_forum}}/get_num_replies.js' + query + '"></' + 'script>');
})();
//]]>
</script>
{% endif %}
{% endblock %}