added patch
diff --git a/erpnext/patches/june_2012/cms2.py b/erpnext/patches/june_2012/cms2.py
new file mode 100644
index 0000000..fb9c72c
--- /dev/null
+++ b/erpnext/patches/june_2012/cms2.py
@@ -0,0 +1,11 @@
+def execute():
+ import webnotes
+ from webnotes.model.doclist import DocList
+ import webnotes.model.sync
+
+ # sync web page doctype
+ webnotes.model.sync.sync('website', 'web_page')
+
+ # save all web pages to create content
+ for p in webnotes.conn.sql("""select name from `tabWeb Page` where docstatus=0"""):
+ DocList('Web Page', p[0]).save()
\ No newline at end of file
diff --git a/erpnext/website/templates/blog.html b/erpnext/website/templates/blog.html
index 30dbd3b..d0b9a13 100644
--- a/erpnext/website/templates/blog.html
+++ b/erpnext/website/templates/blog.html
@@ -1,4 +1,7 @@
-{% extends "index.html" %}
+{% extends "outer.html" %}
+
+{% block title %}{{ title }}{% endblock %}
+
{% block content %}
<div class="layout-wrapper layout-wrapper-background">
@@ -28,7 +31,9 @@
</div>
<script>
-wrapper.blog_list = new wn.ui.Listing({
+
+// if not a specific blog, show listing
+erpnext.blog_list = new wn.ui.Listing({
parent: $(wrapper).find('#blog-list').get(0),
query: 'select tabBlog.name, title, left(content, 1000) as content, tabBlog.creation, \
ifnull(first_name, "") as first_name, ifnull(last_name, "") as last_name \
@@ -49,5 +54,5 @@
},
page_length: 10
});
-wrapper.blog_list.run();
+erpnext.blog_list.run();
</script>
\ No newline at end of file