foliofield: a personal site built like a readable book
What is foliofield
foliofield is the site you are reading right now, and also an open-source blog template: folio for the page, field for the ground it grows on — a place for finished projects, writing, and experiments still in progress.
It asks one question: does a personal site have to be a dashboard of cards, or can it read like a book? So there is no admin-panel layout here — just a cover, a table of contents, body text, and a colophon. No gradient banners — just the color of paper, characters in ink, and a single touch of cinnabar.
What it ships with
- Bilingual by structure:
src/content/blogandsrc/content/projectsare organized underzh/anden/;translationKeypairs the two versions of the same piece, and pages point at each other automatically (hreflang is built in). - Three-mode theme: system / light / dark, with the icon showing the current mode (◐ ☀ ☾), a radial ink-wash transition, and a first-frame script that prevents flashing.
- A complete machine-reading layer:
rss.xml,sitemap-index.xml,robots.txt, andllms.txtare all generated at build time, with the domain sourced from a single place inastro.config.mjs. - SEO out of the box: canonical, Open Graph, Twitter Card, and
WebSite/Person/BlogPostingstructured data are emitted by one sharedSEOHeadcomponent, default share image included. - Restrained motion: the homepage wordmark assembly and particle ink field (WebGL with a Canvas 2D fallback), and the stardust 404, all respect
prefers-reduced-motion.
Technical choices
- Astro, fully static: zero client frameworks by default; interactivity exists only in the ink field and the theme toggle.
three.jsloads only when WebGL is available, otherwise it falls back to 2D Canvas. - Content collections with type validation: frontmatter for posts and projects is checked by zod schemas — a wrong field fails the build.
- Shiki dual themes: code blocks emit both light and dark variables at once, switching with the theme without a flash.
- Typography first: body text in a serif face with generous line height, headings in a tight-tracked sans; tokens like
--songand--monolive in the shell’s variables.
Who it is for
Developers who want a personal site that reads like a book, write in two languages, and would rather not carry a framework around. The source is open: restyle the tokens, drop the sections you don’t need, and your own volume is online within a day.
Next chapter: the foliofield guide — from clone to deploy, plus the files you touch day to day.