Permalink
Browse files

Mark articles up if only post plugins exist

  • Loading branch information...
1 parent 516dcff commit 32676faf61bb746e50bc6af4f8c880fcececc98f @wlaurance wlaurance committed Sep 15, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/glog.js
View
@@ -217,7 +217,7 @@ Glog.prototype.load_articles = function(options, cb) {
plugins.push(fn.articlePrePlugins[p]);
}
}
- if(fn.articlePostPlugins.length > 1){
+ if(postlength > 1){
if(prelength > 1){
fn.articlePostPlugins[0] = function(result, wcb){
for(var k in result){
@@ -227,6 +227,9 @@ Glog.prototype.load_articles = function(options, cb) {
}
} else {
fn.articlePostPlugins[0] = function(wcb){
+ for(var k in articles){
+ articles[k].body = marked(articles[k].body);
+ }
wcb(null, articles);
};
}

0 comments on commit 32676fa

Please sign in to comment.