diff --git a/assets/css/main.css b/assets/css/main.css index 45e54e5..cee67b4 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -118,3 +118,10 @@ html { border: 2px solid var(--color-py-yellow); box-shadow: 0 0 40px rgba(255, 212, 59, 0.1); } + +/* Sessionize embeds (/schedule/, /grid/) */ +/* Single-day event: the page header already shows the date, and Sessionize's + day title is an

that would duplicate the page

. */ +.sessionize-embed .sz-day__title { + display: none; +} diff --git a/layouts/grid/list.html b/layouts/grid/list.html index 5c73d51..16f45fb 100644 --- a/layouts/grid/list.html +++ b/layouts/grid/list.html @@ -2,7 +2,5 @@ {{/* Structured Data for Schedule */}} {{ partial "structured-data-schedule.html" . }} -
- -
+{{ partial "programme-page.html" (dict "page" . "view" "GridSmart") }} {{ end }} diff --git a/layouts/partials/programme-page.html b/layouts/partials/programme-page.html new file mode 100644 index 0000000..eb78f19 --- /dev/null +++ b/layouts/partials/programme-page.html @@ -0,0 +1,61 @@ +{{- /* + Shared layout for the Sessionize-powered programme pages. + + Params (dict): + page the current page + view Sessionize embed view: "Sessions" (list), "GridSmart" (grid) + or "Speakers" + + The embed is constrained to the site container (it otherwise spans the + full viewport) and overflow-x is clipped: the Sessionize list renders a + few pixels wider than the viewport on mobile. See .sessionize-embed in + assets/css/main.css for the overrides of Sessionize's own markup. +*/ -}} +{{- $page := .page -}} +{{- $view := .view -}} +{{- $sz := partialCached "sessionize-data.html" $page -}} +{{- /* Session and speaker lists have long descriptions and bios: keep a + readable line length. The grid needs the full container width for + its room columns. */ -}} +{{- $width := cond (eq $view "GridSmart") "max-w-7xl" "max-w-4xl" -}} +{{- $tabs := slice + (dict "label" "List" "url" "/schedule/" "view" "Sessions") + (dict "label" "Grid" "url" "/grid/" "view" "GridSmart") + (dict "label" "Speakers" "url" "/speakers/" "view" "Speakers") +-}} +
+
+
+

{{ $page.Title }}

+

+ {{ site.Params.dateHuman }} · {{ site.Params.venue }}, Dublin +

+ {{- if $sz.ok }} + {{- $talks := 0 }}{{ $workshops := 0 }} + {{- range $sz.sessions }} + {{- if eq .type "Workshop" }}{{ $workshops = add $workshops 1 }}{{ else }}{{ $talks = add $talks 1 }}{{ end }} + {{- end }} +

+ {{ $talks }} talks & panels · {{ $workshops }} workshops · {{ len $sz.speakers }} speakers +

+ {{- end }} + + +
+
+ +
+ +
+
+ +
+
+
diff --git a/layouts/schedule/list.html b/layouts/schedule/list.html index 426feed..b308429 100644 --- a/layouts/schedule/list.html +++ b/layouts/schedule/list.html @@ -2,7 +2,5 @@ {{/* Structured Data for Schedule */}} {{ partial "structured-data-schedule.html" . }} -
- -
+{{ partial "programme-page.html" (dict "page" . "view" "Sessions") }} {{ end }} diff --git a/layouts/speakers/list.html b/layouts/speakers/list.html index 2f1f5e0..0750e0c 100644 --- a/layouts/speakers/list.html +++ b/layouts/speakers/list.html @@ -2,7 +2,5 @@ {{/* Structured Data for Speakers */}} {{ partial "structured-data-speakers.html" . }} -
- -
+{{ partial "programme-page.html" (dict "page" . "view" "Speakers") }} {{ end }}