Skip to content

Commit

Permalink
Update post.js (#2668)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahDragon authored Jul 27, 2017
1 parent 8c11ca6 commit e2b81fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/models/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ module.exports = function(ctx) {
});

Post.virtual('permalink').get(function() {
var url_for = ctx.extend.helper.get('url_for');
var self = _.assign({}, ctx.extend.helper.list(), ctx);
var config = ctx.config;
var partial_url = url_for.call(ctx, this.path);
var partial_url = self.url_for(this.path);
return config.url + _.replace(partial_url, config.root, '/');
});

Expand Down

0 comments on commit e2b81fa

Please sign in to comment.