Fix image in meta and other details

This commit is contained in:
prototypa
2022-08-25 00:46:15 -04:00
parent b9b8feac44
commit 0a7b84b816
13 changed files with 67 additions and 49 deletions

View File

@@ -1,13 +1,13 @@
---
import { SITE } from "~/config.mjs";
import { getPosts } from "~/utils/getPosts";
import { fetchPosts } from "~/utils/fetchPosts";
import { findImage } from "~/utils/findImage";
import Layout from "~/layouts/PageLayout.astro";
import BlogPost from "~/components/widgets/BlogPost.astro";
export async function getStaticPaths() {
const posts = await getPosts();
const posts = await fetchPosts();
return posts.map((post) => ({
params: { slug: post.slug },