From d2264db96a016f5a6cfd38f550a841800f41d95a Mon Sep 17 00:00:00 2001 From: leomcelroy Date: Tue, 14 Nov 2023 10:35:13 -0500 Subject: [PATCH] update metadata file for art and guides --- art/{list.json => !metadata.json} | 0 astro/src/pages/gallery.astro | 2 +- astro/src/pages/guides.astro | 2 +- astro/src/pages/index.astro | 2 +- guides/{_LIST.json => !metadata.json} | 0 virtual-gallery/index.js | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) rename art/{list.json => !metadata.json} (100%) rename guides/{_LIST.json => !metadata.json} (100%) diff --git a/art/list.json b/art/!metadata.json similarity index 100% rename from art/list.json rename to art/!metadata.json diff --git a/astro/src/pages/gallery.astro b/astro/src/pages/gallery.astro index 544d1ddc2..c58fbfd10 100644 --- a/astro/src/pages/gallery.astro +++ b/astro/src/pages/gallery.astro @@ -5,7 +5,7 @@ import { slug } from '../lib/guide.ts' let images = []; try { - const list = (await Astro.glob('/../art/list.json'))[0].default + const list = (await Astro.glob('/../art/!metadata.json'))[0].default list.forEach(folder => { const snapshot = folder.snapshots[0]; diff --git a/astro/src/pages/guides.astro b/astro/src/pages/guides.astro index 6a823bcf6..0e8de0778 100644 --- a/astro/src/pages/guides.astro +++ b/astro/src/pages/guides.astro @@ -2,7 +2,7 @@ import Layout from '../layouts/Layout.astro' import { slug } from '../lib/guide.ts' -const list = (await Astro.glob('/../guides/_LIST.json'))[0] +const list = (await Astro.glob('/../guides/!metadata.json'))[0] .default .map(x => x.title) diff --git a/astro/src/pages/index.astro b/astro/src/pages/index.astro index 8c8ea33bc..c5d2bede5 100644 --- a/astro/src/pages/index.astro +++ b/astro/src/pages/index.astro @@ -13,7 +13,7 @@ curated = curated.map(name => { let images = []; try { - const list = (await Astro.glob('/../art/list.json'))[0].default + const list = (await Astro.glob('/../art/!metadata.json'))[0].default list.forEach(folder => { folder.snapshots.map(snapshot => { images.push({ diff --git a/guides/_LIST.json b/guides/!metadata.json similarity index 100% rename from guides/_LIST.json rename to guides/!metadata.json diff --git a/virtual-gallery/index.js b/virtual-gallery/index.js index e3191785b..0d094de05 100644 --- a/virtual-gallery/index.js +++ b/virtual-gallery/index.js @@ -698,7 +698,7 @@ export function raycastMap(state) { mode: 'no-cors' } - fetch('https://haxidraw-art.hackclub.dev/list.json') + fetch('https://haxidraw-art.hackclub.dev/!metadata.json') .then(response => response.text()) .then(text => { console.log(text)