-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5af83ce
commit 8de264e
Showing
5 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+39 KB
...nglish/workshops/spyx-hackathon-speeding-up-neuromorphic-computing/speaker.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
themes/hugoplate/layouts/partials/components/upcoming-wide.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{ $events := where .Site.RegularPages "Params.upcoming" "eq" true }} | ||
{{ if $events }} | ||
{{ $sortedUpcomingEvents := slice }} | ||
{{ range $events }} | ||
{{ $sortedUpcomingEvents = $sortedUpcomingEvents | append . }} | ||
{{ end }} | ||
{{ $sortedUpcomingEvents = sort $sortedUpcomingEvents "Params.date" }} | ||
{{ $upcomingCount := len $sortedUpcomingEvents }} | ||
{{ $maxItems := 4 }} <!-- Define the maximum number of items to display --> | ||
{{ $offset := 1 }} <!-- Define the offset value --> | ||
<h3 class="text-xl pb-4">Upcoming Workshops</h3> | ||
<div class="flex flex-wrap -mx-4"> <!-- Add flex and flex-wrap for horizontal layout --> | ||
{{ range $index, $event := $sortedUpcomingEvents }} | ||
{{ if and (lt $index $maxItems) (ge $index $offset) }} <!-- Check the offset condition --> | ||
<!-- col-4 for each event --> | ||
<div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/3 xl:w-1/3 px-4 mb-1"> | ||
<div class="mb-1"> | ||
<a href="{{ $event.Permalink }}" class="flex"> | ||
{{ $event.Title }}<br> | ||
</a> | ||
<i class="fa-regular dark:text-gray-300 text-gray-600 fa-circle-user mr-2"></i>{{delimit .Params.author ", "}}<br> | ||
<i class="fa-regular dark:text-gray-300 text-gray-600 fa-calendar mr-2"></i>{{ dateFormat "Jan 2, 2006" $event.Params.Date }} | ||
<i class="fa-regular dark:text-gray-300 text-gray-600 fa-clock mr-2"></i>{{ partial "timeConv" $event.Params.start_time }}- {{ partial "timeConv" $event.Params.end_time}} {{ $event.Params.time_zone }} | ||
</div> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
{{ else }} | ||
<!-- Handle the case where there are no upcoming events --> | ||
<p>No upcoming events.</p> | ||
{{ end }} |