buahahaha it works

This commit is contained in:
Adam Matthiesen 2024-02-20 03:21:47 -08:00
parent 033e70d44b
commit 0f8b8ee9ef
2 changed files with 3 additions and 6 deletions

View File

@ -55,6 +55,7 @@ function overrideStarlightComponent(
if (components?.[component]) { if (components?.[component]) {
logger.warn(`It looks like you already have a \`${component}\` component override in your Starlight configuration.`) logger.warn(`It looks like you already have a \`${component}\` component override in your Starlight configuration.`)
logger.warn(`To use \`starlight-ghostcms\`, remove the override for the \`${component}\` component.\n`) logger.warn(`To use \`starlight-ghostcms\`, remove the override for the \`${component}\` component.\n`)
logger.warn("This Warning can be ignored if you know what your doing ;)")
return {} return {}
} }

View File

@ -1,10 +1,7 @@
--- ---
//import type { InferGetStaticPropsType } from 'astro'
import config from 'virtual:starlight-ghost-config' import config from 'virtual:starlight-ghost-config'
import { Image } from "astro:assets"; import { Image } from "astro:assets";
import Page from '../components/Page.astro' import Page from '../components/Page.astro'
import Posts from '../components/Posts.astro'
//import PrevNextLinks from '../components/PrevNextLinks.astro'
import { getPageProps } from '../utils/page' import { getPageProps } from '../utils/page'
import { getAllPosts } from '../utils/api' import { getAllPosts } from '../utils/api'
import Metadata from '../components/Metadata.astro' import Metadata from '../components/Metadata.astro'
@ -35,8 +32,8 @@ const pageProps = getPageProps(post.title)
src={post.feature_image} src={post.feature_image}
alt={post.feature_image_alt?post.feature_image_alt:""} alt={post.feature_image_alt?post.feature_image_alt:""}
title={post.feature_image_alt?post.feature_image_alt:""} title={post.feature_image_alt?post.feature_image_alt:""}
width="1000px" width={1000}
height="800px" height={800}
/> />
<figcaption> <figcaption>
<Fragment set:html={post.feature_image_caption} /> <Fragment set:html={post.feature_image_caption} />
@ -48,7 +45,6 @@ const pageProps = getPageProps(post.title)
<Fragment set:html={post.html} /> <Fragment set:html={post.html} />
<footer class="not-content"> <footer class="not-content">
<!--PrevNextLinks next={nextLink} prev={prevLink} /-->
</footer> </footer>
</Page> </Page>