Fix to integrate with astro-embed
This commit is contained in:
@@ -88,9 +88,9 @@ const { Content } = post;
|
||||
}
|
||||
</header>
|
||||
<div
|
||||
class="mx-auto px-6 sm:px-6 max-w-3xl prose prose-md lg:prose-xl dark:prose-invert dark:prose-headings:text-slate-300 prose-headings:font-heading prose-headings:leading-tighter prose-headings:tracking-tighter prose-headings:font-bold prose-a:text-primary dark:prose-a:text-blue-400 prose-img:rounded-md prose-img:shadow-lg mt-8 prose-headings:scroll-mt-[80px]"
|
||||
class="mx-auto px-6 sm:px-6 max-w-3xl prose prose-md lg:prose-xl dark:prose-invert dark:prose-headings:text-slate-300 prose-headings:font-heading prose-headings:leading-tighter prose-headings:tracking-tighter prose-headings:font-bold prose-a:text-primary dark:prose-a:text-blue-400 prose-img:rounded-md prose-img:shadow-lg mt-8 prose-headings:scroll-mt-[80px] prose-li:my-0"
|
||||
>
|
||||
{Content ? <Content /> : <Fragment set:html={post.content || ''} />}
|
||||
<slot />
|
||||
</div>
|
||||
<div class="mx-auto px-6 sm:px-6 max-w-3xl mt-8 flex justify-between flex-col sm:flex-row">
|
||||
<PostTags tags={post.tags} class="mr-5 rtl:mr-0 rtl:ml-5" />
|
||||
|
@@ -9,6 +9,7 @@ tags:
|
||||
---
|
||||
|
||||
import Logo from '~/components/Logo.astro';
|
||||
import { YouTube, Tweet, Vimeo } from 'astro-embed';
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
|
||||
@@ -186,4 +187,18 @@ import Logo from "~/components/Logo.astro";
|
||||
<Logo />
|
||||
</div>
|
||||
|
||||
[[Top]](#top)
|
||||
## Astro Embed
|
||||
|
||||
### Youtube
|
||||
|
||||
<YouTube id="y9n6HkftavM" />
|
||||
|
||||
### Tweet
|
||||
|
||||
<Tweet id="https://twitter.com/Steve8708/status/1598713161339015173" />
|
||||
|
||||
### Vimeo
|
||||
|
||||
<Vimeo id="178430038" />
|
||||
|
||||
[[Top]](#top)
|
@@ -44,7 +44,9 @@ const metadata = merge(
|
||||
---
|
||||
|
||||
<Layout metadata={metadata}>
|
||||
<SinglePost post={{ ...post, image: image }} url={url} />
|
||||
<SinglePost post={{ ...post, image: image }} url={url}>
|
||||
{post.Content ? <post.Content /> : <Fragment set:html={post.content || ''} />}
|
||||
</SinglePost>
|
||||
<ToBlogLink />
|
||||
<RelatedPosts post={post} />
|
||||
</Layout>
|
||||
|
@@ -11,7 +11,7 @@ import Features3 from '~/components/widgets/Features3.astro';
|
||||
import FAQs from '~/components/widgets/FAQs.astro';
|
||||
import Brands from '~/components/widgets/Brands.astro';
|
||||
|
||||
import { YouTube } from '@astro-community/astro-embed-youtube';
|
||||
import { YouTube } from 'astro-embed';
|
||||
|
||||
const metadata = {
|
||||
title: 'Startup Landing Page',
|
||||
|
Reference in New Issue
Block a user