Skip to content

Commit

Permalink
Limit git last modified dates to production environment only
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Feb 18, 2022
1 parent 583346f commit 5403f2b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/docs/docs.11tydata.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
let data = {
layout: "layouts/docs.njk",
date: "git Last Modified",
};
// Use this if the git thing is too slow
// if(process.env.NODE_ENV === "production") {
// data.date = "git Last Modified";
// }

if(process.env.NODE_ENV === "production") {
data.date = "git Last Modified";
}

module.exports = data;

0 comments on commit 5403f2b

Please sign in to comment.