Rebuilding my site (again)
Why I swapped to a tiny PHP setup with live Discord status and native Discord component embeds.
Every few months I rebuild this site. This time the goal was simple: drop-in PHP, no build step, and links that look great when pasted into Discord.
What's new
- Live Discord status via Lanyard — Spotify, games, custom status
- A docs-style blog with a sidebar, search (
/) and a table of contents - Discord component embeds, so links unfurl with real buttons
Component embeds
Discord now reads a JSON payload from your page's <head> and renders it with the same components bots use. Link buttons included.
<script id="discord:component-embed" type="application/json">
{ "component": { "type": 17, "components": [ ... ] } }
</script>Debugging
Paste a URL into Discord's Embed Debugger to see exactly what the crawler sees.
Writing posts
Drop a Markdown file into /posts with some front matter and it shows up automatically:
| Field | What it does |
|---|---|
title | Post title |
category | Sidebar group |
icon | Sidebar icon (book, pen, tool, file…) |
cover | Image for the post + the Discord embed |
draft | true hides it |
That's it. More soon.