added blog settings and metadata

This commit is contained in:
Rushabh Mehta
2013-03-11 17:57:57 +05:30
parent bbbceb617c
commit b33693db35
12 changed files with 74 additions and 26 deletions

View File

@@ -19,6 +19,9 @@
<link rel="icon" href="app/images/favicon.ico" type="image/x-icon">
{% endif %}
{% if description %}
<meta name="description" content="{{ description }}">
{% endif %}
{% block header %}
{% endblock %}

View File

@@ -9,14 +9,17 @@
{% endblock %}
{% block content %}
<div class="span12">
<h2>{{ title }}</h2>
<div class="span12" itemscope itemtype="http://schema.org/BlogPost">
<h2 itemprop="name headline">{{ title }}</h2>
<!-- begin blog content -->
<div class="help" style="color: #aaa">
{{ blogger_info and blogger_info.full_name or full_name }} / {{ updated }}</div>
<span itemprop="author">{{ blogger_info and blogger_info.full_name or full_name }}</span> /
<span itemprop="dateCreated">{{ updated }}</span></div>
<br>
<div itemprop="articleBody">
{{ content_html }}
</div>
<!-- end blog content -->
{% if blogger_info %}
<hr />

View File

@@ -1,7 +1,7 @@
<div class="row">
<div class="span2">
<div class="avatar avatar-large">
<img src="{{ blogger_info.avatar }}" />
<img itemprop="thumbnailUrl" src="{{ blogger_info.avatar }}" />
</div>
</div>
<div class="span10">

View File

@@ -3,12 +3,15 @@
it is to be included in the blog/blog.html template
#}
{% for comment in comment_list %}
<div class="comment-row">
<div class="comment-title">
{{ comment.comment_by_fullname }} - {{ comment.comment_date }}:
<div itemscope itemtype="http://schema.org/UserComments">
{% for comment in comment_list %}
<div class="comment-row">
<div class="comment-title">
<span itemprop="name" class="author">{{ comment.comment_by_fullname }}</span> /
<span itemprop="commentTime">{{ comment.comment_date }}</span>:
</div>
<p class="comment-content" itemprop="commentText">{{ comment.comment }}</p>
<hr>
</div>
<p class="comment-content">{{ comment.comment }}</p>
<hr>
</div>
{% endfor %}
{% endfor %}
</div>