Add link to post data
This commit is contained in:
parent
e642c81472
commit
8121a1917b
|
@ -43,6 +43,7 @@ function compile(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
|
||||||
};
|
};
|
||||||
|
|
||||||
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