From fcbb4790e92302696175cfa89608cbb985383d15 Mon Sep 17 00:00:00 2001 From: hazel Date: Fri, 6 Mar 2026 17:56:45 +0100 Subject: history reset for anonymity Signed-off-by: hazel --- _data/buildInfo.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 _data/buildInfo.js (limited to '_data/buildInfo.js') diff --git a/_data/buildInfo.js b/_data/buildInfo.js new file mode 100644 index 0000000..3fb3c37 --- /dev/null +++ b/_data/buildInfo.js @@ -0,0 +1,11 @@ +import { execSync } from "child_process"; + +export default () => { + const latestGitCommitHash = execSync("git rev-parse --short=10 HEAD") + .toString() + .trim(); + + return { + hash: latestGitCommitHash, + }; +}; -- cgit v1.2.3