Skip to content

Commit

Permalink
limit number of people shown on about page to 6
Browse files Browse the repository at this point in the history
  • Loading branch information
outofambit committed May 9, 2024
1 parent d0519bf commit 0e42fcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layouts/AboutLayout.astro
Expand Up @@ -53,6 +53,7 @@ const sortedFeaturedPeople = featuredPeople.sort((a, b) => {
b.data.order !== undefined ? b.data.order : Number.MAX_SAFE_INTEGER;
return orderA - orderB;
});
const displayedFeaturedPeople = featuredPeople.slice(0, 6);
---

<Head title="About" locale={currentLocale} />
Expand All @@ -66,7 +67,7 @@ const sortedFeaturedPeople = featuredPeople.sort((a, b) => {
<h2 id="people">{t("People")}</h2>
<ul class="content-grid my-xl">
{
sortedFeaturedPeople.map((fp) => (
displayedFeaturedPeople.map((fp) => (
<li class="col-span-2">
<GridItemPerson item={fp} />
</li>
Expand Down

0 comments on commit 0e42fcc

Please sign in to comment.