feat: add pubdate to listing

This commit is contained in:
Aaron Yarborough 2024-03-18 23:15:32 +00:00
parent 59647a1550
commit 3da9d70faf
3 changed files with 5 additions and 0 deletions

View file

@ -19,6 +19,8 @@ export default function Fun ({ entries, urlPrefix }) {
<h2>
<Link href={`${urlPrefix}${e.slug}`}>{e.attributes.title}</Link>
</h2>
{!!e.attributes.pubdate && <p>{e.attributes.pubdate}</p>}
<p>{e.attributes.desc}</p>
<Link href={`${urlPrefix}${e.slug}`}>Read more</Link>
</div>

View file

@ -19,6 +19,7 @@ export default function Recipes ({ entries, urlPrefix }) {
<h2>
<Link href={`${urlPrefix}${e.slug}`}>{e.attributes.title}</Link>
</h2>
{!!e.attributes.pubdate && <p>{e.attributes.pubdate}</p>}
<p>{e.attributes.desc}</p>
<Link href={`${urlPrefix}${e.slug}`}>Read more</Link>
</div>

View file

@ -22,6 +22,8 @@ export default function Writing ({ entries, urlPrefix }) {
<h2>
<Link href={`${urlPrefix}${e.slug}`}>{e.attributes.title}</Link>
</h2>
{!!e.attributes.pubdate && <p>{e.attributes.pubdate}</p>}
<p>{e.attributes.desc}</p>
<Link href={`${urlPrefix}${e.slug}`}>Read more</Link>
</div>