-
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.
Merge pull request #186 from ai-models/main
a bit of clean up
- Loading branch information
Showing
3 changed files
with
112 additions
and
107 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
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
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 |
---|---|---|
@@ -1,120 +1,125 @@ | ||
{{ define "main" }} | ||
<section class="section-sm xl:pb-5 hero"> | ||
<div class="container"> | ||
<div class="row justify-between"> | ||
<div class="md:col-7 pt-10 lg:col-8"> | ||
<h1 class="mb-4 homepage"> | ||
Neuromorphic Computing and Engineering Community | ||
</h1> | ||
<ul class="list-disc pl-6 ml-3 mb-8 text-lg"> | ||
<li class="relative mb-4 pl-3"> | ||
<a href="/neuromorphic-computing/">Educational content</a> to get you started with the neuromorphic | ||
engineering. | ||
</li> | ||
<li class="relative mb-4 pl-3"> | ||
<a href="/workshops/">Events about neuromorphic research and software</a>, with contributions from both | ||
academia and industry. | ||
</li> | ||
<li class="relative mb-4 pl-3"> | ||
A curated list of neuromorphc open source <a href="/neuromorphic-computing/software/">software</a> and <a | ||
href="/neuromorphic-computing/hardware/">hardware</a> to make it easier to find <strong>the tool you | ||
need</strong>. | ||
</li> | ||
<li class="relative mb-4 pl-3"> | ||
<a href="https://github.com/open-neuromorphic" target="_blank">A platform for your code</a>. If you wish to | ||
create a new repository or migrate your existing code to ONM, please get in touch with us. | ||
</li> | ||
</ul> | ||
<p class="text-xl pb-3">Ways to Get Involved</p> | ||
<div class="grid grid-cols-2 gap-4"> | ||
<!-- Content Team Card --> | ||
<a href="/getting-involved#content" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> | ||
<h2 class="text-xl font-semibold mb-2">Blogs & Writing</h2> | ||
<p>Contribute to website content, blogs, newsletters, and technical guides.</p> | ||
</a> | ||
<section class="section-sm xl:pb-5 hero"> | ||
<div class="container"> | ||
<div class="row justify-between"> | ||
{{ $events := where .Site.RegularPages "Section" "workshops" }} | ||
{{ $upcomingEvents := where $events "Params.upcoming" true }} | ||
{{ if $upcomingEvents }} | ||
<div class="md:col-7 pt-10 lg:col-8"> | ||
{{ else }} | ||
<div class="md:col-12"> | ||
{{ end }} | ||
<h1 class="mb-4 homepage"> | ||
Neuromorphic Computing and Engineering Community | ||
</h1> | ||
<ul class="list-disc pl-6 ml-3 mb-8 text-lg"> | ||
<li class="relative mb-4 pl-3"> | ||
<a href="/neuromorphic-computing/">Educational content</a> to get you started with the neuromorphic | ||
engineering. | ||
</li> | ||
<li class="relative mb-4 pl-3"> | ||
<a href="/workshops/">Events about neuromorphic research and software</a>, with contributions from both | ||
academia and industry. | ||
</li> | ||
<li class="relative mb-4 pl-3"> | ||
A curated list of neuromorphc open source <a href="/neuromorphic-computing/software/">software</a> and <a | ||
href="/neuromorphic-computing/hardware/">hardware</a> to make it easier to find <strong>the tool you | ||
need</strong>. | ||
</li> | ||
<li class="relative mb-4 pl-3"> | ||
<a href="https://github.com/open-neuromorphic" target="_blank">A platform for your code</a>. If you wish | ||
to | ||
create a new repository or migrate your existing code to ONM, please get in touch with us. | ||
</li> | ||
</ul> | ||
<p class="text-xl pb-3">Ways to Get Involved</p> | ||
<div class="grid grid-cols-2 gap-4"> | ||
<!-- Content Team Card --> | ||
<a href="/getting-involved#content" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> | ||
<h2 class="text-xl font-semibold mb-2">Blogs & Writing</h2> | ||
<p>Contribute to website content, blogs, newsletters, and technical guides.</p> | ||
</a> | ||
|
||
<!-- Workshop Card --> | ||
<a href="/getting-involved#workshop" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> | ||
<h2 class="text-xl font-semibold mb-2">Workshop</h2> | ||
<p>Participate in workshops to share your expertise and insights.</p> | ||
</a> | ||
<!-- Workshop Card --> | ||
<a href="/getting-involved#workshop" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> | ||
<h2 class="text-xl font-semibold mb-2">Workshop</h2> | ||
<p>Participate in workshops to share your expertise and insights.</p> | ||
</a> | ||
|
||
<!-- Code Card --> | ||
<a href="/getting-involved#code" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> | ||
<h2 class="text-xl font-semibold mb-2">Code</h2> | ||
<p>Contribute to ONM projects or host your own project with ONM.</p> | ||
</a> | ||
<!-- Code Card --> | ||
<a href="/getting-involved#code" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> | ||
<h2 class="text-xl font-semibold mb-2">Code</h2> | ||
<p>Contribute to ONM projects or host your own project with ONM.</p> | ||
</a> | ||
|
||
<!-- Discord Card --> | ||
<a href="#discord" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> | ||
<h2 class="text-xl font-semibold mb-2">Discord</h2> | ||
<p>Join our welcoming and collaborative community on Discord.</p> | ||
</a> | ||
<!-- Discord Card --> | ||
<a href="#discord" class="bg-blue-100 dark:bg-darkmode-theme-light p-4 rounded-lg"> | ||
<h2 class="text-xl font-semibold mb-2">Discord</h2> | ||
<p>Join our welcoming and collaborative community on Discord.</p> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
<div class="mb:md-0 md:col-5 lg:col-4 mb-6"> | ||
{{ $events := where .Site.RegularPages "Section" "workshops" }} | ||
{{ $upcomingEvents := where $events "Params.upcoming" true }} | ||
{{ if $upcomingEvents }} | ||
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-7"> | ||
<h3 class="pb-5 text-xl">Next Workshop</h3> | ||
{{ $sortedUpcomingEvents := sort $upcomingEvents "Params.date" }} | ||
{{ with index $sortedUpcomingEvents 0 }} | ||
<!-- Display the nearest upcoming event --> | ||
<div class="mb-0"> | ||
{{ partial "components/session-card" . }} | ||
</div> | ||
{{ end }} | ||
{{ if $upcomingEvents }} | ||
<div class="mb:md-0 md:col-5 lg:col-4 mb-6"> | ||
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-7"> | ||
<h3 class="pb-5 text-xl">Next Workshop</h3> | ||
{{ $sortedUpcomingEvents := sort $upcomingEvents "Params.date" }} | ||
{{ with index $sortedUpcomingEvents 0 }} | ||
<!-- Display the nearest upcoming event --> | ||
<div class="mb-0"> | ||
{{ partial "components/session-card" . }} | ||
</div> | ||
{{ end }} | ||
</div> | ||
</div> | ||
{{ end }} | ||
</div> | ||
<div class="pt-2 pb-0"> | ||
{{ if gt (len $upcomingEvents) 1}} <div class="bg-theme-light dark:bg-darkmode-theme-light rounded mt-3 p-5"> | ||
{{ partial "components/upcoming-wide" . }} | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
<div class="pt-2 pb-0"> | ||
{{ if gt (len $upcomingEvents) 1 }} | ||
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded mt-3 p-5"> | ||
{{ partial "components/upcoming-wide" . }} | ||
</div> | ||
{{ end }} | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<section class="section-sm"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-6 pb-8"> | ||
<h3>Recent Workshops</h3> | ||
</div> | ||
<div class="col-6"> | ||
<a href="/workshops" class="btn btn-primary float-right">Explore All Workshops</a> | ||
</div> | ||
{{ $events := where .Site.RegularPages "Section" "workshops" }} | ||
{{ $recentRecordings := slice }} | ||
{{ $sortedRecentRecordings := sort $events "Params.date" "desc" }} | ||
{{ range first 3 (where $sortedRecentRecordings "Params.upcoming" "ne" true) }} | ||
<div class="md:col-12 lg:col-4 mb-14"> | ||
{{ partial "components/session-card" . }} | ||
</div> | ||
{{ end }} | ||
</div> | ||
<div class="row"> | ||
<div class="col-6 pb-8"> | ||
<h3>Recent Posts</h3> | ||
</div> | ||
<div class="col-6"> | ||
<a href="/blog/" class="btn btn-primary float-right">Explore All Posts</a> | ||
</section> | ||
<section class="section-sm"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-6 pb-8"> | ||
<h3>Recent Workshops</h3> | ||
</div> | ||
<div class="col-6"> | ||
<a href="/workshops" class="btn btn-primary float-right">Explore All Workshops</a> | ||
</div> | ||
{{ $events := where .Site.RegularPages "Section" "workshops" }} | ||
{{ $recentRecordings := slice }} | ||
{{ $sortedRecentRecordings := sort $events "Params.date" "desc" }} | ||
{{ range first 3 (where $sortedRecentRecordings "Params.upcoming" "ne" true) }} | ||
<div class="md:col-12 lg:col-4 mb-14"> | ||
{{ partial "components/session-card" . }} | ||
</div> | ||
{{ end }} | ||
</div> | ||
{{ $events := where .Site.RegularPages "Section" "blog" }} | ||
{{ $recentRecordings := slice }} | ||
{{ $sortedRecentRecordings := sort $events "Params.date" "desc" }} | ||
{{ range first 4 $sortedRecentRecordings }} | ||
<div class="md:col-12 lg:col-3 mb-14"> | ||
{{ partial "components/blog-card" . }} | ||
<div class="row"> | ||
<div class="col-6 pb-8"> | ||
<h3>Recent Posts</h3> | ||
</div> | ||
<div class="col-6"> | ||
<a href="/blog/" class="btn btn-primary float-right">Explore All Posts</a> | ||
</div> | ||
{{ $events := where .Site.RegularPages "Section" "blog" }} | ||
{{ $recentRecordings := slice }} | ||
{{ $sortedRecentRecordings := sort $events "Params.date" "desc" }} | ||
{{ range first 4 $sortedRecentRecordings }} | ||
<div class="md:col-12 lg:col-3 mb-14"> | ||
{{ partial "components/blog-card" . }} | ||
</div> | ||
{{ end }} | ||
</div> | ||
{{ end }} | ||
</div> | ||
</div> | ||
</section> | ||
</section> | ||
{{ end }} |