Permalink
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (51 sloc) 1.72 KB
{% 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 %}