aboutsummaryrefslogtreecommitdiffstats
path: root/src/gen/metadata.11ty.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen/metadata.11ty.js')
-rw-r--r--src/gen/metadata.11ty.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gen/metadata.11ty.js b/src/gen/metadata.11ty.js
new file mode 100644
index 0000000..87d7997
--- /dev/null
+++ b/src/gen/metadata.11ty.js
@@ -0,0 +1,15 @@
+module.exports = class {
+ data() {
+ return {
+ permalink: "/assets/metadata.js"
+ };
+ }
+
+ render() {
+ const obj = JSON.stringify({
+ version: new Date().toISOString()
+ });
+ return `const obj = '${obj}'
+ export default () => JSON.parse(obj);`;
+ }
+}; \ No newline at end of file