|
| 1 | +{{ define "main" }} |
| 2 | +{{ partial "page-header" . }} |
| 3 | +<section class="section pt-6"> |
| 4 | + <div class="container"> |
| 5 | + <article class="row justify-center"> |
| 6 | + <div class="lg:col-8 mb-7"> |
| 7 | + <div class="mb-4"> |
| 8 | + {{ $image:= .Params.image }} |
| 9 | + {{ if .Params.video }} |
| 10 | + {{ partial "youtube-lite.html" (dict "Id" .Params.video ) }} |
| 11 | + {{ else if $image }} |
| 12 | + {{ partial "override-image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "w-full rounded") }} |
| 13 | + {{ else }} |
| 14 | + {{ partial "override-image" (dict "Src" "images/workshop-thumbnail-default.png" "Alt" .Title "Class" "w-full rounded") }} |
| 15 | + {{ end }} |
| 16 | + </div> |
| 17 | + <ul class="mb-5"> |
| 18 | + <li class="mr-2 inline-block"> |
| 19 | + <i class="fa-regular fa-circle-user mr-2"></i>{{delimit .Params.author ", "}} |
| 20 | + </li> |
| 21 | + <li class="inline-block"> |
| 22 | + <i class="fa-regular fa-clock mr-2"></i> |
| 23 | + {{ time.Format ":date_long" .PublishDate }} |
| 24 | + {{ if .Params.upcoming }} |
| 25 | + {{ .Params.start_time }} - {{ .Params.end_time }} {{ .Params.time_zone }} |
| 26 | + {{ end }} |
| 27 | + </li> |
| 28 | + <li class=" mr-4 inline-block"> |
| 29 | + {{ $slides := .Params.speaker_slides }} |
| 30 | + {{ if $slides }} |
| 31 | + <a href="{{ $slides }}" target="_blank" class="ms-1 btn btn-sm btn-primary"> |
| 32 | + <i class="fa-regular fa-images mr-2"></i>Slides</a> |
| 33 | + {{ end }} |
| 34 | + |
| 35 | + {{ $notebook := .Params.speaker_notebook }} |
| 36 | + {{ if $notebook }} |
| 37 | + <a href="{{ $notebook }}" target="_blank" class="ms-1 btn btn-sm btn-primary"> |
| 38 | + <i class="fa-regular fa-folder mr-2"></i>Notebook</a> |
| 39 | + {{ end }} |
| 40 | + |
| 41 | + {{ $code := .Params.speaker_code }} |
| 42 | + {{ if $code }} |
| 43 | + <a href="{{ $code }}" target="_blank" class="ms-1 btn btn-sm btn-primary"> |
| 44 | + <i class="fa-brands fa-github mr-2"></i>Code</a> |
| 45 | + {{ end }} |
| 46 | + |
| 47 | + {{ if .Params.upcoming }} |
| 48 | + {{ if .Params.upcoming_url }} |
| 49 | + <a href="{{ .Params.upcoming_url }}" target="_blank" class="ms-1 btn btn-sm btn-primary"> |
| 50 | + <i class="fa-regular fa-calendar mr-2"></i>Event</a> |
| 51 | + {{ else }} |
| 52 | + <a href="https://www.youtube.com/@openneuromorphic" target="_blank" class="ms-1 btn btn-sm btn-primary"> |
| 53 | + <i class="fa-brands fa-youtube mr-2"></i>Event</a> |
| 54 | + {{ end }} |
| 55 | + {{ end }} |
| 56 | + </li> |
| 57 | + </ul> |
| 58 | + <div class="content"> |
| 59 | + {{ .Content }} |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + <div class="lg:col-4 mb-14"> |
| 63 | + <div class="pb-4 text-center">~ Share this Site ~ |
| 64 | + {{ partial "override-social-share" (dict "Context" . "Class" "share-icons" "Whatsapp" true |
| 65 | + "Telegram" false) }} |
| 66 | + </div> |
| 67 | + <div class="px-7 pt-7 bg-theme-light dark:bg-darkmode-theme-light rounded"> |
| 68 | + <div class="text-right pb-5"> <!-- Right-align the button --> |
| 69 | + <a href="/getting-involved/" class="btn-primary btn-sm btn">Join our journal club</a> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + <div class="lg:col-3"> |
| 74 | + {{ if .Params.speaker_photo }} |
| 75 | + {{ partial "override-image" (dict "Src" .Params.speaker_photo "Context" .Page "Alt" .Title "Class" "mb-6 rounded" |
| 76 | + "Size" "300x300" "Command" "Fit")}} |
| 77 | + {{ end }} |
| 78 | + </div> |
| 79 | + {{ if .Params.speaker_bio}} |
| 80 | + <div class="lg:col-8"> |
| 81 | + <h3 class="pb-5 pt-5 text-xl">About the Speaker</h3> |
| 82 | + <p>{{ .Params.speaker_bio | markdownify }}</p> |
| 83 | + </div> |
| 84 | + {{ end }} |
| 85 | + <!-- comments --> |
| 86 | + {{ if site.DisqusShortname }} |
| 87 | + <div class="mt-20"> |
| 88 | + {{ template "_internal/disqus.html" . }} |
| 89 | + </div> |
| 90 | + {{ end }} |
| 91 | + </article> |
| 92 | + |
| 93 | + <!-- Related posts --> |
| 94 | + {{ $related := (where site.RegularPages "Section" "journalclub") }} |
| 95 | + {{ $filteredRelated := (where $related "Params.upcoming" "ne" true) }} |
| 96 | + {{ $filteredRelated = $filteredRelated | shuffle | first 3 }} |
| 97 | + {{ with $filteredRelated }} |
| 98 | + <div class="section pb-0"> |
| 99 | + <div class="row"> |
| 100 | + {{ range . }} |
| 101 | + <div class="lg:col-4"> |
| 102 | + {{ partial "components/session-card" . }} |
| 103 | + </div> |
| 104 | + {{ end }} |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + {{ end }} |
| 108 | + </div> |
| 109 | +</section> |
| 110 | +{{ end }} |
0 commit comments