0.1.3 • Published 4 years ago

saber-plugin-git-modification-time v0.1.3

Weekly downloads
231
License
MIT
Repository
-
Last release
4 years ago

saber-plugin-git-modification-time

Use the author time of the last commit as page.updatedAt

Why? See #9785.

tl;dr page.updatedAt defaults to file.mtime which will change on platforms like Netlify. We restore the value to author time of the last commit instead.

Install

yarn add saber-plugin-git-modification-time

Usage

In your saber-config.js:

module.exports = {
  plugins: ['saber-plugin-git-modification-time']
}

License

MIT.