mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
14 lines
341 B
JavaScript
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;
|
|
}
|
|
});
|