From ca2c1daaeaf46c1df85f499d4322ca3541fd31c7 Mon Sep 17 00:00:00 2001 From: zhifu Date: Fri, 15 Nov 2024 11:10:29 +0800 Subject: [PATCH] compiler: stand createAt and updateAt --- vdoing/node_utils/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vdoing/node_utils/index.js b/vdoing/node_utils/index.js index 0ebfcd06..7c3aa2af 100644 --- a/vdoing/node_utils/index.js +++ b/vdoing/node_utils/index.js @@ -181,6 +181,12 @@ function handlerReadmeFile(filePath){ directoryPath = matterData.permalink if(!directoryPath){ directoryPath = getPermalink(filePath) + if (matterData.createAt) { + matterData.createAt = getReallyContent(matterData.createAt); + } + if (matterData.updateAt) { + matterData.updateAt = getReallyContent(matterData.updateAt); + } matterData.permalink = directoryPath // 不存在permalink // 需要改动下readme的内容