DEV Community

Cover image for How I Built Malik News: A Fast, Zero-Backend Bilingual Digital News Portal with Pure HTML, CSS & Vanilla JS
Shailendra Kumar Singh
Shailendra Kumar Singh

Posted on

How I Built Malik News: A Fast, Zero-Backend Bilingual Digital News Portal with Pure HTML, CSS & Vanilla JS

Hello Dev Community! ๐Ÿ‘‹

I recently built and launched Malik News, a fast, lightweight, bilingual (Hindi & English) digital news portal designed to run with zero backend costs on GitHub Pages.

๐Ÿ”— Live Website: https://shailendra-codes.github.io/Malik-News/
๐Ÿ’ป Source Code: https://github.com

๐Ÿ› ๏ธ Why Pure Vanilla JS Instead of a Heavy CMS?

My goal was to create a news platform that loads instantly even on slow mobile networks while remaining super easy to update with new daily issuesโ€”without touching the core layout file every time.

โœจ Key Architecture & Features

  1. Modular 3-File Structure:
    • index.html handles the core layout and styling.
    • all-news.html stores all published news articles (<article> blocks).
    • loader.js dynamically fetches the news feed, injects the live breaking news ticker, powers instant search, and manages category filtering.
  2. Zero External Image Dependencies:
    • All logos (MN โ€ข NEWS badges) and featured article banners are crafted with pure CSS gradients and Unicode icons for sub-second rendering.
  3. Instant Filtering & Live Search:
    • Readers can filter stories across 7 categories or search keywords in real time.
  4. Native Web Share & SEO Integration:
    • Every article automatically gets WhatsApp/Native Share buttons, paired with an XML sitemap and Google Search Console indexing.

I would love to hear your thoughts, UI suggestions, or ideas for future enhancements! Drop your feedback in the comments below. ๐Ÿ™Œ

Top comments (0)