Personal blog at sreekarscribbles.com.
- Plain HTML, CSS, and vanilla JavaScript — no frameworks, no build tools
- Self-hosted on a Raspberry Pi, served via Nginx + Cloudflare Tunnel
- GitHub as the middleman between local edits and the Pi
- Font: Kalam (Google Fonts) — handwritten but legible, weights 300, 400, and 700
- Theme: Journal paper — cream page (
#f4ecce) on a dark wood desk (#1a0e06) - The
htmlelement is the desk;bodyis the paper page elevated above it - Paper has ruled lines, a red margin line, grain texture, and age-darkening effects
- Single stylesheet:
styles.css, manually cache-busted with?v=N(current: v47)
- Photos appear as tilted prints with a cream border, sepia tint, and tape strips at the top-left and bottom-right corners
- Blockquotes render as sticky notes — warm aged-yellow, slight tilt, warm drop shadow
- Selected posts can have an optional background music button (bottom-right, fixed)
- Button is always visible; click to play, click again to stop
- While music is playing: button auto-hides after 2s, reappears on scroll up, hides again on scroll down
- Audio files live in
audio/— useyt-dlpto download andffmpegto trim - Optimised for iOS Safari and Android Chrome (safe-area insets, no tap delay, no system button styling)
| Page | Description |
|---|---|
| Home | Introduction |
| Blog | All published posts |
| Flow | GitHub-style yearly writing tracker |
| Cooking | Upcoming post titles |
On mobile, the inline nav is replaced by a hamburger button (top-right) that slides in a sidebar. Handled by nav.js, cache-busted with ?v=N (current: v3). All HTML files must include it before </body>.
- Create a new HTML file in
blog/using the template inAGENTS.md - Add it to the top of the list in
blog.html - Commit and push to
main - GitHub Action auto-regenerates
feed.xmlanddates.json sudo git pullon the Pi — done
Feed available at /feed.xml, auto-generated from blog.html on every push via GitHub Actions.
The Source and RSS footer links appear only on the home page (index.html).
flow.html tracks writing with a GitHub-style contribution graph (full year view, week columns × 7 rows).
- Post dates stored in
dates.json, synced via GitHub API - Admin panel hidden behind a secret key combo (
lpressed three times), SHA-256 password protected - Year navigation: prev/next buttons to browse past years