aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/pages/blog
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/pages/blog
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/pages/blog')
-rw-r--r--apps/website/src/pages/blog/[...slug].astro4
-rw-r--r--apps/website/src/pages/blog/index.astro12
2 files changed, 7 insertions, 9 deletions
diff --git a/apps/website/src/pages/blog/[...slug].astro b/apps/website/src/pages/blog/[...slug].astro
index d9995e7..abdde0a 100644
--- a/apps/website/src/pages/blog/[...slug].astro
+++ b/apps/website/src/pages/blog/[...slug].astro
@@ -19,7 +19,5 @@ const { Content } = await post.render();
---
<BlogPost {...post.data}>
- <Content />
+ <Content/>
</BlogPost>
-
-
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>