diff --git a/content/events/openpowersummit21.md b/content/events/openpowersummit21.md index df76b5c..e17d4b9 100644 --- a/content/events/openpowersummit21.md +++ b/content/events/openpowersummit21.md @@ -2,6 +2,10 @@ title: "OpenPOWER Summit Virtual 2021" eventdate: 2021-10-28 eventlocation: "Virtual" +prereg: + organizer: summit + event: 2021 +pretalx: summit2021 date: 2021-05-30 draft: false --- @@ -17,4 +21,3 @@ We are looking for presentations about OpenPOWER, more can be found on the follo We will be opening registration soon, please keep an eye on this page for updates. -{{< prereg organizer="summit" event="2021" >}} diff --git a/themes/openpowerfoundation/layouts/events/single.html b/themes/openpowerfoundation/layouts/events/single.html index 6915eab..8850b17 100644 --- a/themes/openpowerfoundation/layouts/events/single.html +++ b/themes/openpowerfoundation/layouts/events/single.html @@ -2,19 +2,24 @@ {{ partial "navbar.html" . }} +{{ $eventdate := time (.Param "eventdate") }} +{{ $eventdate = $eventdate.Format "Monday, January 2, 2006" }} +{{ $eventorganizer := .Param "prereg.organizer" }} +{{ $eventcode := .Param "prereg.event" }} +{{ $eventsched := .Param "pretalx" }} +
-

{{ .Title }}

+

{{ .Title }}

+

{{ $eventdate }} @ {{ .Param "eventlocation" }}

-

-
{{ if .Param "image" }} -
-

+

+

{{ $imagefilename := .Param "image.file" }} {{ $imagesize := .Param "image.size" }} {{ $imagelocation := printf "%s/%s" "img" $imagefilename }} @@ -24,27 +29,45 @@ {{ if $imagesize }} {{ $imagefile = $imageresource.Resize $imagesize }} {{ else }} - {{ $imagefile = $imageresource.Resize "750x750" }} + {{ $imagefile = $imageresource.Resize "1000x250" }} {{ end }}

{{ end }} -

-
-
- {{ else }} -
 
-
+

+
{{ end }} -

{{ .Content }}

- {{ if .Param "image" }} -
- {{ else }} +
+
{{ .Content }}
+
+ {{ if and $eventorganizer $eventcode }} +
+ +
+ + External Direct Registration Link +
+ {{ else }} +   + {{ end }}
-
 
- {{ end }}
+ {{ if $eventsched }} +
+
+
+ + + + External Direct Schedule Link +
+
+ {{ end }}