diff --git a/blogs/templates/blogs/themes/default/base.html b/blogs/templates/blogs/themes/default/base.html index 644b27b..00bec27 100644 --- a/blogs/templates/blogs/themes/default/base.html +++ b/blogs/templates/blogs/themes/default/base.html @@ -14,52 +14,6 @@ window.blog_post = true; {% endblock %} -{% block sub-header %} -
-
- -
-
-{% endblock %} -{% block aside %} - {% if not detail %} - - {% endif %} -{% endblock %} - {% block header %}
@@ -77,3 +31,46 @@
{% endblock %} +{% block sub-header %} +
+
+ +
+
+{% endblock %} +{% block aside %} + +{% endblock %} diff --git a/blogs/templates/blogs/themes/default/post.html b/blogs/templates/blogs/themes/default/post.html index d174434..4237c89 100644 --- a/blogs/templates/blogs/themes/default/post.html +++ b/blogs/templates/blogs/themes/default/post.html @@ -1,7 +1,7 @@ {% extends "blogs/themes/default/base.html" %} -{% block html-class %}detail blog-site blog-detail{% endblock %} -{% block body-class %}detail blog-site blog-detail{% endblock %} +{% block html-class %}blog-site blog-detail{% endblock %} +{% block body-class %}blog-site blog-detail{% endblock %} {% block js %} {{ block.super }} diff --git a/blogs/views.py b/blogs/views.py index 2b3e8b7..05dd148 100644 --- a/blogs/views.py +++ b/blogs/views.py @@ -41,11 +41,16 @@ def blog_post(request, username_or_custom_slug): slug=username_or_custom_slug, ) + sidebar = get_object_or_None(Snipt, + user=request.blog_user, + title='Blog Sidebar') + context = { 'blog_user': request.blog_user, 'detail': True, 'has_snipts': True, 'public': True, + 'sidebar': sidebar, 'snipt': snipt, } diff --git a/media/css/blog-themes/default/style.css b/media/css/blog-themes/default/style.css index 54c232e..29b87d2 100644 --- a/media/css/blog-themes/default/style.css +++ b/media/css/blog-themes/default/style.css @@ -1,5 +1,5 @@ body.blog-site article.snipt div.group div.container { - width: 708px; + width: 718px; } body.blog-site article.snipt div.group div.container header { min-height: 0; @@ -78,12 +78,21 @@ body.blog-site header.sub div.inner { z-index: 51; } +body.blog-detail section.main div.inner { + width: 718px; +} +body.blog-detail section.main div.inner section.snipts article.snipt { + margin-bottom: 0; +} body.blog-detail section.main div.inner section.snipts article.snipt div.container { - width: 939px; + width: 100%; +} +body.blog-detail section.main div.inner section.snipts article.snipt div.container section.code { + height: auto; } body.blog-detail div#disqus_thread { - width: 925px; + width: 704px; } -body.blog-detail header.sub div.inner ul.bcrumb { - width: 923px; +body.blog-detail div#disqus_thread #dsq-content { + margin-top: -38px; } diff --git a/media/css/blog-themes/default/style.scss b/media/css/blog-themes/default/style.scss index d77ca4d..79ac830 100644 --- a/media/css/blog-themes/default/style.scss +++ b/media/css/blog-themes/default/style.scss @@ -4,7 +4,7 @@ body.blog-site { article.snipt { div.group { div.container { - width: 708px; + width: 718px; header { min-height: 0; @@ -114,23 +114,28 @@ body.blog-site { body.blog-detail { section.main { div.inner { + width: 718px; + section.snipts { article.snipt { + margin-bottom: 0; + div.container { - width: 939px; + width: 100%; + + section.code { + height: auto; + } } } } } } div#disqus_thread { - width: 925px; - } - header.sub { - div.inner { - ul.bcrumb { - width: 923px; - } + width: 704px; + + #dsq-content { + margin-top: -38px; } } }