Add Encounters

Automatically determine "last modified" date
Expand Languages
This commit is contained in:
2023-06-26 16:42:24 -04:00
parent 5abf44368d
commit e7cb4763be
20 changed files with 482 additions and 309 deletions

View File

@@ -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,