We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7818a9c commit 3d0ba3cCopy full SHA for 3d0ba3c
lib/models/post.js
@@ -54,8 +54,8 @@ module.exports = ctx => {
54
Post.virtual('permalink').get(function() {
55
const { config } = ctx;
56
let partial_url = url_for.call(ctx, this.path);
57
- if (config.relative_link) partial_url = `/${partial_url}`;
58
if (config.pretty_urls.trailing_index === false) partial_url = partial_url.replace(/index\.html$/, '');
+ if (config.relative_link) partial_url = `/${partial_url}`;
59
return full_url_for.call(ctx, partial_url.replace(config.root, '/'));
60
});
61
0 commit comments