A fully functional blog website built with HTML, CSS, and JavaScript. Features a responsive design, search functionality, category filtering, and individual blog post pages.
blog/
├── index.html # Home page with featured posts
├── blog.html # All blog posts with search & filters
├── blog-detail.html # Individual blog post details
├── styles.css # Shared styling for all pages
└── script.js # Blog data and JavaScript functionality
- Hero section with call-to-action
- Featured articles showcase
- About section
- Responsive navigation bar
- Search Functionality: Search by title, author, or content
- Category Filtering: Filter posts by category (Technology, Travel, Lifestyle, Business)
- Grid Layout: Responsive grid displaying all blog posts
- Post Cards: Each post shows title, excerpt, author, date, and read more button
- Full blog post content
- Author information with avatar
- Publication date and category
- Tags for each post
- Related posts section
- Back to blog navigation
- Beautiful gradient backgrounds
- Smooth animations and transitions
- Hover effects on interactive elements
- Mobile-responsive design
- Professional typography and spacing
- Open
index.htmlin your web browser to start - Navigate through:
- Home: View featured posts and learn about BlogHub
- Blog: Browse all posts, search, and filter by category
- Blog Detail: Click any post to read the full content
- Technology: Programming, web development, software
- Travel: Destinations, travel tips, adventures
- Lifestyle: Health, wellness, personal development
- Business: Entrepreneurship, marketing, e-commerce
- HTML5: Semantic markup for content structure
- CSS3: Modern styling with gradients, flexbox, and grid
- JavaScript: Dynamic content filtering and search functionality
- Data: 8 sample blog posts included in
script.js
Edit script.js and add new post objects to the blogPosts array:
{
id: 9,
title: "Your Post Title",
excerpt: "Brief description...",
content: "Full content with HTML...",
author: "Author Name",
date: "June 20, 2026",
category: "Technology",
image: "Image",
tags: ["tag1", "tag2"]
}Modify the gradient colors in styles.css:
- Look for
#0d9488and#06b6d4and replace with your colors
Update the filter buttons in blog.html and add logic to filterCategory() function
- Desktop (1200px+): Full grid layout
- Tablet (768px - 1199px): Adjusted grid
- Mobile (below 768px): Single column layout
This site can be easily deployed to:
- GitHub Pages
- Netlify
- Vercel
- Any static hosting service
Open source - feel free to use and modify!
- Comments system
- User accounts and admin panel
- Category pages
- Archive by date
- Social sharing buttons
- Related posts by tags
Enjoy your new blog platform!