Vulcan/packages/nova-posts/lib/client/templates/post_item.js
2016-02-17 14:27:27 +09:00

14 lines
341 B
JavaScript

Template.post_item.helpers({
postClass: function () {
var post = this;
var postClass = "post ";
postClass += "author-"+Telescope.utils.slugify(post.author)+" ";
if (this.sticky) {
postClass += "sticky ";
}
postClass = Telescope.callbacks.run("postClass", postClass, post);
return postClass;
}
});