Blogs
parent
126c9a17c0
commit
c5e68e518f
|
@ -46,7 +46,7 @@
|
|||
{% endif %}
|
||||
</a>
|
||||
</h1>
|
||||
{% if has_posts %}
|
||||
{% if has_snipts %}
|
||||
<h2 class="blog-title">
|
||||
» <a href="/blog/">Blog</a>
|
||||
</h2>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -146,6 +146,9 @@ body {
|
|||
margin-bottom: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
div.empty-snipts {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
body.blog-homepage {
|
||||
padding-bottom: 39px;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue