make blog as raw content
This commit is contained in:
parent
cb6cf710bb
commit
37db223329
@ -61,6 +61,7 @@ div.web-footer {
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
div.web-footer, div.web-footer a {
|
div.web-footer, div.web-footer a {
|
||||||
|
font-size: 90%;
|
||||||
color: #{{ get_hex_shade(doc.background_color or "ffffff", 70) }};
|
color: #{{ get_hex_shade(doc.background_color or "ffffff", 70) }};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,13 +57,12 @@ def generate():
|
|||||||
|
|
||||||
items = ''
|
items = ''
|
||||||
blog_list = webnotes.conn.sql("""\
|
blog_list = webnotes.conn.sql("""\
|
||||||
select page_name as name, modified, creation, title from `tabBlog Post`
|
select page_name as name, modified, creation, title, content from `tabBlog Post`
|
||||||
where ifnull(published,0)=1
|
where ifnull(published,0)=1
|
||||||
order by creation desc, modified desc, name asc limit 20""", as_dict=1)
|
order by creation desc, modified desc, name asc limit 20""", as_dict=1)
|
||||||
|
|
||||||
for blog in blog_list:
|
for blog in blog_list:
|
||||||
blog.link = host + '/' + blog.name + '.html'
|
blog.link = host + '/' + blog.name + '.html'
|
||||||
blog.content = get_blog_content(blog.name)
|
|
||||||
|
|
||||||
items += rss_item % blog
|
items += rss_item % blog
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
.layout-wrapper {
|
.layout-wrapper {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
color: #333;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
box-shadow: 1px 1px 3px 3px #ccc;
|
box-shadow: 1px 1px 3px 3px #ccc;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user