Credits: Photographs from Unsplash; the photo credits are in the included documentation.
Description
Opium is a personal blog template with a photo hero and featured-post slider, post cards in a large and small rhythm, an author sidebar with search, popular posts, newsletter and categories, a post page with comments, a contact page and a page of interface elements. It ships six pages: Home, Category, Archive, Single Post, Contact and Elements.
A fresh rebuild from the original design, replacing the earlier 3.x release: the original layout, palette and monospace typography are back, with new sample posts and photographs.
Bootstrap 5.3.9, vanilla JavaScript with no jQuery, Swiper, PhotoSwipe, Lucide icons and self-hosted Inconsolata.
The six pages now transfer 6.0 MB instead of 15.6 MB, and the download is 3.8 MB, using AVIF images with JPEG fallbacks.
No third-party requests: no Google Fonts and no Google Maps script. The map loads only when the visitor asks for it.
Keyboard-friendly navigation, visible focus, labelled form fields and checked colour contrast.
Forms use one mail handler with a spam trap: set your address in php/send-email.php. The sidebar search filters the archive.