From 451823de197dde1190b2fef106b3beb474c67407 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Fri, 1 Nov 2024 22:35:36 -0500 Subject: [PATCH] Add a description to the ticket page --- content/english/tickets/index.md | 2 ++ layouts/partials/components/ticket_list.html | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/content/english/tickets/index.md b/content/english/tickets/index.md index 6feb3c8..0f39cdc 100644 --- a/content/english/tickets/index.md +++ b/content/english/tickets/index.md @@ -16,6 +16,8 @@ features: img: "/images/devon_starfield.png" end_img: "/images/software-15.png" end_img_class: "relative h-96 bg-contain bg-bottom bg-repeat-x" + description: | + Handmade Seattle is a fully hybrid conference, and both physical and online tickets are available. Buying a ticket supports the conference and gains you access to the private chat server used for speaker Q&A, the virtual job fair, and more. tickets: - title: "Physical Track" title_class: "text-white" diff --git a/layouts/partials/components/ticket_list.html b/layouts/partials/components/ticket_list.html index 267d619..3b168f8 100644 --- a/layouts/partials/components/ticket_list.html +++ b/layouts/partials/components/ticket_list.html @@ -1,13 +1,18 @@ {{ if .tickets }} -
+
+ {{ with .description }} +
+ {{ . | markdownify }} +
+ {{ end }} {{ $tickets := .tickets }} {{ range $index, $ticket := $tickets }}

{{ $ticket.title }}

{{ $ticket.subtitle }}

{{/*
*/}}
+ class="grid grid-cols-1 gap-4 leading-7 text-gray-900 border-0 border-gray-200 py-4 sm:gap-6 md:gap-4 lg:grid-cols-2 {{ $ticket.section_class }}"> {{ range $option_index, $option := $ticket.options }} @@ -34,7 +39,7 @@
*/}} -
+

{{ $option.name | markdownify }}