--- import './variables.css' import './reset.css' import './common.css' import Head from '../components/Head.astro' import Nav from '../components/Nav.astro' import { links } from '../constants/links' export interface Props { title?: string description?: string } const { title, description } = Astro.props import { getImage } from 'astro:assets' // fetch mastodon account const response = await fetch( 'https://social.ayco.io/api/v1/accounts/lookup?acct=ayo' ) const data = await response.json() const { avatar } = data const ogImage = await getImage({ src: avatar, width: 400, height: 400, format: 'png', }) const ogFileType = 'image/png' ---