Skip to content

Commit

Permalink
Update post.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahDragon committed Jul 26, 2017
1 parent 8c11ca6 commit 10c8243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/models/post.js
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 10c8243

Please sign in to comment.