Fix wrong link in rendered posts
This commit is contained in:
parent
96ddc6ef72
commit
188e38ad9d
|
@ -52,7 +52,7 @@ function compilePost(filepath, data, fileData, callback) {
|
||||||
filename: metadata.filename,
|
filename: metadata.filename,
|
||||||
title: frontMatter.attributes.title,
|
title: frontMatter.attributes.title,
|
||||||
summary: frontMatter.attributes.summary,
|
summary: frontMatter.attributes.summary,
|
||||||
link: config.baseURL + '/blog/post/' + metadata.filename
|
link: config.baseURL + '/post/' + metadata.filename
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderedpath = path.join(process.cwd(), config.renderPath, `${metadata.filename}.html`);
|
const renderedpath = path.join(process.cwd(), config.renderPath, `${metadata.filename}.html`);
|
||||||
|
|
Loading…
Reference in New Issue