master
Nick Sergeant 2012-06-01 21:10:49 -04:00
parent 126c9a17c0
commit c5e68e518f
5 changed files with 11 additions and 5 deletions

View File

@ -46,7 +46,7 @@
{% endif %}
</a>
</h1>
{% if has_posts %}
{% if has_snipts %}
<h2 class="blog-title">
&raquo; <a href="/blog/">Blog</a>
</h2>

View File

@ -20,7 +20,7 @@
</div>
{% endfor %}
{% paginate %}
{% if single_blog_post %}
{% if detail %}
{% with snipts.0 as snipt %}
<div id="disqus_thread"></div>
<script type="text/javascript">

View File

@ -30,7 +30,7 @@ def blog_list(request, username_or_custom_slug=None):
context = {
'blog_user': request.blog_user,
'has_posts': True,
'has_snipts': True,
'snipts': snipts,
}
@ -51,8 +51,8 @@ def blog_post(request, username_or_custom_slug):
context = {
'blog_user': request.blog_user,
'has_posts': True,
'single_blog_post': True,
'has_snipts': True,
'detail': True,
'snipts': snipts,
}

View File

@ -146,6 +146,9 @@ body {
margin-bottom: 60px;
text-align: center;
}
div.empty-snipts {
margin-top: 20px;
}
}
body.blog-homepage {
padding-bottom: 39px;

View File

@ -84,6 +84,9 @@ body div.pagination {
margin-bottom: 60px;
text-align: center;
}
body div.empty-snipts {
margin-top: 20px;
}
body.blog-homepage {
padding-bottom: 39px;