From 2a339ddbc82cd029aa31ea41a457742f9b6c25ac Mon Sep 17 00:00:00 2001 From: Gen Date: Tue, 19 Mar 2024 16:01:42 -0700 Subject: [PATCH] fix last updated script --- build.js | 8 ++++++++ index.html | 6 +----- package.json | 12 ++++++++++++ 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 build.js create mode 100644 package.json diff --git a/build.js b/build.js new file mode 100644 index 0000000..be73b5d --- /dev/null +++ b/build.js @@ -0,0 +1,8 @@ +const fs = require("fs"); + +let file = fs.readFileSync("index.html", "utf-8"); +file = file.replace( + '', + new Date().toUTCString(), +); +fs.writeFileSync("index.html", file); diff --git a/index.html b/index.html index 4964ddb..5ddae28 100644 --- a/index.html +++ b/index.html @@ -49,7 +49,7 @@ Email Last updated at | ©️ + >Last updated at Tue, 19 Mar 2024 22:56:19 GMT | ©️ Licensed under GPL V3 | Source code -