Skip to content

Commit 2345902

Browse files
authoredDec 20, 2021
feat(plugin-last-updated): inject lastUpdatedTimestamp to $page (#1778)
* Add $page.lastUpdatedTstamp * Update index.js
1 parent 6c8f6a2 commit 2345902

File tree

1 file changed

+1
-0
lines changed
  • packages/@vuepress/plugin-last-updated

1 file changed

+1
-0
lines changed
 

‎packages/@vuepress/plugin-last-updated/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = (options = {}, context) => ({
1111
? transformer(timestamp, $lang)
1212
: defaultTransformer(timestamp, $lang, dateOptions)
1313
$page.lastUpdated = lastUpdated
14+
$page.lastUpdatedTimestamp = timestamp
1415
}
1516
}
1617
})

0 commit comments

Comments
 (0)
Please sign in to comment.