The learning course has been reorganized to use markdown files stored in the public/content/learn/ directory, following the same pattern as the blog posts. This makes it easy to manage content and add images.
public/content/learn/
├── README.md # Documentation for content management
├── math/
│ ├── functions/
│ │ ├── functions-content.md
│ │ └── [add your images here]
│ ├── derivatives/
│ │ ├── derivatives-content.md
│ │ ├── derivative-graph.png
│ │ └── tangent-line.png
│ ├── vectors/
│ │ ├── vectors-content.md
│ │ └── [images included]
│ ├── matrices/
│ │ ├── matrices-content.md
│ │ └── [images included]
│ └── gradients/
│ ├── gradients-content.md
│ └── [images included]
└── neural-networks/
├── introduction/
│ ├── introduction-content.md
│ └── [add your images here]
├── forward-propagation/
│ ├── forward-propagation-content.md
│ └── [add your images here]
├── backpropagation/
│ ├── backpropagation-content.md
│ └── [add your images here]
└── training/
├── training-content.md
└── [add your images here]
-
Functions (
/learn/math/functions)- Linear functions
- Activation functions (Sigmoid, ReLU, Tanh)
- Loss functions
- Why non-linearity matters
-
Derivatives (
/learn/math/derivatives)- What derivatives are
- Why they matter in AI
- Common derivative rules
- Practical examples with loss functions
-
Vectors (
/learn/math/vectors)- What vectors are (magnitude and direction)
- Vector components and representation
- Vector operations (addition, scalar multiplication)
- Applications in machine learning
-
Matrices (
/learn/math/matrices)- Matrix fundamentals
- Matrix operations (multiplication, transpose)
- Matrix transformations
- Role in neural networks
-
Gradients (
/learn/math/gradients)- Understanding gradients
- Partial derivatives
- Gradient computation
- Gradient descent in optimization
-
Introduction (
/learn/neural-networks/introduction)- What neural networks are
- Basic architecture (input, hidden, output layers)
- How they learn
- Real-world applications
-
Forward Propagation (
/learn/neural-networks/forward-propagation)- The forward pass process
- Weighted sums and activations
- Step-by-step numerical examples
- Matrix operations
-
Backpropagation (
/learn/neural-networks/backpropagation)- The backpropagation algorithm
- Chain rule in action
- Gradient computation
- Common challenges (vanishing/exploding gradients)
-
Training & Optimization (
/learn/neural-networks/training)- Gradient descent variants (SGD, mini-batch, batch)
- Advanced optimizers (Adam, RMSprop, Momentum)
- Hyperparameters and learning rate schedules
- Best practices and common pitfalls
-
LessonPage Component (
components/lesson-page.tsx)- Reusable component that loads markdown content
- Handles frontmatter parsing
- Supports navigation between lessons
- Similar to blog post structure
-
Page Routes (
app/learn/...)- Each lesson has a simple page component
- Uses
LessonPagewith configuration - Clean and maintainable
- Markdown files are stored in
public/content/learn/[category]/[lesson]/ - Each file has frontmatter with hero data (title, subtitle, tags)
- Images are placed alongside the markdown files
- Page components load the markdown using the
LessonPagecomponent - Images are referenced as
and served from/content/learn/...
---
hero:
title: "Derivatives"
subtitle: "The Foundation of Neural Network Training"
tags:
- "📐 Mathematics"
- "⏱️ 10 min read"
---
# Your content here...
-
Create folder structure:
mkdir -p public/content/learn/[category]/[lesson-name]
-
Create markdown file:
touch public/content/learn/[category]/[lesson-name]/[lesson-name]-content.md
-
Add frontmatter and content to the markdown file
-
Add images to the same folder
-
Create page component:
// app/learn/[category]/[lesson-name]/page.tsx import { LessonPage } from "@/components/lesson-page"; export default function YourLessonPage() { return ( <LessonPage contentPath="category/lesson-name" prevLink={{ href: "/previous", label: "← Previous" }} nextLink={{ href: "/next", label: "Next →" }} /> ); }
Math - Derivatives:
derivative-graph.png- Visual showing derivative as slopetangent-line.png- Tangent line illustration
Math - Functions:
linear-function.png- Linear function visualizationrelu-function.png- ReLU activation graphfunction-composition.png- Function composition diagram
Neural Networks - Introduction:
neural-network-diagram.png- Basic NN architecturelayer-types.png- Input, hidden, output layerstraining-process.png- Training loop diagramdepth-vs-performance.png- Network depth impact
Neural Networks - Forward Propagation:
forward-prop-diagram.png- Data flow diagramforward-example.png- Example calculationactivations-comparison.png- Different activation functionsmatrix-backprop.png- Matrix operations
Neural Networks - Backpropagation:
backprop-overview.png- Algorithm overviewbackprop-steps.png- Step-by-step processmatrix-backprop.png- Matrix form backprop
Neural Networks - Training:
training-loop.png- Training loop visualizationgradient-descent.png- Gradient descent illustrationgd-variants.png- GD variants comparisonoptimizers-comparison.png- Optimizer behaviorslr-schedules.png- Learning rate schedulestraining-curves.png- Loss/accuracy curves
- Create your images (PNG or JPG recommended)
- Place them in the appropriate lesson folder
- They're already referenced in the markdown - just replace the placeholders!
- Beautiful gradient backgrounds matching the site theme
- Syntax highlighting for code blocks
- Responsive design for mobile and desktop
- Navigation between lessons with prev/next buttons
- Markdown rendering with support for:
- Headings, paragraphs, lists
- Code blocks
- Images
- Tables
- Math formulas (using KaTeX in MarkdownRenderer)
- Add your images - Replace placeholder PNG files with actual visualizations
- Expand content - Add more lessons or modules as needed
- Test on localhost - Visit
/learnto see the course - Customize styling - Adjust colors/gradients in the components if desired
✅ Course structure created with 9 lessons (5 math + 4 neural networks)
✅ Markdown files in public/content/learn/
✅ Reusable LessonPage component
✅ Images ready for math lessons (vectors, matrices, gradients)
✅ Navigation between lessons
✅ Frontmatter support for hero sections
✅ README documentation in content folder
Your course is ready with comprehensive math fundamentals! 🎉