added blog settings and metadata
diff --git a/website/templates/html/base.html b/website/templates/html/base.html
index fa01f8a..2719f8d 100644
--- a/website/templates/html/base.html
+++ b/website/templates/html/base.html
@@ -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 %}
diff --git a/website/templates/html/blog_page.html b/website/templates/html/blog_page.html
index e605a12..270d427 100644
--- a/website/templates/html/blog_page.html
+++ b/website/templates/html/blog_page.html
@@ -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 />
diff --git a/website/templates/html/blogger.html b/website/templates/html/blogger.html
index eab371e..e18f86a 100644
--- a/website/templates/html/blogger.html
+++ b/website/templates/html/blogger.html
@@ -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">
diff --git a/website/templates/html/comment.html b/website/templates/html/comment.html
index 1323e09..27baaad 100644
--- a/website/templates/html/comment.html
+++ b/website/templates/html/comment.html
@@ -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 %}
\ No newline at end of file
+ {% endfor %}
+</div>
\ No newline at end of file
diff --git a/website/templates/js/blog.js b/website/templates/js/blog.js
index 91d3ead..61e1b65 100644
--- a/website/templates/js/blog.js
+++ b/website/templates/js/blog.js
@@ -25,11 +25,11 @@
})
if(get_url_arg("by_name")) {
- $("#blog-title").html("Posts by " + get_url_arg("by_name"));
+ $("#blot-subtitle").html("Posts by " + get_url_arg("by_name")).toggle(true);
}
if(get_url_arg("category")) {
- $("#blog-title").html("Posts filed under " + get_url_arg("category"));
+ $("#blot-subtitle").html("Posts filed under " + get_url_arg("category")).toggle(true);
}
});
diff --git a/website/templates/pages/blog.html b/website/templates/pages/blog.html
index cfdd536..df258e1 100644
--- a/website/templates/pages/blog.html
+++ b/website/templates/pages/blog.html
@@ -12,7 +12,11 @@
{% block content %}
<div class="span12">
- <h2 id="blog-title">Blog</h2>
+ <h2 id="blog-title">{{ blog_title }}</h2>
+ {% if blog_introduction %}
+ <p>{{ blog_introduction }}</p>
+ {% endif %}
+ <h3 id="blot-subtitle" style="display:none;"></h3>
<br>
<div class="progress progress-striped active">
<div class="bar" style="width: 100%;"></div>
diff --git a/website/templates/pages/writers.html b/website/templates/pages/writers.html
index 0ae8549..bba3749 100644
--- a/website/templates/pages/writers.html
+++ b/website/templates/pages/writers.html
@@ -5,6 +5,9 @@
{% block content %}
<div class="span12">
<h2 id="blog-title">Blog Writers</h2>
+ {% if writers_introduction %}
+ <p>{{ writers_introduction }}</p>
+ {% endif %}
<hr>
{% for blogger_info in bloggers %}
{% include "html/blogger.html" %}