A modern, responsive news blog website with URL routing for different news categories.
- URL Routing: Each news category has its own URL
- Responsive Design: Works on all devices
- Newsletter Subscription: Email subscription with frequency preferences
- Custom Cursor: Interactive cursor effects
- Smooth Animations: Beautiful transitions and effects
The website supports the following URLs for different news categories:
- Home/General:
/or/general - Technology:
/techor/technology - Business:
/business - Entertainment:
/entertainment - Sports:
/sports - Science:
/science - AI & Machine Learning:
/ai,/ai-ml,/artificial-intelligence, or/machine-learning
- Direct URL Access: You can directly visit any category URL (e.g.,
yoursite.com/tech) - Navigation: Click on category buttons to navigate between sections
- Browser Navigation: Use browser back/forward buttons to navigate
- Keyboard Navigation: Use left/right arrow keys to switch categories
- Uses HTML5 History API for clean URLs
- Server-side routing with
.htaccessfor Apache servers - Client-side routing with JavaScript
- Automatic URL updates when switching categories
- Browser history support
- Visual Feedback: URL indicator shows current section
- Page Titles: Dynamic page titles for each category
- SEO Friendly: Each section has its own URL for better SEO
- Bookmarkable: Users can bookmark specific category pages
- Upload all files to your web server
- Ensure
.htaccessis enabled (Apache server) - The website will work immediately
- Modern browsers with HTML5 History API support
- Fallback for older browsers (will still work, just without URL routing)
The website uses the GNews API for fetching news articles. Make sure to:
- Replace the API key in
script.jswith your own - Respect API rate limits
- EmailJS integration for automatic emails
- Multiple frequency options (daily, weekly, monthly)
- Admin controls for managing subscriptions
- Automatic newsletter scheduling
You can easily customize:
- Colors and styling in
style.css - API endpoints in
script.js - Category names and routes
- Newsletter templates
For questions or issues, please check the code comments or contact the developer.