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 */}