Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created January 18, 2026 21:23
Show Gist options
  • Select an option

  • Save btbytes/cf656fb6c3d9b5e7ab2e2adedde44119 to your computer and use it in GitHub Desktop.

Select an option

Save btbytes/cf656fb6c3d9b5e7ab2e2adedde44119 to your computer and use it in GitHub Desktop.
A new era for static site generators

Conversation Messages with Claude Code

All user messages from this Claude Code session:

  1. on individual article pages, put the date below the title of the page, and remove the date from the footer. keep the permalink, tags in the footer.

  2. merge bin/post.py and bin/link.py into bin/new.py and allow a non optional first param to make a post or link or note or quote.. use the title and url as next positiona params

  3. for note use "note" as the slug, unless there are more than one note in the same day, in which case increment the numbers like note2, note3 etc

  4. do not render any items with draft set to true

  5. the draft notes etc are still showing up

  6. add unique (to the page) id to second level tags like p, ul, ol, blockquite, img, figure when rendering, perhaps using content hash. should no be more than 4 characters.

  7. use all the favicons under public/ dir

  8. design how to use pagefind to add search to this website.

  9. create an attractive 404.html page and add it to /public dir

  10. implement search

  11. where is the search widget?

  12. add search widget to the footer of the page above the copyright notice.

  13. i still don't see any input widget there on rendering.

  14. seeing failed to load pagefind-ui.css in dev console

  15. also add routes so that cloudflare serves 404.html in public for missing page

  16. also remember that this site is served as a static site on cloudflare.

  17. add an RSS feed called feeds/main.xml and feeds/main.json in JSON format

  18. convert feeds/index.md to an astro page and use the same BaseLayout Template as rest of the pages.

  19. on the archive page remove the horizontal bottom border between li elements

  20. archive should be sorted in descending order of date

OpenCode Session Notes

User Messages

  1. "if i am rendering all my html tags with an id, what's the best way to show that to the user to copy as permalink without too much visual pollution?"

  2. "I am thinking about ids introduced by rehype on p, ul, ol, etc"

  3. "for any links starting with www.btbytes.com, and v1.pradeepgowda.com, and maxim.usindic.us, use a different colored underline, one that says trusted."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment