Add Encounters
Automatically determine "last modified" date Expand Languages
This commit is contained in:
@@ -88,6 +88,7 @@ module.exports = async (config) => {
|
||||
filePath = path.join(pagePath, file),
|
||||
// read page file
|
||||
data = fse.readFileSync(filePath, "utf-8"),
|
||||
info = fse.statSync(filePath, "utf-8"),
|
||||
// render page
|
||||
{ attributes, body } = frontMatter(data),
|
||||
{ content_type: contentType, tags: originalTags = [] } =
|
||||
@@ -123,6 +124,7 @@ module.exports = async (config) => {
|
||||
page: {
|
||||
name,
|
||||
...attributes,
|
||||
date_upd: attributes?.date_pub !== info.mtime ? info.mtime : '',
|
||||
body: updatedBody,
|
||||
destPath,
|
||||
filePath,
|
||||
|
Reference in New Issue
Block a user