Skip to content

Commit ca3e1b4

Browse files
committed
feat: Add blog contribute CTA component
This commit adds a new component that encourages users to contribute to the blog. It is added to blog list and single pages.
1 parent 9f3939d commit ca3e1b4

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

layouts/blog/list.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
</div>
1818
{{ partial "components/pagination.html" . }}
1919
</div>
20+
<div class="mt-16">
21+
{{ partial "components/blog-contribute-cta.html" . }}
22+
</div>
2023
</div>
2124
</div>
2225
</section>
26+
2327
{{ end }}

layouts/blog/single.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
{{ .Content }}
1616
</div>
1717
{{ partial "components/share-cta.html" . }}
18+
1819
{{ partial "components/author-bios.html" . }}
20+
21+
<div class="mt-16">
22+
{{ partial "components/blog-contribute-cta.html" . }}
23+
</div>
1924
</article>
2025
{{ partial "components/sidebar-toc-shared.html" . }}
2126
</div>

layouts/neuromorphic-computing/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ define "main" }}
22
{{ partial "page-header" . }}
33

4-
<section class="section pt-6 mt-0">
4+
<section class="section pt-6 mt-0 pb-16">
55
<div class="container">
66
{{/* Display the main content of the _index.md page */}}
77
<div class="content text-center mb-12 prose dark:prose-invert max-w-none">
@@ -85,7 +85,7 @@
8585
}}
8686

8787
<!-- Recent Posts -->
88-
<div class="mb-16"> <!-- Added mb-16 for spacing similar to new sections -->
88+
<div class="mb-0">
8989
<h3 class="section-title text-3xl font-semibold mb-3">Blog</h3>
9090
<p class="section-subtitle text-lg text-gray-600 dark:text-gray-400 mb-8 mx-auto">Stay informed with our latest articles, tutorials, and community updates.</p>
9191
<div class="row"> <!-- Kept row for 3-column layout for blogs -->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<div class="p-8 rounded-lg bg-theme-light dark:bg-darkmode-theme-light shadow-lg">
2+
<div class="flex flex-col md:flex-row items-center text-center md:text-left gap-8">
3+
<div class="flex-shrink-0">
4+
{{ partial "icon.html" (dict "style" "solid" "name" "pen-to-square" "class" "text-6xl text-primary dark:text-darkmode-primary") }}
5+
</div>
6+
<div class="flex-grow">
7+
<h2 class="text-3xl font-bold mb-2">
8+
Have an idea? <span class="gradient-text">Share your voice.</span>
9+
</h2>
10+
<p class="text-lg text-gray-600 dark:text-gray-400 mb-4">
11+
Open Neuromorphic is a community-driven platform. We invite you to share your research, tutorials, or insights with a global audience of neuromorphic enthusiasts.
12+
</p>
13+
<a href="{{ "/getting-involved/write-a-blog-post/" | relLangURL }}" class="btn btn-new-primary">
14+
Learn How to Contribute
15+
</a>
16+
</div>
17+
</div>
18+
</div>

0 commit comments

Comments
 (0)