2014-07-05 11:42:28 +09:00
|
|
|
Template[getTemplate('post_page')].helpers({
|
|
|
|
post_item: function () {
|
|
|
|
return getTemplate('post_item');
|
|
|
|
},
|
2014-07-05 16:29:10 +09:00
|
|
|
post_body: function () {
|
|
|
|
return getTemplate('post_body');
|
|
|
|
},
|
2014-07-05 11:42:28 +09:00
|
|
|
comment_form: function () {
|
|
|
|
return getTemplate('comment_form');
|
|
|
|
},
|
|
|
|
comment_list: function () {
|
|
|
|
return getTemplate('comment_list');
|
|
|
|
}
|
2014-09-16 15:18:27 -04:00
|
|
|
});
|
2014-07-05 11:42:28 +09:00
|
|
|
|
2014-07-05 11:24:28 +09:00
|
|
|
Template[getTemplate('post_page')].rendered = function(){
|
2014-08-28 11:10:31 +09:00
|
|
|
$('body').scrollTop(0);
|
2014-05-01 13:10:34 -07:00
|
|
|
if(this.data) // XXX
|
2014-06-15 15:06:31 +03:00
|
|
|
document.title = $(".post-title").text();
|
2014-09-16 15:18:27 -04:00
|
|
|
};
|