Update content documentation and implement basic learn page

This commit is contained in:
adilallo
2025-09-13 16:31:50 -06:00
parent 56a42db2da
commit 102a10457a
9 changed files with 173 additions and 143 deletions
+4
View File
@@ -93,6 +93,9 @@ export default async function BlogPostPage({ params }) {
// Get related articles with improved algorithm
const allPosts = getAllPosts();
// Create slug order for consistent background cycling
const slugOrder = allPosts.map((post) => post.slug);
// Simple related articles algorithm based on content similarity
const getRelatedArticles = (currentPost, allPosts, limit = 3) => {
const otherPosts = allPosts.filter((p) => p.slug !== currentPost.slug);
@@ -265,6 +268,7 @@ export default async function BlogPostPage({ params }) {
<RelatedArticles
relatedPosts={relatedArticles}
currentPostSlug={post.slug}
slugOrder={slugOrder}
/>
{/* Ask Organizer Section */}
-2
View File
@@ -1,5 +1,4 @@
import { getAllBlogPosts } from "../../lib/content";
import Header from "../components/Header";
import ContentThumbnailTemplate from "../components/ContentThumbnailTemplate";
import ContentContainer from "../components/ContentContainer";
@@ -31,7 +30,6 @@ export default function BlogPage() {
return (
<div className="min-h-screen bg-[#F4F3F1]">
<Header />
<main className="pt-16">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div className="text-center mb-12">