diff --git a/src/components/BlogPostEntry.vue b/src/components/BlogPostEntry.vue new file mode 100644 index 0000000..1b8cb77 --- /dev/null +++ b/src/components/BlogPostEntry.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/src/pages/[...blog].astro b/src/pages/[...blog].astro index b7116e5..9163c28 100644 --- a/src/pages/[...blog].astro +++ b/src/pages/[...blog].astro @@ -261,7 +261,7 @@ function prepFootnotes () { section { @include until($desktop) { - padding: 0 2rem; + padding: 0 1rem; } } diff --git a/src/pages/blog/[...page].astro b/src/pages/blog/[...page].astro index 62331e4..ccca5ba 100644 --- a/src/pages/blog/[...page].astro +++ b/src/pages/blog/[...page].astro @@ -1,5 +1,6 @@ --- import Layout from '@/layouts/DefaultLayout.astro'; +import BlogPostEntry from '@/components/BlogPostEntry.vue' import { resolvePath } from '@/utils/helpers.js' export async function getStaticPaths({ paginate }) { const posts = (await Astro.glob('../../posts/*.{md,mdx}')).sort( @@ -19,19 +20,9 @@ const { data, lastPage, url } = page
- {data.map((article: any) => { - const imgSrc = resolvePath(article.frontmatter.image) || resolvePath('/images/' + article.frontmatter.permalink + '.jpeg') - return ( -
- - -

{article.frontmatter.title}

-

{article.frontmatter.description || 'TODO'}

-
{article.frontmatter.author || "Greg Slepak"}
-
-
- ) - })} + { + data.map((article: any) => ) + }