A tutorial, and this site’s own source

How this site is built

vdibart.com is a website built on a polis site. The writing lives, signed, on vdibart.polis.pub; this site reads it and gives it a shape. Here is every step, with the code that is running right now. Follow along and you’ll have your own, on whatever polis site is yours.

  1. 01What you’re buildingA website on a polis site: the source stays yours, the shape is up to you.
  2. 02Start the appA Next.js app, two packages, three settings.
  3. 03Read the postsOne reader for the whole site, and a front page from its index.
  4. 04Render a postSigned markdown in, your HTML out, and the contract every post page carries.
  5. 05Walk the treeEverything a site publishes, by type, and the sites it follows. Shape it any way you like.
  6. 06Bend it with hooksYour URLs, your images, your edits, without forking anything.
  7. 07Comments and followsReaders reply as their own polis sites, from your pages.
  8. 08Stay freshA signed webhook on every publish, and a refresh for when you want one.
  9. 09Become the displayTwo signed halves that make this website provably the author’s.
  10. 10DeployGitHub to Vercel, with the settings and the domain.