Skip to content

Commit

Permalink
chore: don't show authors since there were so many involved
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshenrik committed Nov 27, 2024
1 parent 16dba15 commit b557283
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
27 changes: 20 additions & 7 deletions src/layouts/ArtistLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const {
title,
author,
authorImage,
noAuthor,
tagline,
id,
imageType,
Expand All @@ -46,6 +47,7 @@ export type ArtistProps = {
shortTitle?: string;
author?: string;
authorImage?: string;
noAuthor?: boolean;
tagline?: string;
venue?: string;
concertStartAt?: string;
Expand Down Expand Up @@ -174,12 +176,16 @@ const image = imageType ? `${id}.${imageType}` : `${id}.jpg`;
)
}
</div>
<ImageAndLabel
image={`/src/images/folk/${authorImage || "placeholder.png"}`}
alt={`Bilde av ${author || "Presseskriv"}`}
>
Tekst: {author || "Presseskriv"}
</ImageAndLabel>
{
!noAuthor && (
<ImageAndLabel
image={`/src/images/folk/${authorImage || "placeholder.png"}`}
alt={`Bilde av ${author || "Presseskriv"}`}
>
Tekst: {author || "Presseskriv"}
</ImageAndLabel>
)
}
<article class="prose prose-quoteless-blockquotes">
<slot />
</article>
Expand All @@ -199,7 +205,14 @@ const image = imageType ? `${id}.${imageType}` : `${id}.jpg`;
)
}
<div class="flex flex-row justify-between">
{!isFree && <BuyTicketsButton class="flex-0 h-fit w-fit" externalTicketUrl={externalTicketUrl} />}
{
!isFree && (
<BuyTicketsButton
class="flex-0 h-fit w-fit"
externalTicketUrl={externalTicketUrl}
/>
)
}
{
isFree && requiresFreeTicket && (
<BuyTicketsButton class="flex-0 h-fit w-fit" isFree />
Expand Down
5 changes: 3 additions & 2 deletions src/pages/artist/maria-kannegaard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ id: maria-kannegaard
imageAttribution: Jens Westbye
title: Maria Kannegaard (bestillingsverk)
shortTitle: Maria Kannegaard
author: Kim Klev
authorImage: kim-klev.jpg
# author: Kim Klev
# authorImage: kim-klev.jpg
noAuthor: true
tagline: Borte Vekk Meg I Morgen
venue: Storsalen, Buen
concertStartAt: 2025-06-26T19:00
Expand Down

0 comments on commit b557283

Please sign in to comment.