Skip to content

Commit 041779b

Browse files
authored
Merge pull request #264 from neural-loop/main
Page improvements, consistency improved
2 parents d3f3b65 + b5ec665 commit 041779b

File tree

10 files changed

+84
-84
lines changed

10 files changed

+84
-84
lines changed

config/_default/params.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ preloader = "" # use jpg, png, svg or gif format.
4040
# Navigation button
4141
[navigation_button]
4242
enable = true
43-
label = "Join Discord (2100+ joined)"
43+
label = "Join Discord"
44+
label_sub = "(2100+ joined)"
4445
link = "https://discord.gg/hUygPUdD8E"
4546

4647
# search

content/blog/spiking-neural-network-framework-benchmarking/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The ideal library will often depend on a multitude of factors, such as accessibl
5656
**19/2/2024**: [Jens E. Pedersen](/contributors/jens-e-pedersen/) updated the benchmark for Norse to use the correct neuron model and `torch.compile`.
5757

5858
## Code and comments
59-
The code for this benchmark is available [here](https://github.com/open-neuromorphic/open-neuromorphic.github.io/blob/main/content/english/blog/spiking-neural-network-framework-benchmarking/). The order of dimensions in the input tensor and how it is fed to the respective models differs between libraries.
59+
The code for this benchmark is available [here](https://github.com/open-neuromorphic/open-neuromorphic.github.io/blob/main/content/blog/spiking-neural-network-framework-benchmarking/). The order of dimensions in the input tensor and how it is fed to the respective models differs between libraries.
6060
Benchmarks were run on a NVIDIA RTX 4090 with 24GB of VRAM. Frameworks use full precision computation unless stated otherwise.
6161
<!-- Benchmarks are averaged across 100 runs on a NVIDIA A100 GPU with 40GB of vRAM. Standard deviations have been omitted because they are negligible. Frameworks use full precision computation unless stated otherwise. -->
6262

content/contributors/jens-e-pedersen/index.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,11 @@ social:
1111
title: "github"
1212
draft: false
1313
---
14-
Jens Egholm Pedersen is a doctoral student at the [Royal Institute of
15-
Technology (KTH)](https://www.kth.se/profile/jeped/) working to model and construct
16-
[neuromorphic](https://en.wikipedia.org/wiki/Neuromorphic_engineering) control
17-
systems.
14+
Jens Egholm Pedersen is a doctoral student at the [Royal Institute of Technology (KTH)](https://www.kth.se/profile/jeped/) working to model and construct [neuromorphic](https://en.wikipedia.org/wiki/Neuromorphic_engineering) control systems.
1815

19-
When faced with the complexity and ambiguity in the real world, contemporary algorithms
20-
fail spectacularly. There is a strong need for self-correcting, closed-loop systems
21-
to help solve our everyday physical problems.
16+
When faced with the complexity and ambiguity in the real world, contemporary algorithms fail spectacularly. There is a strong need for self-correcting, closed-loop systems to help solve our everyday physical problems.
2217

23-
By simulating and carefully scrutinizing and understanding neural circuits, including
24-
vision, motor control, and self-sustenance, Jens seeks to build autonomous systems
25-
that perform meaningful work, tightly following the Feynman axiom ''What I cannot
26-
create, I do not understand''.
18+
By simulating and carefully scrutinizing and understanding neural circuits, including vision, motor control, and self-sustenance, Jens seeks to build autonomous systems that perform meaningful work, tightly following the Feynman axiom ''What I cannot create, I do not understand''.
2719

2820
He is the maintainer of [norse](/neuromorphic-computing/software/snn-frameworks/norse/) and [AEStream](/neuromorphic-computing/software/data-tools/aestream/).
21+
Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
{{- /* layouts/_default/_markup/render-link.html */ -}}
22
<a href="{{ .Destination | safeURL }}"
3-
{{- with .Title}} title="{{ . }}"{{ end -}}
4-
{{- $isExternal := strings.HasPrefix .Destination "http" -}}
5-
{{- if $isExternal }} target="_blank" rel="noopener"{{ end -}}
6-
{{- $class := "" -}}
7-
{{- if in .Destination "?class=" -}}
8-
{{- $class = index (findRE `class=([^&#]*)` .Destination) 0 | replace `class=` `` | replace `+` ` ` -}}
9-
class="{{ $class }}"
10-
{{- end -}}
11-
>
12-
{{- .Text | safeHTML -}}
13-
{{- if and $isExternal (not (in (string $class) "btn")) (not (in (string $class) "breadcrumb-link-parent")) (not (in (string $class) "social-link-container")) -}}
14-
{{- partial "icon.html" (dict "style" "solid" "name" "arrow-up-right-from-square" "class" "inline-block ml-[.5] pb-[.4]" "width" "1em" "height" "0.7em") -}}
15-
{{- end -}}
16-
</a>
3+
{{- with .Title}} title="{{ . }}"{{ end -}}
4+
{{- $isExternal := strings.HasPrefix .Destination "http" -}}
5+
{{- if $isExternal }} target="_blank" rel="noopener"{{ end -}}
6+
{{- $class := "" -}}
7+
{{- if in .Destination "?class=" -}}
8+
{{- $class = index (findRE `class=([^&#]*)` .Destination) 0 | replace `class=` `` | replace `+` ` ` -}}
9+
class="{{ $class }}"
10+
{{- end -}}
11+
>
12+
{{- .Text | safeHTML -}}
13+
{{- if and $isExternal (not (in (string $class) "btn")) (not (in (string $class) "breadcrumb-link-parent")) (not (in (string $class) "social-link-container")) -}}
14+
{{- partial "icon.html" (dict "style" "solid" "name" "arrow-up-right-from-square" "class" "inline-block ml-[.5] pb-[.4]" "width" "1em" "height" "0.7em") -}}
15+
{{- end -}}
16+
</a><!--
17+
This empty Go template tag with hyphens is a Hugo trick.
18+
It consumes any trailing whitespace (like newlines) from this partial's output.
19+
This prevents the markdown renderer from adding an unwanted space after the <a> tag
20+
and before any subsequent punctuation (e.g., "link," vs. "link ,").
21+
-->{{- "" -}}

layouts/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@ <h2 class="section-title">Start Your Journey</h2>
211211
</div>
212212
<div class="journey-ribbon-content">
213213
<p class="journey-ribbon-contributor">
214-
{{ $ribbon.contributor_text_prefix }}
215-
{{ if $contributor_page_resource }}
214+
{{ $ribbon.contributor_text_prefix -}}
215+
{{- if $contributor_page_resource -}}
216216
<a href="{{ $contributor_page_resource.RelPermalink }}">{{ $ribbon.primary_contributor_name }}</a>
217-
{{ else }}
218-
{{ $ribbon.primary_contributor_name }}
219-
{{ end }}
220-
{{ $ribbon.contributor_text_suffix | safeHTML }}
217+
{{- else -}}
218+
{{- $ribbon.primary_contributor_name -}}
219+
{{- end -}}
220+
{{- $ribbon.contributor_text_suffix | safeHTML -}}
221221
</p>
222222
<h3 class="journey-ribbon-title">{{ $ribbon.title }}</h3>
223223
<p class="journey-ribbon-description">

layouts/partials/components/breadcrumb.html

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,38 @@
22
{{ $class := .Class }}
33
{{ $base := site.BaseURL }}
44

5-
{{/* Visual breadcrumb rendering */}}
65
<nav aria-label="Breadcrumb" class="{{ $class }} md:inline-flex sm:hidden">
7-
<ol class="flex flex-wrap space-x-1 capitalize">
6+
<ol class="flex flex-wrap items-center capitalize text-sm space-x-2">
87
<li>
9-
<div class="flex items-center">
10-
<a class="breadcrumb-link-parent text-primary dark:text-darkmode-primary" href="{{ $base | relLangURL }}">
11-
<span class="breadcrumb-link-text">{{ i18n "home" | default "Home" }}</span>
12-
</a>
13-
<span class="px-1 text-gray-500 dark:text-gray-400" aria-hidden="true">/</span>
14-
</div>
8+
<a href="{{ $base | relLangURL }}" aria-label="Home" title="Home" class="text-gray-600 dark:text-gray-300 flex items-center justify-center w-7 h-7 bg-gray-100 dark:bg-darkmode-theme-dark rounded-md hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors">
9+
{{ partial "icon.html" (dict "style" "solid" "name" "house" "class" "h-4 w-4") }}
10+
</a>
1511
</li>
1612

13+
{{ $pages := slice }}
1714
{{ if or (eq $context.Section "workshops") (eq $context.Section "contributors") }}
18-
{{ $ncPage := site.GetPage "neuromorphic-computing" }}
19-
<li>
20-
<div class="flex items-center">
21-
<a class="breadcrumb-link-parent text-primary dark:text-darkmode-primary" href="{{ ($ncPage.RelPermalink | default "/neuromorphic-computing/") | relLangURL }}">
22-
<span class="breadcrumb-link-text">{{ $ncPage.Title | default "Neuromorphic Computing" }}</span>
23-
</a>
24-
<span class="px-1 text-gray-500 dark:text-gray-400" aria-hidden="true">/</span>
25-
</div>
26-
</li>
15+
{{ $ncPage := site.GetPage "neuromorphic-computing" }}
16+
{{ $pages = $pages | append (dict "Title" ($ncPage.Title | default "Neuromorphic Computing") "Permalink" (($ncPage.RelPermalink | default "/neuromorphic-computing/") | relLangURL)) }}
2717
{{ end }}
2818

2919
{{ range $context.Ancestors.Reverse }}
30-
{{ if and (not .IsHome) (ne .Title "Pages") (ne .Title "") }}
31-
<li>
32-
<div class="flex items-center">
33-
<a class="breadcrumb-link-parent text-primary dark:text-darkmode-primary" href="{{ .RelPermalink }}">
34-
<span class="breadcrumb-link-text">{{ .Title }}</span>
35-
</a>
36-
<span class="px-1 text-gray-500 dark:text-gray-400" aria-hidden="true">/</span>
37-
</div>
38-
</li>
39-
{{ end }}
20+
{{ if and (not .IsHome) (ne .Title "Pages") (ne .Title "") }}
21+
{{ $pages = $pages | append . }}
22+
{{ end }}
23+
{{ end }}
24+
25+
{{ range $pages }}
26+
<li class="text-gray-400 dark:text-gray-500" aria-hidden="true">/</li>
27+
<li>
28+
<a class="breadcrumb-link-parent text-indigo-600 dark:text-indigo-400" href="{{ .Permalink }}">
29+
<span class="breadcrumb-link-text">{{ .Title }}</span>
30+
</a>
31+
</li>
4032
{{ end }}
4133

42-
<li aria-current="page">
43-
<div class="flex items-center">
44-
<span class="text-text dark:text-darkmode-text">{{ $context.Title }}</span>
45-
</div>
34+
<li class="text-gray-400 dark:text-gray-500" aria-hidden="true">/</li>
35+
<li>
36+
<span class="text-text dark:text-darkmode-text font-semibold">{{ $context.Title }}</span>
4637
</li>
4738
</ol>
4839
</nav>
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{{ if and .IsPage .File }}
2-
{{ with .File.Path }}
3-
{{ $dev_url := printf "https://github.dev/open-neuromorphic/open-neuromorphic.github.io/blob/main/content/%s" . }}
4-
<a href="{{ $dev_url }}" target="_blank" rel="noopener"
5-
class="btn normal-case inline-flex flex-shrink-0 items-center gap-x-1.5 rounded-md bg-white dark:bg-darkmode-theme-dark !px-2.5 !py-1 text-xs font-semibold text-gray-900 dark:text-gray-200 shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:bg-gray-50 dark:hover:bg-black/20 transition-colors">
6-
{{ partial "icon.html" (dict "style" "brands" "name" "github" "class" "h-3.5 w-3.5") }}
7-
<span>Edit Page</span>
8-
{{ partial "icon.html" (dict "style" "solid" "name" "arrow-up-right-from-square" "class" "h-3 w-3") }}
9-
</a>
10-
{{ end }}
11-
{{ end }}
2+
{{ with .File.Path }}
3+
{{ $dev_url := printf "https://github.dev/open-neuromorphic/open-neuromorphic.github.io/blob/main/content/%s" . }}
4+
<a href="{{ $dev_url }}" target="_blank" rel="noopener"
5+
class="btn normal-case hidden md:inline-flex flex-shrink-0 items-center gap-x-1.5 rounded-md bg-white dark:bg-darkmode-theme-dark !px-2.5 !py-1 text-xs font-semibold text-gray-900 dark:text-gray-200 shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:bg-gray-50 dark:hover:bg-black/20 transition-colors">
6+
{{ partial "icon.html" (dict "style" "brands" "name" "github" "class" "h-3.5 w-3.5") }}
7+
<span>Edit Page</span>
8+
{{ partial "icon.html" (dict "style" "solid" "name" "arrow-up-right-from-square" "class" "h-3 w-3") }}
9+
</a>
10+
{{ end }}
11+
{{ end }}

layouts/partials/components/speaker-details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="lg:col-3">
22
{{ if .Params.speaker_photo }}
3-
{{ partial "image" (dict "Src" .Params.speaker_photo "Context" .Page "Alt" .Title "Class" "mb-6 rounded" "Size" "300x300" "Command" "Fit")}}
3+
{{ partial "image" (dict "Src" .Params.speaker_photo "Context" .Page "Alt" .Params.speaker_name "Class" "mb-6 rounded" "Size" "300x300" "Command" "Fit")}}
44
{{ end }}
55
</div>
66
{{ if .Params.speaker_bio}}

layouts/partials/essentials/header.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,16 @@
6868
{{ with site.Params.navigation_button }}
6969
{{ if .enable }}
7070
{{ $is_external := findRE `^http` .link }}
71-
<a href="{{ .link | relLangURL }}" class="btn-new-primary btn-sm hidden lg:inline-block" {{ if $is_external }}target="_blank" rel="noopener"{{ end }}>
72-
{{- .label -}}
73-
{{- if $is_external -}}
74-
{{- partial "icon.html" (dict "style" "solid" "name" "arrow-up-right-from-square" "class" "ml-1.5") -}}
75-
{{- end -}}
71+
<a href="{{ .link | relLangURL }}" class="btn btn-new-primary btn-sm !py-1 !px-3 hidden lg:inline-flex items-center" {{ if $is_external }}target="_blank" rel="noopener"{{ end }}>
72+
<div class="text-center">
73+
<span class="block text-sm font-semibold leading-tight">{{ .label }}</span>
74+
{{ with .label_sub }}
75+
<span class="block text-[10px] font-normal leading-tight opacity-80 -mt-px">{{ . }}</span>
76+
{{ end }}
77+
</div>
78+
{{- if $is_external -}}
79+
{{- partial "icon.html" (dict "style" "brands" "name" "discord" "class" "ml-2") -}}
80+
{{- end -}}
7681
</a>
7782
{{ end }}
7883
{{ end }}
@@ -124,7 +129,12 @@
124129
{{ if site.Params.navigation_button.enable }}
125130
<div class="p-4 mt-4 border-t border-border dark:border-darkmode-border">
126131
<a href="{{ site.Params.navigation_button.link | relLangURL }}" class="btn btn-new-primary w-full text-center">
127-
{{ site.Params.navigation_button.label }}
132+
<div class="text-center">
133+
<span class="block text-sm font-semibold leading-tight">{{ site.Params.navigation_button.label }}</span>
134+
{{ with site.Params.navigation_button.label_sub }}
135+
<span class="block text-[10px] font-normal leading-tight opacity-80 -mt-px">{{ . }}</span>
136+
{{ end }}
137+
</div>
128138
</a>
129139
</div>
130140
{{ end }}

layouts/partials/page-header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<section class="from-body to-theme-light dark:from-darkmode-body dark:to-darkmode-theme-light bg-gradient-to-b py-6">
22
<div class="container">
33
<div>
4-
<h1 class="mb-3">{{ .Title | title }}</h1>
5-
<p class="mb-3">{{ .Description }}</p>
6-
<div class="flex flex-wrap items-center justify-between gap-y-2">
4+
<div class="flex flex-wrap items-center justify-between gap-y-2 mb-4">
75
{{ partial "components/breadcrumb" (dict "Context" . ) }}
86
{{ partial "components/edit-page-link.html" . }}
97
</div>
8+
<h1 class="mb-3">{{ .Title | title }}</h1>
9+
<p class="mb-3">{{ .Description }}</p>
1010
</div>
1111
</div>
1212
</section>

0 commit comments

Comments
 (0)