Skip to content

Commit

Permalink
reposition dateRange
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmturner committed Apr 16, 2024
1 parent cf52536 commit 7253947
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/pizza/[year].astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ const eventDetails = await getEventDetails(year!, "pizza");
const dateRange = eventDetails
? `${formatter.format(new Date(eventDetails.dateStart))} - ${formatter.format(new Date(eventDetails.dateEnd))} ${eventDetails.year}`
: null;
: undefined;
---

<Layout
title={`PDX Pizza Week ${year}`}
description="A fan site celebrating PDX Pizza Week"
>
<Header />
<Main pageTitle={`Pizza ${year}`} neighborhoods={neighborhoods}>
{dateRange ? <h3>{dateRange}</h3> : null}
<Main
pageTitle={`Pizza ${year}`}
neighborhoods={neighborhoods}
pageDesc={dateRange}
>
{pizzas && <CardGrid items={pizzas} lists={lists} />}
</Main>
<Footer />
Expand Down

0 comments on commit 7253947

Please sign in to comment.