Skip to content

Commit

Permalink
feat(plugin-last-updated): inject lastUpdatedTimestamp to $page (#…
Browse files Browse the repository at this point in the history
…1778)

* Add $page.lastUpdatedTstamp

* Update index.js
  • Loading branch information
psi-4ward authored Dec 20, 2021
1 parent 6c8f6a2 commit 2345902
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@vuepress/plugin-last-updated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = (options = {}, context) => ({
? transformer(timestamp, $lang)
: defaultTransformer(timestamp, $lang, dateOptions)
$page.lastUpdated = lastUpdated
$page.lastUpdatedTimestamp = timestamp
}
}
})
Expand Down

0 comments on commit 2345902

Please sign in to comment.