don't prerender character list and image list

This commit is contained in:
Lio 2024-07-23 00:39:20 +02:00
parent cd61454ce1
commit c6b1ed8292
2 changed files with 9 additions and 7 deletions

View file

@ -3,6 +3,8 @@ import config from "../../config.yaml";
import Sidebar from "../components/Sidebar.astro"; import Sidebar from "../components/Sidebar.astro";
const { title, background } = config; const { title, background } = config;
export const prerender = false;
--- ---
<!doctype html> <!doctype html>
@ -16,12 +18,12 @@ const { title, background } = config;
<title>{title}</title> <title>{title}</title>
</head> </head>
<body> <body>
<div <div
class="md:fixed md:left-0 md:top-0 w-full md:w-96 bg-[#ffffff59] h-full pt-4 z-[1] box-border text-center" class="md:fixed md:left-0 md:top-0 w-full md:w-96 bg-[#ffffff59] h-full pt-4 z-[1] box-border text-center"
> >
<Sidebar /> <Sidebar />
</div> </div>
<slot /> <slot />
</body> </body>
</html> </html>
<style define:vars={{ background: `url(${background})` }}> <style define:vars={{ background: `url(${background})` }}>

View file

@ -39,7 +39,7 @@ const images = imageCollection.map((record) => {
}; };
}); });
export const prerender = true; export const prerender = false;
--- ---
<Gallery> <Gallery>