aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/pages/blog/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'apps/website/src/pages/blog/index.astro')
-rw-r--r--apps/website/src/pages/blog/index.astro12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/website/src/pages/blog/index.astro b/apps/website/src/pages/blog/index.astro
index c8f8203..4bccad4 100644
--- a/apps/website/src/pages/blog/index.astro
+++ b/apps/website/src/pages/blog/index.astro
@@ -1,25 +1,25 @@
---
/// <reference types="../../env.d.ts" />
-import Layout from '../../layouts/Layout.astro';
-import FormattedDate from '../../components/base/FormattedDate.astro'
import { getCollection } from 'astro:content';
+import FormattedDate from '../../components/base/FormattedDate.astro';
+import Layout from '../../layouts/Layout.astro';
const posts = (await getCollection('blog')).sort(
- (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
+ (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf(),
);
---
-<Layout title='Polyfrost Blog' description='Recieve Polyfrost updates here'>
+<Layout title="Polyfrost Blog" description="Recieve Polyfrost updates here">
<section>
<ul>
{
posts.map(post => (
<li>
<a href={`blog/${post.slug}/`}>
- <img width={720} height={360} src={post.data.heroImage} alt="" />
+ <img width={720} height={360} src={post.data.heroImage} alt=""/>
<h4 class="title">{post.data.title}</h4>
<p class="date">
- <FormattedDate date={post.data.pubDate} />
+ <FormattedDate date={post.data.pubDate}/>
</p>
</a>
</li>