fix blog page

This commit is contained in:
Anand Doshi 2012-05-10 15:44:36 +05:30
parent 3fa25faca2
commit 4b1a44f4a7

View File

@ -25,7 +25,7 @@ pscript['onload_{{ doc.name }}'] = function(wrapper) {
where ifnull(published,0)=1 and name!="{{ doc.name }}" order by modified desc', where ifnull(published,0)=1 and name!="{{ doc.name }}" order by modified desc',
hide_refresh: true, hide_refresh: true,
render_row: function(parent, data) { render_row: function(parent, data) {
console.log(data); //console.log(data);
if(data.content && data.content.length==100) data.content += '...'; if(data.content && data.content.length==100) data.content += '...';
parent.innerHTML = repl('<a href="%(name)s.html">%(title)s</a>\ parent.innerHTML = repl('<a href="%(name)s.html">%(title)s</a>\
<div class="comment">%(content)s</div><br>', data); <div class="comment">%(content)s</div><br>', data);