Smiling Cookbook
A personal recipe and food blog website built with Astro static site generation, Cloudflare Workers, and Pages CMS for content management via GitHub markdown and frontmatter documents. Features ad creation and revenue integration.
Project Overview
Smiling Cookbook is a personal recipe and food blog website showcasing culinary creativity and experimentation. Built with modern web technologies, it demonstrates how to create a lightweight, maintainable content-driven website with integrated monetization capabilities while maintaining complete creative control through markdown-based content management.
Technical Architecture
Built with a modern static site generation approach prioritizing simplicity, content flexibility, and revenue generation:
Core Framework
- Astro 5+ - Modern static site generator for optimal performance
- Cloudflare Pages - Edge deployment for global CDN distribution
- Cloudflare Workers - Serverless functions for ad serving and dynamic features
- TypeScript - Type-safe development for reliability
Content Management
- Pages CMS - GitHub-integrated CMS for seamless content editing
- Markdown with Frontmatter - Simple, version-controlled content structure
- GitHub Integration - Direct content synchronization from repository
- Content Collections - Type-safe content organization and validation
Monetization & Ad Management
- Ad Network Integration - Revenue generation through targeted advertising
- Ad Creation Tools - Built-in utilities for custom ad placements
- Dynamic Ad Loading - Cloudflare Workers handling ad delivery and optimization
- Revenue Tracking - Integration with ad networks for earnings monitoring
Styling & Design
- Tailwind CSS - Utility-first styling framework
- Responsive Design - Mobile-first approach for all devices
- Modern Aesthetics - Clean, food-focused visual design
Key Features
Content Management System
- GitHub-Powered CMS - Pages CMS provides web-based editing while maintaining version control
- Markdown Content - All posts written in Markdown for simplicity and portability
- Frontmatter Metadata - Recipe metadata, publishing dates, and categories in YAML frontmatter
- Automatic Publishing - GitHub commits automatically trigger site rebuilds
Content Types
- Recipes - Detailed recipe posts with ingredients, instructions, and notes
- Food Stories - Personal narratives and cooking experiences
- Culinary Experiments - Documentation of creative kitchen projects
- Collections - Organized recipe categories and themed collections
Performance & User Experience
- Static Site Generation - Pre-rendered HTML for instant page loads
- Minimal JavaScript - Lightweight interactivity where needed
- Global CDN - Cloudflare Pages ensuring fast delivery worldwide
- SEO Optimization - Automatic sitemap generation and metadata management
Monetization Features
- Ad Placement Flexibility - Strategic ad placements optimized for user experience
- Revenue Dashboard - Tracking earnings and ad performance
- Ad Customization - Custom ad creation and management tools
- Network Integration - Connection to major ad networks for revenue maximization
Development Workflow
Content Creation Process
- Create new markdown file with frontmatter metadata
- Edit content through Pages CMS or directly in GitHub
- Commit changes to trigger automatic site rebuild
- Published immediately on Cloudflare Pages edge network
Technical Workflow
- Local Development - Hot module replacement for rapid iteration
- Git-Based Workflow - All content changes tracked in version control
- CI/CD Pipeline - GitHub Actions automating builds and deployments
- Preview Deployments - Automatic preview environments for content review
Results & Achievements
Content Flexibility
- Complete creative control over content and presentation
- Simple markdown format enabling easy content creation and migration
- Version history through GitHub ensuring content safety
- Multi-author collaboration through GitHub’s workflow
Performance Benefits
- Lightning-fast page loads through static generation
- Global CDN distribution via Cloudflare Pages
- Zero cold starts with pre-rendered content
- Optimal Core Web Vitals scores
Business Model
- Monetized through ad revenue generation
- Custom ad placements optimized for user experience
- Scalable revenue without limiting creative expression
- Data-driven insights into audience and content performance
Developer Experience
- Simple deployment and maintenance workflow
- Low infrastructure overhead with serverless architecture
- Easy content updates without database management
- Flexible customization through Astro components
Technical Innovation
Content-Driven Architecture
- Leveraging static site generation for maximum performance
- Git as the single source of truth for all content
- GitHub-based CMS minimizing complex tooling
- Markdown enabling content portability and simplicity
Monetization Integration
- Cloudflare Workers enabling dynamic ad serving
- Revenue optimization without compromising user experience
- Analytics integration for performance tracking
- Sustainable business model for passion projects
This project demonstrates how to build a successful content-driven website that balances creative expression, technical excellence, and revenue generation. It serves as a practical example of using modern web standards for personal projects while maintaining complete ownership and control over content and data.
Interested in how to make your own custom website?
Let's discuss how we can build something amazing for your project.
Get in Touch