Skip to content

Commit 97cc7ce

Browse files
committed
feat: Enhance sidebar and content layouts
This commit improves the layout and functionality of the sidebar and content areas: - Added og-preview component to sidebar - Adjusted TOC container height - Modified styles for og-preview component - Modified row layout for better content alignment
1 parent 9e69540 commit 97cc7ce

File tree

4 files changed

+4
-23
lines changed

4 files changed

+4
-23
lines changed

assets/scss/components/_og-preview.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
.social-share-overlay {
4141
@apply absolute left-0 right-0 bottom-0 h-auto flex justify-center opacity-0 transition-opacity duration-300 ease-in-out z-[2];
42+
pointer-events: none;
4243
}
4344

4445
.social-icons-container {
@@ -51,6 +52,7 @@
5152
background: rgba(0,0,0, 0.6);
5253
backdrop-filter: blur(2px);
5354
border-radius: 50%;
55+
pointer-events: auto;
5456

5557
&:hover {
5658
transform: scale(1.1);

layouts/blog/single.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@
1414
<div class="content mb-10">
1515
{{ .Content }}
1616
</div>
17-
18-
{{/* --- SHARING & SUPPORT CTA SECTION --- */}}
19-
<div class="border-t border-border dark:border-darkmode-border mt-10 pt-8 text-center">
20-
<h3 class="text-2xl font-bold mb-3">Enjoyed This Post? Support Our Community</h3>
21-
<p class="mb-6 text-gray-700 dark:text-gray-300 max-w-2xl mx-auto">
22-
Thanks for reading! If you made it this far, you might be interested in supporting us. Sharing our posts helps amplify our signal and get the word out—it's an extremely valuable way to support our community, along with linking to our content from your website.
23-
</p>
24-
{{ partial "components/og-preview.html" . }}
25-
</div>
26-
{{/* --- END SHARING & SUPPORT CTA SECTION --- */}}
2717

2818
{{ partial "components/author-bios.html" . }}
2919
</article>

layouts/neuromorphic-hardware/single.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@
2222
<div class="content mb-10">
2323
{{ .Content }}
2424
</div>
25-
26-
{{/* --- SHARING & SUPPORT CTA SECTION --- */}}
27-
<div class="border-t border-border dark:border-darkmode-border mt-10 pt-8 text-center">
28-
<h3 class="text-2xl font-bold mb-3">Enjoyed This Post? Support Our Community</h3>
29-
<p class="mb-6 text-gray-700 dark:text-gray-300 max-w-2xl mx-auto">
30-
Thanks for reading! If you made it this far, you might be interested in supporting us. Sharing our posts helps amplify our signal and get the word out—it's an extremely valuable way to support our community, along with linking to our content from your website.
31-
</p>
32-
{{ partial "components/og-preview.html" . }}
33-
</div>
34-
{{/* --- END SHARING & SUPPORT CTA SECTION --- */}}
35-
3625
</article>
3726
{{ partial "components/sidebar-toc-shared.html" . }}
3827
</div>

layouts/partials/components/sidebar-toc-shared.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{ if gt (len .TableOfContents) 80 }}
22
<aside class="lg:col-4 hidden lg:block">
3-
<div class="">
3+
<div class="mb-6">
44
{{ partial "components/og-preview.html" . }}
5-
</div>
5+
</div>
66
<div class="sticky top-24 space-y-6">
77
{{/* Table of Contents Section */}}
88
<div class="px-3 pt-5 pb-5 content-panel">

0 commit comments

Comments
 (0)