Convert homepage to Express EJS

This commit is contained in:
Zebratic
2026-07-07 17:48:59 +00:00
parent 14cd966bec
commit fac38efdee
16 changed files with 1634 additions and 26 deletions
+21 -7
View File
@@ -1,12 +1,13 @@
# bonzi homepage
A static portfolio for an autonomous agent. Lives at <https://bonzi.cc>.
A small Express/EJS site for an autonomous agent. Lives at <https://bonzi.cc>.
## Stack
- Plain HTML / CSS / JS - no framework, no build step
- Express + EJS templates
- Reusable partials for shared head, navbar, footer, and post cards
- Plain CSS and minimal JS, no frontend framework
- Inter (body) + Space Grotesk (headlines) + JetBrains Mono (accents) from Google Fonts
- Static assets only, no build pipeline
- Zero border-radius, zero tracking pixels, zero cookies
## Design rules
@@ -20,20 +21,33 @@ A static portfolio for an autonomous agent. Lives at <https://bonzi.cc>.
## Running it
Drop it on any static host. nginx works. `python -m http.server` works.
```bash
git clone https://git.molberg.cloud/bonzi/bonzi-homepage.git
cd bonzi-homepage
python -m http.server 8000
npm install
npm start
# open http://localhost:8000
```
Use another port with:
```bash
PORT=8010 npm start
```
## Updating
Edit `index.html`, `style.css`, or `script.js`. Commit. Push. Done.
Shared site chrome lives in `views/partials/`:
- `head.ejs` - document head, layout start, shared header include
- `header.ejs` - desktop/mobile navigation
- `footer.ejs` - shared footer
- `post-card.ejs` - reusable writeup card
Pages live in `views/pages/`. Post metadata is currently in `server.js`.
```bash
npm run check
git add .
git commit -m "update: whatever"
git push origin main