-
- +
+ {post.data.heroImage && ( +
+ {post.data.title} +
+ )} + +
+ +
- +
- +
@@ -257,22 +250,22 @@ const { Content } = await post.render(); margin: 0 auto; padding: 0 var(--container-padding, 1.5rem); } - + .blog-post { padding: 2rem 0; } - + .post-header { margin-bottom: 2rem; text-align: center; } - + .post-header h1 { font-size: var(--font-size-4xl, 2.25rem); margin-bottom: 1rem; line-height: 1.2; } - + .post-meta { display: flex; flex-wrap: wrap; @@ -282,117 +275,61 @@ const { Content } = await post.render(); font-size: var(--font-size-sm, 0.875rem); font-family: var(--font-mono); } - - .hero-image { - margin-bottom: 2rem; - border-radius: 12px; - overflow: hidden; - border: 1px solid var(--border-primary); - } - - .hero-image img { - width: 100%; - height: auto; - display: block; - } - + .post-content { display: grid; grid-template-columns: 3fr 1fr; gap: 2rem; } - + + .post-main-column { + display: flex; + flex-direction: column; + } + + .hero-image { + margin-bottom: 2rem; + border-radius: 12px; + overflow: hidden; + border: 1px solid var(--border-primary); + /* Hero image now contained within post-main-column */ + width: 100%; + } + + .hero-image img { + width: 100%; + height: auto; + display: block; + } + .post-body { background: var(--card-bg); border-radius: 12px; padding: 2rem; border: 1px solid var(--border-primary); } - + .post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; } - + .sidebar-block { background: var(--card-bg); border-radius: 12px; padding: 1.5rem; border: 1px solid var(--border-primary); } - - .sidebar-block h3, .sidebar-title { + + .sidebar-block h3 { font-size: var(--font-size-lg, 1.125rem); margin-bottom: 1rem; color: var(--text-primary); } - /* Author Card Styles */ - .author-profile { - display: flex; - align-items: center; - gap: 1rem; - } - - .author-avatar { - width: 60px; - height: 60px; - border-radius: 50%; - overflow: hidden; - border: 2px solid var(--accent-primary); - } - - .author-avatar img { - width: 100%; - height: 100%; - object-fit: cover; - } - - .default-avatar { - width: 100%; - height: 100%; - display: flex; - align-items: center; - justify-content: center; - background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); - color: white; - font-size: 1.5rem; - font-weight: bold; - } - - .author-info { - flex: 1; - } - - .author-name { - font-weight: 600; - font-size: 1.1rem; - margin-bottom: 0.25rem; - color: var(--text-primary); - } - - .author-bio { - font-size: 0.875rem; - color: var(--text-secondary); - margin-bottom: 0.5rem; - line-height: 1.4; - } - - .author-link { - display: inline-block; - font-size: 0.8rem; - padding: 0.25rem 0.75rem; - background: rgba(6, 182, 212, 0.1); - border-radius: 20px; - color: var(--accent-primary); - text-decoration: none; - transition: all 0.2s ease; - } - - .author-link:hover { - background: rgba(6, 182, 212, 0.2); - transform: translateY(-2px); + .knowledge-graph-section { + padding: 1rem; } .tags { @@ -400,7 +337,7 @@ const { Content } = await post.render(); flex-wrap: wrap; gap: 0.5rem; } - + .tag { display: inline-block; padding: 0.25rem 0.75rem; @@ -411,18 +348,18 @@ const { Content } = await post.render(); text-decoration: none; transition: all 0.2s ease; } - + .tag:hover { background: rgba(16, 185, 129, 0.2); transform: translateY(-2px); } - + .category, .categories { display: flex; flex-direction: column; gap: 0.5rem; } - + .category { display: inline-block; padding: 0.5rem 1rem; @@ -435,27 +372,41 @@ const { Content } = await post.render(); transition: all 0.3s ease; text-align: center; } - + .category:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } - + + /* Author Card */ + .author-card { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + } + + .author-name { + font-weight: 600; + margin-top: 0.5rem; + color: var(--text-primary); + } + /* Related Posts */ .related-posts { list-style: none; padding: 0; margin: 0; } - + .related-posts li { margin-bottom: 1rem; } - + .related-posts li:last-child { margin-bottom: 0; } - + .related-post { display: block; padding: 0.75rem; @@ -464,20 +415,20 @@ const { Content } = await post.render(); text-decoration: none; transition: all 0.2s ease; } - + .related-post:hover { background: rgba(6, 182, 212, 0.05); border-color: var(--accent-primary); transform: translateY(-2px); } - + .related-post-title { color: var(--text-primary); font-size: 0.9rem; margin-bottom: 0.5rem; font-weight: 500; } - + .related-post-meta { font-size: 0.75rem; color: var(--text-tertiary); @@ -490,7 +441,7 @@ const { Content } = await post.render(); display: flex; justify-content: center; } - + .back-to-blog { display: flex; align-items: center; @@ -504,57 +455,57 @@ const { Content } = await post.render(); font-weight: 500; transition: all 0.2s ease; } - + .back-to-blog:hover { border-color: var(--accent-primary); background: var(--bg-tertiary); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); } - + /* Content Styling */ .post-body { font-size: 1.05rem; line-height: 1.7; color: var(--text-primary); } - + .post-body h2 { font-size: 1.8rem; margin: 2rem 0 1rem; color: var(--text-primary); } - + .post-body h3 { font-size: 1.4rem; margin: 1.75rem 0 0.75rem; color: var(--text-primary); } - + .post-body p { margin-bottom: 1.25rem; } - + .post-body a { color: var(--accent-primary); text-decoration: none; border-bottom: 1px dashed var(--accent-primary); transition: all 0.2s ease; } - + .post-body a:hover { color: var(--accent-secondary); border-bottom-style: solid; } - + .post-body ul, .post-body ol { margin: 1rem 0 1.5rem 1.5rem; } - + .post-body li { margin-bottom: 0.5rem; } - + .post-body blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; @@ -564,7 +515,7 @@ const { Content } = await post.render(); color: var(--text-secondary); font-style: italic; } - + .post-body code { font-family: var(--font-mono); background: rgba(15, 23, 42, 0.3); @@ -572,7 +523,7 @@ const { Content } = await post.render(); border-radius: 4px; font-size: 0.9em; } - + .post-body pre { background: rgba(15, 23, 42, 0.3); padding: 1rem; @@ -581,54 +532,54 @@ const { Content } = await post.render(); margin: 1.5rem 0; border: 1px solid var(--border-primary); } - + .post-body pre code { background: transparent; padding: 0; font-size: 0.9em; color: var(--text-primary); } - + .post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; } - + .post-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; } - + .post-body th, .post-body td { border: 1px solid var(--border-primary); padding: 0.75rem; } - + .post-body th { background: rgba(15, 23, 42, 0.3); font-weight: 600; text-align: left; } - + /* Responsive Adjustments */ @media (max-width: 1024px) { .post-header h1 { font-size: var(--font-size-3xl, 1.875rem); } } - + @media (max-width: 768px) { .post-content { grid-template-columns: 1fr; } - + .post-header h1 { font-size: var(--font-size-2xl, 1.5rem); } - + .post-body { padding: 1.5rem; } @@ -644,7 +595,7 @@ const { Content } = await post.render(); // Already links, no need for additional JS }); }); - + // Add scroll-to-top button when scrolling down const scrollToTop = document.createElement('button'); scrollToTop.className = 'scroll-to-top'; @@ -654,7 +605,7 @@ const { Content } = await post.render(); `; document.body.appendChild(scrollToTop); - + // Show/hide scroll-to-top button window.addEventListener('scroll', () => { if (window.scrollY > 500) { @@ -663,7 +614,7 @@ const { Content } = await post.render(); scrollToTop.classList.remove('visible'); } }); - + // Scroll to top when clicked scrollToTop.addEventListener('click', () => { window.scrollTo({ @@ -697,18 +648,18 @@ const { Content } = await post.render(); transform: translateY(20px); z-index: 100; } - + .scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); } - + .scroll-to-top:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); } - + @media (max-width: 768px) { .scroll-to-top { width: 40px; @@ -716,7 +667,7 @@ const { Content } = await post.render(); bottom: 20px; right: 20px; } - + .scroll-to-top svg { width: 20px; height: 20px;