aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/layouts/BlogPost.astro
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-12-20 01:58:22 -0500
committerPauline <git@ethanlibs.co>2023-12-20 01:58:22 -0500
commit8e85be96a154b371b4cf1fb1924155d96150f949 (patch)
tree22edab0f259bbdba76d1c8fb790ff2c6cf65db60 /apps/website/src/layouts/BlogPost.astro
parent64537e64852193cb735ee4853c0f8d07a5222030 (diff)
downloadNexus-8e85be96a154b371b4cf1fb1924155d96150f949.tar.gz
Nexus-8e85be96a154b371b4cf1fb1924155d96150f949.tar.bz2
Nexus-8e85be96a154b371b4cf1fb1924155d96150f949.zip
chore(lint): bump deps and fix linting/format
Diffstat (limited to 'apps/website/src/layouts/BlogPost.astro')
-rw-r--r--apps/website/src/layouts/BlogPost.astro17
1 files changed, 8 insertions, 9 deletions
diff --git a/apps/website/src/layouts/BlogPost.astro b/apps/website/src/layouts/BlogPost.astro
index ed2a3c3..188aae1 100644
--- a/apps/website/src/layouts/BlogPost.astro
+++ b/apps/website/src/layouts/BlogPost.astro
@@ -1,10 +1,9 @@
---
+import FormattedDate from '@components/base/FormattedDate.astro';
+import '@styles/blog.css';
import type { CollectionEntry } from 'astro:content';
import Layout from './Layout.astro';
-import '@styles/blog.css';
-import FormattedDate from '@components/base/FormattedDate.astro';
-
type Props = CollectionEntry<'blog'>['data'];
const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
@@ -12,25 +11,25 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
<Layout title={title} description={description}>
<article>
- <div class='hero-image'>
- {heroImage && <img width={1020} height={510} src={heroImage} alt="Hero Image" />}
+ <div class="hero-image">
+ {heroImage && <img width={1020} height={510} src={heroImage} alt="Hero Image"/>}
</div>
<div class="prose">
<div class="title">
<div class="date">
- <FormattedDate date={pubDate} />
+ <FormattedDate date={pubDate}/>
{
updatedDate && (
<div class="last-updated-on">
- Last updated on <FormattedDate date={updatedDate} />
+ Last updated on <FormattedDate date={updatedDate}/>
</div>
)
}
</div>
<h1>{title}</h1>
- <hr />
+ <hr/>
</div>
- <slot />
+ <slot/>
</div>
</article>
</Layout>