diff options
| author | Pauline <git@ethanlibs.co> | 2024-01-22 04:27:34 +0100 |
|---|---|---|
| committer | Pauline <git@ethanlibs.co> | 2024-01-22 04:27:48 +0100 |
| commit | f0e73cf90005709e20b2f16f63d67d6802af3332 (patch) | |
| tree | 1fb33d1bf14ada662a9cbdea1728c3f031c06ff0 /apps/website/src/pages/blog | |
| parent | e1f6521a78f5c2a873199fd8cded0bc58ac3aa6e (diff) | |
| download | Nexus-f0e73cf90005709e20b2f16f63d67d6802af3332.tar.gz Nexus-f0e73cf90005709e20b2f16f63d67d6802af3332.tar.bz2 Nexus-f0e73cf90005709e20b2f16f63d67d6802af3332.zip | |
feat(layout): add seo metadata to all pages
Diffstat (limited to 'apps/website/src/pages/blog')
| -rw-r--r-- | apps/website/src/pages/blog/index.astro | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/website/src/pages/blog/index.astro b/apps/website/src/pages/blog/index.astro index 4bccad4..8603764 100644 --- a/apps/website/src/pages/blog/index.astro +++ b/apps/website/src/pages/blog/index.astro @@ -4,9 +4,7 @@ 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(), -); +const posts = await getCollection('blog'); --- <Layout title="Polyfrost Blog" description="Recieve Polyfrost updates here"> @@ -16,10 +14,10 @@ const posts = (await getCollection('blog')).sort( 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.coverImage} alt=""/> <h4 class="title">{post.data.title}</h4> <p class="date"> - <FormattedDate date={post.data.pubDate}/> + <FormattedDate date={post.data.publishDate}/> </p> </a> </li> |
