|
1 | 1 | {{ define "main" }}
|
2 |
| -<section class="section-sm xl:pb-5 hero"> |
3 |
| - <div class="container"> |
4 |
| - <div class="row justify-between"> |
5 |
| - <div class="md:col-7 pt-10 lg:col-8"> |
6 |
| - <h1 class="mb-4 homepage"> |
7 |
| - Neuromorphic Computing and Engineering Community |
8 |
| - </h1> |
9 |
| - <ul class="list-disc pl-6 ml-3 mb-8 text-lg"> |
10 |
| - <li class="relative mb-4 pl-3"> |
11 |
| - <a href="/neuromorphic-computing/">Educational content</a> to get you started with the neuromorphic |
12 |
| - engineering. |
13 |
| - </li> |
14 |
| - <li class="relative mb-4 pl-3"> |
15 |
| - <a href="/workshops/">Events about neuromorphic research and software</a>, with contributions from both |
16 |
| - academia and industry. |
17 |
| - </li> |
18 |
| - <li class="relative mb-4 pl-3"> |
19 |
| - A curated list of neuromorphc open source <a href="/neuromorphic-computing/software/">software</a> and <a |
20 |
| - href="/neuromorphic-computing/hardware/">hardware</a> to make it easier to find <strong>the tool you |
21 |
| - need</strong>. |
22 |
| - </li> |
23 |
| - <li class="relative mb-4 pl-3"> |
24 |
| - <a href="https://github.com/open-neuromorphic" target="_blank">A platform for your code</a>. If you wish to |
25 |
| - create a new repository or migrate your existing code to ONM, please get in touch with us. |
26 |
| - </li> |
27 |
| - </ul> |
28 |
| - <p class="text-xl pb-3">Ways to Get Involved</p> |
29 |
| - <div class="grid grid-cols-2 gap-4"> |
30 |
| - <!-- Content Team Card --> |
31 |
| - <a href="/getting-involved#content" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> |
32 |
| - <h2 class="text-xl font-semibold mb-2">Blogs & Writing</h2> |
33 |
| - <p>Contribute to website content, blogs, newsletters, and technical guides.</p> |
34 |
| - </a> |
| 2 | + <section class="section-sm xl:pb-5 hero"> |
| 3 | + <div class="container"> |
| 4 | + <div class="row justify-between"> |
| 5 | + {{ $events := where .Site.RegularPages "Section" "workshops" }} |
| 6 | + {{ $upcomingEvents := where $events "Params.upcoming" true }} |
| 7 | + {{ if $upcomingEvents }} |
| 8 | + <div class="md:col-7 pt-10 lg:col-8"> |
| 9 | + {{ else }} |
| 10 | + <div class="md:col-12"> |
| 11 | + {{ end }} |
| 12 | + <h1 class="mb-4 homepage"> |
| 13 | + Neuromorphic Computing and Engineering Community |
| 14 | + </h1> |
| 15 | + <ul class="list-disc pl-6 ml-3 mb-8 text-lg"> |
| 16 | + <li class="relative mb-4 pl-3"> |
| 17 | + <a href="/neuromorphic-computing/">Educational content</a> to get you started with the neuromorphic |
| 18 | + engineering. |
| 19 | + </li> |
| 20 | + <li class="relative mb-4 pl-3"> |
| 21 | + <a href="/workshops/">Events about neuromorphic research and software</a>, with contributions from both |
| 22 | + academia and industry. |
| 23 | + </li> |
| 24 | + <li class="relative mb-4 pl-3"> |
| 25 | + A curated list of neuromorphc open source <a href="/neuromorphic-computing/software/">software</a> and <a |
| 26 | + href="/neuromorphic-computing/hardware/">hardware</a> to make it easier to find <strong>the tool you |
| 27 | + need</strong>. |
| 28 | + </li> |
| 29 | + <li class="relative mb-4 pl-3"> |
| 30 | + <a href="https://github.com/open-neuromorphic" target="_blank">A platform for your code</a>. If you wish |
| 31 | + to |
| 32 | + create a new repository or migrate your existing code to ONM, please get in touch with us. |
| 33 | + </li> |
| 34 | + </ul> |
| 35 | + <p class="text-xl pb-3">Ways to Get Involved</p> |
| 36 | + <div class="grid grid-cols-2 gap-4"> |
| 37 | + <!-- Content Team Card --> |
| 38 | + <a href="/getting-involved#content" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> |
| 39 | + <h2 class="text-xl font-semibold mb-2">Blogs & Writing</h2> |
| 40 | + <p>Contribute to website content, blogs, newsletters, and technical guides.</p> |
| 41 | + </a> |
35 | 42 |
|
36 |
| - <!-- Workshop Card --> |
37 |
| - <a href="/getting-involved#workshop" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> |
38 |
| - <h2 class="text-xl font-semibold mb-2">Workshop</h2> |
39 |
| - <p>Participate in workshops to share your expertise and insights.</p> |
40 |
| - </a> |
| 43 | + <!-- Workshop Card --> |
| 44 | + <a href="/getting-involved#workshop" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> |
| 45 | + <h2 class="text-xl font-semibold mb-2">Workshop</h2> |
| 46 | + <p>Participate in workshops to share your expertise and insights.</p> |
| 47 | + </a> |
41 | 48 |
|
42 |
| - <!-- Code Card --> |
43 |
| - <a href="/getting-involved#code" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> |
44 |
| - <h2 class="text-xl font-semibold mb-2">Code</h2> |
45 |
| - <p>Contribute to ONM projects or host your own project with ONM.</p> |
46 |
| - </a> |
| 49 | + <!-- Code Card --> |
| 50 | + <a href="/getting-involved#code" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> |
| 51 | + <h2 class="text-xl font-semibold mb-2">Code</h2> |
| 52 | + <p>Contribute to ONM projects or host your own project with ONM.</p> |
| 53 | + </a> |
47 | 54 |
|
48 |
| - <!-- Discord Card --> |
49 |
| - <a href="#discord" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> |
50 |
| - <h2 class="text-xl font-semibold mb-2">Discord</h2> |
51 |
| - <p>Join our welcoming and collaborative community on Discord.</p> |
52 |
| - </a> |
| 55 | + <!-- Discord Card --> |
| 56 | + <a href="#discord" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> |
| 57 | + <h2 class="text-xl font-semibold mb-2">Discord</h2> |
| 58 | + <p>Join our welcoming and collaborative community on Discord.</p> |
| 59 | + </a> |
| 60 | + </div> |
53 | 61 | </div>
|
54 | 62 |
|
55 |
| - |
56 |
| - </div> |
57 |
| - <div class="mb:md-0 md:col-5 lg:col-4 mb-6"> |
58 |
| -{{ $events := where .Site.RegularPages "Section" "workshops" }} |
59 |
| -{{ $upcomingEvents := where $events "Params.upcoming" true }} |
60 |
| -{{ if $upcomingEvents }} |
61 |
| - <div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-7"> |
62 |
| - <h3 class="pb-5 text-xl">Next Workshop</h3> |
63 |
| - {{ $sortedUpcomingEvents := sort $upcomingEvents "Params.date" }} |
64 |
| - {{ with index $sortedUpcomingEvents 0 }} |
65 |
| - <!-- Display the nearest upcoming event --> |
66 |
| - <div class="mb-0"> |
67 |
| - {{ partial "components/session-card" . }} |
68 |
| - </div> |
69 |
| - {{ end }} |
| 63 | + {{ if $upcomingEvents }} |
| 64 | + <div class="mb:md-0 md:col-5 lg:col-4 mb-6"> |
| 65 | + <div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-7"> |
| 66 | + <h3 class="pb-5 text-xl">Next Workshop</h3> |
| 67 | + {{ $sortedUpcomingEvents := sort $upcomingEvents "Params.date" }} |
| 68 | + {{ with index $sortedUpcomingEvents 0 }} |
| 69 | + <!-- Display the nearest upcoming event --> |
| 70 | + <div class="mb-0"> |
| 71 | + {{ partial "components/session-card" . }} |
| 72 | + </div> |
| 73 | + {{ end }} |
| 74 | + </div> |
70 | 75 | </div>
|
71 |
| -{{ end }} |
72 |
| - </div> |
73 |
| - <div class="pt-2 pb-0"> |
74 |
| - {{ if gt (len $upcomingEvents) 1}} <div class="bg-theme-light dark:bg-darkmode-theme-light rounded mt-3 p-5"> |
75 |
| - {{ partial "components/upcoming-wide" . }} |
76 |
| - </div> |
77 |
| - {{ end }} |
| 76 | + {{ end }} |
| 77 | + <div class="pt-2 pb-0"> |
| 78 | + {{ if gt (len $upcomingEvents) 1 }} |
| 79 | + <div class="bg-theme-light dark:bg-darkmode-theme-light rounded mt-3 p-5"> |
| 80 | + {{ partial "components/upcoming-wide" . }} |
| 81 | + </div> |
| 82 | + {{ end }} |
78 | 83 |
|
| 84 | + </div> |
79 | 85 | </div>
|
80 | 86 | </div>
|
81 |
| - </div> |
82 |
| - </div> |
83 |
| -</section> |
84 |
| -<section class="section-sm"> |
85 |
| - <div class="container"> |
86 |
| - <div class="row"> |
87 |
| - <div class="col-6 pb-8"> |
88 |
| - <h3>Recent Workshops</h3> |
89 |
| - </div> |
90 |
| - <div class="col-6"> |
91 |
| - <a href="/workshops" class="btn btn-primary float-right">Explore All Workshops</a> |
92 |
| - </div> |
93 |
| - {{ $events := where .Site.RegularPages "Section" "workshops" }} |
94 |
| - {{ $recentRecordings := slice }} |
95 |
| - {{ $sortedRecentRecordings := sort $events "Params.date" "desc" }} |
96 |
| - {{ range first 3 (where $sortedRecentRecordings "Params.upcoming" "ne" true) }} |
97 |
| - <div class="md:col-12 lg:col-4 mb-14"> |
98 |
| - {{ partial "components/session-card" . }} |
99 |
| - </div> |
100 |
| - {{ end }} |
101 | 87 | </div>
|
102 |
| - <div class="row"> |
103 |
| - <div class="col-6 pb-8"> |
104 |
| - <h3>Recent Posts</h3> |
105 |
| - </div> |
106 |
| - <div class="col-6"> |
107 |
| - <a href="/blog/" class="btn btn-primary float-right">Explore All Posts</a> |
| 88 | + </section> |
| 89 | + <section class="section-sm"> |
| 90 | + <div class="container"> |
| 91 | + <div class="row"> |
| 92 | + <div class="col-6 pb-8"> |
| 93 | + <h3>Recent Workshops</h3> |
| 94 | + </div> |
| 95 | + <div class="col-6"> |
| 96 | + <a href="/workshops" class="btn btn-primary float-right">Explore All Workshops</a> |
| 97 | + </div> |
| 98 | + {{ $events := where .Site.RegularPages "Section" "workshops" }} |
| 99 | + {{ $recentRecordings := slice }} |
| 100 | + {{ $sortedRecentRecordings := sort $events "Params.date" "desc" }} |
| 101 | + {{ range first 3 (where $sortedRecentRecordings "Params.upcoming" "ne" true) }} |
| 102 | + <div class="md:col-12 lg:col-4 mb-14"> |
| 103 | + {{ partial "components/session-card" . }} |
| 104 | + </div> |
| 105 | + {{ end }} |
108 | 106 | </div>
|
109 |
| - {{ $events := where .Site.RegularPages "Section" "blog" }} |
110 |
| - {{ $recentRecordings := slice }} |
111 |
| - {{ $sortedRecentRecordings := sort $events "Params.date" "desc" }} |
112 |
| - {{ range first 4 $sortedRecentRecordings }} |
113 |
| - <div class="md:col-12 lg:col-3 mb-14"> |
114 |
| - {{ partial "components/blog-card" . }} |
| 107 | + <div class="row"> |
| 108 | + <div class="col-6 pb-8"> |
| 109 | + <h3>Recent Posts</h3> |
| 110 | + </div> |
| 111 | + <div class="col-6"> |
| 112 | + <a href="/blog/" class="btn btn-primary float-right">Explore All Posts</a> |
| 113 | + </div> |
| 114 | + {{ $events := where .Site.RegularPages "Section" "blog" }} |
| 115 | + {{ $recentRecordings := slice }} |
| 116 | + {{ $sortedRecentRecordings := sort $events "Params.date" "desc" }} |
| 117 | + {{ range first 4 $sortedRecentRecordings }} |
| 118 | + <div class="md:col-12 lg:col-3 mb-14"> |
| 119 | + {{ partial "components/blog-card" . }} |
| 120 | + </div> |
| 121 | + {{ end }} |
115 | 122 | </div>
|
116 |
| - {{ end }} |
117 | 123 | </div>
|
118 |
| - </div> |
119 |
| -</section> |
| 124 | + </section> |
120 | 125 | {{ end }}
|
0 commit comments