Update content documentation and implement basic learn page
This commit is contained in:
@@ -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 */}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user