Update preview images
This commit is contained in:
9
src/routes/+layout.server.ts
Normal file
9
src/routes/+layout.server.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { getFromCMS } from '$lib/utils.js';
|
||||
|
||||
const thumbnailQuery = `*[_type == "homepage"]{
|
||||
"thumbnail": councilPhoto.asset->url+"?h=800&fm=webp",
|
||||
}[0]`;
|
||||
|
||||
export const load = async () => {
|
||||
return { thumbnail: (await getFromCMS(thumbnailQuery)).thumbnail };
|
||||
};
|
||||
Reference in New Issue
Block a user