show all blogposts.

This commit is contained in:
Aditi 2013-08-07 19:44:36 +05:30
parent d6a456b5b4
commit 2e9f60d264
2 changed files with 5 additions and 6 deletions

View File

@ -31,19 +31,18 @@
</style> </style>
{%- endblock %} {%- endblock %}
{% block mediagoblin_content %} {% block mediagoblin_content %}
<div class="b_list_owner"> <h1><font color="black"> {{ blog_owner }} 's Blog</font></h1></div> <div class="b_list_owner"> <h1><font color="black"> {{ blog_owner }} 's Blog</font></h1></div>
<div> <div>
{% for post in blog_posts[0:9] %} {% for post in blog_posts %}
<div class="b_listing_title"><a href="{{ post.url_for_self(request.urlgen) }}"> <div class="b_listing_title"><a href="{{ post.url_for_self(request.urlgen) }}">
<h2><font color="black">{{ post.title }}</font></h2></a> <h2><font color="black">{{ post.title }}</font></h2></a>
</div> </div>
<h3>{{ post.created.strftime("%d %b, %Y") }}</h3> <h3>{{ post.created.strftime("%d %b, %Y") }}</h3>
<div class="b_list_des"> <p>{{ post.description|safe }} </p></div> <div class="b_list_des"> <p>{{ post.description|safe }} </p></div>
</br>
</br>
{% endfor %} {% endfor %}
</div> </div>
{% endblock %} {% endblock %}