Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Improve blogpage mobile template
Browse files Browse the repository at this point in the history
Added page title and improved formatting.
Removed unsed blocks and editable tags.
  • Loading branch information
bartromgens committed Apr 9, 2015
1 parent a5cdd7a commit 8c396b4
Showing 1 changed file with 20 additions and 26 deletions.
46 changes: 20 additions & 26 deletions website/templates/mobile/pages/blogpage.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "mobile/base.html" %}
{% load i18n future mezzanine_tags blog_tags keyword_tags disqus_tags %}

{% block meta_title %}{% if page %}{{ page.meta_title }}{% else %}{% trans "Blog" %}{% endif %}{% endblock %}
{% block meta_title %}{% if page %}{{ page.meta_title }}{% endif %}{% endblock %}

{% block meta_keywords %}{% metablock %}
{% keywords_for page as keywords %}
Expand All @@ -16,47 +16,41 @@
{% endmetablock %}{% endblock %}

{% block main %}
<section class="content clearing">

<section class="content clearing">

<p class="pathway"></p>

{% if page_header %}
{% include "elements/page_header_image.html" %}
{% endif %}

{% if page %}
{% block blog_post_list_pagecontent %}
{% if page.get_content_model.content %}
{% editable page.get_content_model.content %}
{{ page.get_content_model.content|richtext_filters|safe }}
{% endeditable %}
{% endif %}
{% endblock %}
<div class="item-page">

<h2>
<a href="{{ page.get_absolute_url }}">{{ page.title }}</a>
</h2>

{% if page.get_content_model.content %}
{{ page.get_content_model.content|richtext_filters|safe }}
{% endif %}


{% for blog_post in blog_posts.object_list %}
<div class="placehere">
{% block blog_post_list_post_title %}
<h2>
<a href="{{ blog_post.get_absolute_url }}">{{ blog_post.title }}</a>
<a href="{{ blog_post.get_absolute_url }}">{{ blog_post.title }}</a>
</h2>
{% endblock %}

{% if settings.BLOG_USE_FEATURED_IMAGE and blog_post.featured_image %}
{% block blog_post_list_post_featured_image %}
<a href="{{ blog_post.get_absolute_url }}">
<img class="img-thumbnail pull-left" src="{{ MEDIA_URL }}{% thumbnail blog_post.featured_image 90 90 %}">
</a>
{% endblock %}
{% endif %}

{% block blog_post_list_post_content %}
{{ blog_post.content|richtext_filters|safe }}

<div class="item-separator"></div>
{% endblock %}
</div> <!-- placehere -->
{% endfor %}

{% pagination_for blog_posts %}

</section> <!-- content -->
</div> <!-- item-page -->

</section> <!-- content -->

{% endblock %}

Expand Down

0 comments on commit 8c396b4

Please sign in to comment.