Skip to content

Commit 9d58bfe

Browse files
committed
refactor: software single layout
Replaced static contribution block with partial. Made at-a-glance sticky in sidebar. Added share component.
1 parent 06a3d71 commit 9d58bfe

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

layouts/neuromorphic-software/single.html

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,27 @@
99
{{ .Content }}
1010
</article>
1111

12-
<blockquote class="p-4 border-l-4 border-[var(--color-primary-new)] bg-blue-50 dark:bg-darkmode-theme-dark">
13-
<h3 class="text-lg font-semibold !mt-0 !mb-2">Want to contribute to this entry?</h3>
14-
<p class="!mb-0">
15-
Help us keep this guide up-to-date! You can submit tutorials, case studies, or corrections by
16-
<a href="https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues" target="_blank">opening an issue on GitHub</a> or joining the discussion on our <a href="https://discord.gg/C9bzWgNmqk" target="_blank">Discord server</a>.
17-
</p>
18-
</blockquote>
12+
{{ partial "components/content-contribute-cta.html" (dict
13+
"icon" "solid code"
14+
"title" "Help Improve this <span class=\"gradient-text\">Software Guide</span>"
15+
"description" "Our software guide is maintained by the community. If you have updates, see an error, or want to suggest a new tool, please let us know by opening an issue on our GitHub repository."
16+
"link" "https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues/new/choose"
17+
"link_text" "Suggest an Edit on GitHub"
18+
) }}
1919

20-
<div class="mt-8 flex justify-end">
21-
{{ partial "override-social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" true "Telegram" false) }}
20+
<div class="mt-8">
21+
{{ partial "components/share-cta.html" . }}
2222
</div>
2323
</div>
2424

2525
{{/* Sidebar Column */}}
2626
<aside class="lg:col-4">
27-
{{ partial "software/at-a-glance.html" . }}
27+
<div class="pb-4">
28+
{{ partial "components/og-preview.html" . }}
29+
</div>
30+
<div class="sticky top-24">
31+
{{ partial "software/at-a-glance.html" . }}
32+
</div>
2833
</aside>
2934
</div>
3035

layouts/partials/software/at-a-glance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ $page := . }}
22
{{ with $page.Params }}
3-
<div class="p-6 rounded-lg bg-theme-light dark:bg-darkmode-theme-light shadow-lg sticky top-28">
3+
<div class="p-6 rounded-lg bg-theme-light dark:bg-darkmode-theme-light shadow-lg">
44
{{ with .logo }}
55
{{ $logoRes := $page.Resources.GetMatch . }}
66
{{ if $logoRes }}

0 commit comments

Comments
 (0)