diff --git a/addons/website_blog/controllers/main.py b/addons/website_blog/controllers/main.py
index a18505fb0f5..bd1f2c8f16f 100644
--- a/addons/website_blog/controllers/main.py
+++ b/addons/website_blog/controllers/main.py
@@ -265,3 +265,17 @@ class WebsiteBlog(http.Controller):
create_context = dict(context, mail_create_nosubscribe=True)
new_blog_post_id = request.registry['blog.post'].copy(cr, uid, blog_post_id, {}, context=create_context)
return werkzeug.utils.redirect("/blogpost/%s/?enable_editor=1" % new_blog_post_id)
+
+ @http.route('/blog_post/post', type='json', auth="public", website=True)
+ def getPost(self, blog=None, **post):
+ blog = request.registry.get('blog.post').browse(request.cr, SUPERUSER_ID, int(blog))
+ values = {
+ "image": "data:image/png;base64,%s" % blog.content_image,
+ "date": blog.create_date ,
+ "author": blog.create_uid.name,
+ "title": blog.name,
+ "title_secondary": "It's not too hard, really.",
+ "content": blog.content,
+ }
+ return [values]
+
diff --git a/addons/website_blog/views/website_blog_templates.xml b/addons/website_blog/views/website_blog_templates.xml
index 31fceafe4df..ce087c1df87 100644
--- a/addons/website_blog/views/website_blog_templates.xml
+++ b/addons/website_blog/views/website_blog_templates.xml
@@ -7,6 +7,7 @@
+
@@ -134,208 +135,182 @@
-
-
- By
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- Visit
-
-
-
-
-
-
-
-
--
-
-
-
-
-
-
-
+
+
+
+
+ Read Next
+
+
+
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- blog_cover
- background : url('data:image/png;base64,#{blog_post.content_image}') center center no-repeat;
- background : #34495E;
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
- Published on
- Last Modified on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- By
-
-
+
+
+
+
+
+
-
-
- In
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -345,116 +320,116 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- on -
- ++ Published by +
+ + + +-
-
-
-
-
-
-- WRITTEN BY -
- PUBLISHED IN -
- -
-
-
-
-Tags
--
- -
-
-
-
-
-Archives
--
- -
-
-
-
-
-About us
-- Write a small text here for when new visitors find your website - through your blog entries, referenced in Google. -
-Follow us:
-- Participate on our social stream. -
-- - - - - - -
-Our Blogs
--
- -
-
-
-
-
-
-
-